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
If there's an object with keys "foo" and "bar" and when "foo" is true, "bar" should added with default value true. If the schema contains just this object, the default value is added. But if the object is wrapped in an array, the default is not added.
Expected Behavior
Also when the object is inside an array, the default should be added for the object.
Steps To Reproduce
Here's a schema for an object with keys "foo" and "bar" and when "foo" is true, "bar" is added with default value true. Works fine: Link to Playground
Here's the same schema, but wrapped in an array. Default doesn't work. Link to Playground
The text was updated successfully, but these errors were encountered:
Prerequisites
What theme are you using?
core
Version
5.6.2
Current Behavior
If there's an object with keys "foo" and "bar" and when "foo" is true, "bar" should added with default value true. If the schema contains just this object, the default value is added. But if the object is wrapped in an array, the default is not added.
Expected Behavior
Also when the object is inside an array, the default should be added for the object.
Steps To Reproduce
Here's a schema for an object with keys "foo" and "bar" and when "foo" is true, "bar" is added with default value true. Works fine: Link to Playground
Here's the same schema, but wrapped in an array. Default doesn't work. Link to Playground
The text was updated successfully, but these errors were encountered: