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
Consider I have a json schema as below: .... { "properties" : { "minimumDelay" : { "type" : "number" }, "length" : { "type" : "number" }, }, "required": { "minimumDelay", "length" }
Here the json data will be valid if I enter both minimumDelay and length values.
But my requirement is json data must be valid when I enter either 1 of the values(like XOR case). How my schema must be modified to achieve the same?
The text was updated successfully, but these errors were encountered:
This would be handled with oneOf validation which isn't currently supported without making a basic add-on to provide it.
Sorry, something went wrong.
No branches or pull requests
Consider I have a json schema as below:
....
{
"properties" : {
"minimumDelay" : {
"type" : "number"
},
"length" : {
"type" : "number"
},
},
"required": {
"minimumDelay",
"length"
}
Here the json data will be valid if I enter both minimumDelay and length values.
But my requirement is json data must be valid when I enter either 1 of the values(like XOR case). How my schema must be modified to achieve the same?
The text was updated successfully, but these errors were encountered: