You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
actually,
"features": { "type": "array", "items": [ { "type": "string" } ] }
was not a good syntax...
should be
"features": { "type": "array", "items": { "type": "string" } }
and then bug disapears
Prerequisites
What theme are you using?
core
Version
5.x
Current Behavior
A very simple schema, multiple 'models', each model can have multiple 'features'.
The top level array triggers an 'add' button, while for inner 'feature' array, you cannot add multiple values
{ "type": "object", "properties": { "models": { "type": "array", "items": { "type": "object", "properties": { "model": { "type": "string" }, "features": { "type": "array", "items": [ { "type": "string" } ] } } } } } }
You can workaround with defining embedded array with 'allOf'
"features": { "type": "array", "items": { "allOf": [ { "type": "string" } ] } }
Expected Behavior
"features": { "type": "array", "items": [ { "type": "string" } ] }
should be trigger same formulat as
"features": { "type": "array", "items": { "allOf": [ { "type": "string" } ] } }
Steps To Reproduce
No response
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: