Open odscrachel opened 4 months ago
I think format is the correct one to use here
It looks like format validation is a special case in json schema, and doesn't work by default. But I think @rhiaro has set things up so that we can enforce format constraints.
Assigning to @rhiario to confirm that we're correctly using the 'format' keyword in the list of expected errors, and that we should edit the handbook to add it.
In the list of validation keywords
format
isn't an option. I couldn't get an invalid test to work with an incorrect uri without usingformat
in the expected_errors.csv. I can see though thatformat
isn't listed in https://json-schema.org/draft/2020-12/meta/validation so I'm not sure if this is correct or what keyword to use instead?