I have some 3rd party software that isn't handling Unicode correctly. I want to represent this by providing a JSON Schema that disallows non-ascii characters. For an individual value, I can say
{
"type": "string",
"pattern: "^[a-zA-Z0-9]*$"
}
which describes what I'm looking for.
However, I'd like to be able to just say all strings in the schema match this pattern. I could do a custom format, but that doesn't seem much better:
{
"type": "string",
"format": "ascii-string"
}
Is there a way to specify that I want every string to default to this format/pattern?