Add readable flag to datasource validation
This commit is contained in:
parent
5aba8e4a65
commit
be32ef1cb6
|
@ -51,6 +51,7 @@ function validateDatasource(schema) {
|
||||||
const queryValidator = joi
|
const queryValidator = joi
|
||||||
.object({
|
.object({
|
||||||
type: joi.string().allow(...Object.values(QueryType)),
|
type: joi.string().allow(...Object.values(QueryType)),
|
||||||
|
readable: joi.boolean(),
|
||||||
fields: joi.object().pattern(joi.string(), fieldValidator),
|
fields: joi.object().pattern(joi.string(), fieldValidator),
|
||||||
})
|
})
|
||||||
.required()
|
.required()
|
||||||
|
|
Loading…
Reference in New Issue