Skip to content

Instantly share code, notes, and snippets.

Created November 7, 2013 18:03
Show Gist options
  • Save anonymous/7359101 to your computer and use it in GitHub Desktop.
Save anonymous/7359101 to your computer and use it in GitHub Desktop.
{
"description": "Contains exactly one \"A\". Entries in \"contains\" must match distinct items in the data, so the \"not\" clause disallows having two distinct \"A\"s.",
"type": "array",
"contains": ["A"],
"not": {
"contains": ["A", "A"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment