From 15323950335819481e912c84c939e22956250e42 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 10 Nov 2022 14:23:22 +0000 Subject: [PATCH] Add readable flag to datasource validation --- packages/backend-core/src/plugin/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend-core/src/plugin/utils.js b/packages/backend-core/src/plugin/utils.js index 60a40f3a76..b943747483 100644 --- a/packages/backend-core/src/plugin/utils.js +++ b/packages/backend-core/src/plugin/utils.js @@ -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()