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
allOf: [{ contains }, { contains }]
The following schema expresses that an array should contain at least ["A", "B"]:
["A", "B"]
{ "$schema": "http://json-schema.org/draft-07/schema", "type": "array", "items": { "type": "string" }, "allOf": [ { "contains": { "const": "A" } }, { "contains": { "const": "B" } } ] }
Any that includes ["A", "B"], and optionally other strings:
["A", "B"] ["aute fugiat", "quis ut", "A", "B"]
Includes only the last item in the allOf.contains list ("B"):
allOf.contains
"B"
["aute fugiat", "quis ut", "B"]
can't share link since the feature appears to be broken (#726)
The text was updated successfully, but these errors were encountered:
Nice catch, I'll be working on this asap, thank you!
Sorry, something went wrong.
No branches or pull requests
Schema
The following schema expresses that an array should contain at least
["A", "B"]
:Expected Result
Any that includes
["A", "B"]
, and optionally other strings:Actual Result
Includes only the last item in the
allOf.contains
list ("B"
):The text was updated successfully, but these errors were encountered: