Skip to content

not-required with regex? #618

Discussion options

You must be logged in to vote

There aren't good options for working with case-insensitivity in JSON Schema. Any solution is going to be ugly. This is the best I've got.

"propertyNames": {
  "not": {
     "anyOf": [
        { "pattern": "^[fF][oO][oO]$" },
        { "pattern": "^[bB][aA][rR]$" }
    ]
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by girish-tharwani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants