1
0
Fork 0
mirror of synced 2024-09-06 20:51:07 +12:00

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 dc7d22e5cb
commit 9353aec940

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,
} }
}) })
} }