not-required with regex? #618
Answered
by
jdesrosiers
girish-tharwani
asked this question in
Q&A
-
Hello Experts
|
Beta Was this translation helpful? Give feedback.
Answered by
jdesrosiers
Feb 7, 2024
Replies: 1 comment
-
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]$" }
]
}
} |
Beta Was this translation helpful? Give feedback.
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
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.