Add readable flag to datasource validation
This commit is contained in:
parent
f518cd8572
commit
1532395033
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue