diff --git a/packages/builder/src/components/backend/Datasources/ConfigEditor/stores/validation.js b/packages/builder/src/components/backend/Datasources/ConfigEditor/stores/validation.js index 08331b840d..2ec9539824 100644 --- a/packages/builder/src/components/backend/Datasources/ConfigEditor/stores/validation.js +++ b/packages/builder/src/components/backend/Datasources/ConfigEditor/stores/validation.js @@ -1,4 +1,4 @@ -import { string, number } from "yup" +import { string, number, object } from "yup" const propertyValidator = type => { if (type === "number") { @@ -9,6 +9,10 @@ const propertyValidator = type => { return string().email().nullable() } + if (type === "object") { + return object().nullable() + } + return string().nullable() }