-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
additionalPropertiesbughelp wantedif-then-elseIssues related to handling JSON Schema if/then/elseIssues related to handling JSON Schema if/then/else
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 or a shared playground link demonstrating the issue.
What theme are you using?
core
Version
5.0.0-beta.10
Current Behavior
My schema should add a "string" field but it only does so when additionalProperties is
- undefined
- true (this is not a real workaround because of Clicking add button when
additionalProperties: truedoesn't create a new property #3179) - `{ "type": "string" }
This warning is logged to the console when the field should be added:
could not merge subschemas in allOf:
Error: Could not resolve values for path:"properties.state.type". They are probably incompatible. Values:
"string"
"number"
Expected Behavior
The conditional field should appear - I should be able to customize additionalProperties and have conditional fields that do not match the additionalProperties schema.
Steps To Reproduce
Link to reproduction in current playground
Environment
Playground 5.0.0-beta.10Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
additionalPropertiesbughelp wantedif-then-elseIssues related to handling JSON Schema if/then/elseIssues related to handling JSON Schema if/then/else