Merge pull request #8047 from Budibase/fix/allow-removing-crud-plugins

Allow removing custom datasource CRUD operations
This commit is contained in:
Michael Drury 2022-09-30 11:08:50 +01:00 committed by GitHub
commit 94b877e00f
1 changed files with 2 additions and 6 deletions

View File

@ -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(