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