The json-schema docs suggest that a format keyword can be used to validate a string against different standard formats. I was wondering if this project supports either the uri or uri-reference format. A quick source dive seems to indicate that this project does support this feature. However, when I attempt to use specify the format keyword it doesn't seem to be validating a document the way that I expect.
The json-schema docs suggest that a
format
keyword can be used to validate a string against different standard formats. I was wondering if this project supports either theuri
oruri-reference
format. A quick source dive seems to indicate that this project does support this feature. However, when I attempt to use specify theformat
keyword it doesn't seem to be validating a document the way that I expect.Below is an example program:
When I run this example it produces an empty array of errors.
I was expecting that the value of
100
would fail theformat
validation because it is specified as auri-reference
. Have I made a mistake?