|
|
@ -28,7 +28,10 @@ const extractJSONSchemaKeys = (jsonSchema, squashObjects = false) => { |
|
|
Object.keys(jsonSchema).forEach(key => { |
|
|
Object.keys(jsonSchema).forEach(key => { |
|
|
const type = jsonSchema[key].type |
|
|
const type = jsonSchema[key].type |
|
|
if (type === "json" && squashObjects) { |
|
|
if (type === "json" && squashObjects) { |
|
|
const childKeys = extractJSONSchemaKeys(jsonSchema[key].schema) |
|
|
const childKeys = extractJSONSchemaKeys( |
|
|
|
|
|
jsonSchema[key].schema, |
|
|
|
|
|
squashObjects |
|
|
|
|
|
) |
|
|
keys = keys.concat( |
|
|
keys = keys.concat( |
|
|
childKeys.map(childKey => ({ |
|
|
childKeys.map(childKey => ({ |
|
|
key: `${key}.${childKey.key}`, |
|
|
key: `${key}.${childKey.key}`, |
|
|
|