Ensure JSON schema generated in client apps is identical to builder generated schema

This commit is contained in:
Andrew Kingston 2021-12-10 15:11:01 +00:00
parent 5793cc3bbd
commit 6fd53b134a
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ export const fetchDatasourceSchema = async dataSource => {
Object.keys(jsonSchema).forEach(jsonKey => { Object.keys(jsonSchema).forEach(jsonKey => {
jsonAdditions[`${fieldKey}.${jsonKey}`] = { jsonAdditions[`${fieldKey}.${jsonKey}`] = {
type: jsonSchema[jsonKey].type, type: jsonSchema[jsonKey].type,
nestedJSON: true,
} }
}) })
} }