Allow removing CRUD operations from custom datasource plugins.
This commit is contained in:
parent
0e054c331e
commit
504412112f
|
@ -67,12 +67,8 @@ function validateDatasource(schema) {
|
|||
description: joi.string().required(),
|
||||
datasource: joi.object().pattern(joi.string(), fieldValidator).required(),
|
||||
query: joi
|
||||
.object({
|
||||
create: queryValidator,
|
||||
read: queryValidator,
|
||||
update: queryValidator,
|
||||
delete: queryValidator,
|
||||
})
|
||||
.object()
|
||||
.pattern(joi.string(), queryValidator)
|
||||
.unknown(true)
|
||||
.required(),
|
||||
extra: joi.object().pattern(
|
||||
|
|
Loading…
Reference in New Issue