I would like the ability to write a jsonschema fragment like:
{
"type":"array",
"items":{
"type":"number",
"lag":2
}
}
which succeeds on an array of numbers whose values are all 2 apart: eg
[ 1, 3, 5, 7 ]
I am able to describe the custom format as a function from list to bool.
Is this possible?