-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
awaiting responseif-then-elseIssues related to handling JSON Schema if/then/elseIssues related to handling JSON Schema if/then/elsequestion
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.x
Current Behavior
I have an array field with items as objects. The objects all have key
, which is a oneOf, and has a default value. Now the item object has an optional property obj
when is present if the key
equals a specific value. This optional property also has it's own default value.
Issue:
Whenever I am adding a new array item, the form data also contains the default value for the field obj
. This is a problem since the schema should not contain obj and should not contain it's default value in the form data.
Expected Behavior
No response
Steps To Reproduce
Steps
- Simply add an array item and track the form data. It adds the item, the default value for the
key
is correct, but the default forobj
is also present.
Environment
- OS:
- Node:
- npm:
Anything else?
No response
Metadata
Metadata
Assignees
Labels
awaiting responseif-then-elseIssues related to handling JSON Schema if/then/elseIssues related to handling JSON Schema if/then/elsequestion