Add readable flag to datasource validation

This commit is contained in:
Mel O'Hagan 2022-11-10 14:23:22 +00:00
parent f518cd8572
commit 1532395033
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ function validateDatasource(schema) {
const queryValidator = joi
.object({
type: joi.string().allow(...Object.values(QueryType)),
readable: joi.boolean(),
fields: joi.object().pattern(joi.string(), fieldValidator),
})
.required()