-
-
Save vector-man/fdc05aa704188013b0e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "\"contains\" hack for v4 JSON Schema. The array must contain at least one \"A\", specified by saying that if all the entries are *not* \"A\", then it fails.", | |
"type": "array", | |
"not": { | |
"items": { | |
"not": { | |
"enum": ["A"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment