From 9353aec9401ce37f53e9b48172a16ff2d250ebee Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 10 Dec 2021 15:11:01 +0000 Subject: [PATCH] Ensure JSON schema generated in client apps is identical to builder generated schema --- packages/client/src/api/datasources.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/src/api/datasources.js b/packages/client/src/api/datasources.js index c65ae88a55..28325b29e4 100644 --- a/packages/client/src/api/datasources.js +++ b/packages/client/src/api/datasources.js @@ -118,6 +118,7 @@ export const fetchDatasourceSchema = async dataSource => { Object.keys(jsonSchema).forEach(jsonKey => { jsonAdditions[`${fieldKey}.${jsonKey}`] = { type: jsonSchema[jsonKey].type, + nestedJSON: true, } }) }