Commit 27d7139e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_json_form: json form schema gadget handle root OneOf, AnyOf, AllOf

parent f88c05d9
......@@ -24,6 +24,15 @@ function makeUiSchema(schema, uiSchema, visited) {
return
}
visited.add(schema)
for (const oneOf of schema.oneOf || []) {
makeUiSchema(oneOf, uiSchema, visited);
}
for (const allOf of schema.allOf || []) {
makeUiSchema(allOf, uiSchema, visited);
}
for (const anyOf of schema.anyOf || []) {
makeUiSchema(anyOf, uiSchema, visited);
}
if (schema.properties) {
for (const [key, value] of Object.entries(schema.properties)) {
uiSchema[key] = {};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment