We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We often see two fields that depend on each other, i.e. the value of one field depends on the other.
For example:
Can we validate that? For example through a map? Does it make things to complicated?
How would that work in JSON Schema? A discussion in their Slack lead to the conclusion that the only reasonable way is anyOf:
anyOf
anyOf: [ {properties: {name: {const: 1}, id: {const: "apple"}}}, {properties: {name: {const: 2}, id: {const: "peach"}}}, ... ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We often see two fields that depend on each other, i.e. the value of one field depends on the other.
For example:
Can we validate that? For example through a map? Does it make things to complicated?
How would that work in JSON Schema? A discussion in their Slack lead to the conclusion that the only reasonable way is
anyOf
:The text was updated successfully, but these errors were encountered: