Closed
Description
As stated in Readme - uri
string format belongs to the list of standard supported validations. But it doesn't work:
require "json-schema"
schema = { "type": "string", "format": "uri" }
JSON::Validator.validate(schema, 'invalid uri string') # this returns true, but provided value is not a valid uri
To make sure this is only an issue with uri
and not with date-time
for example, I have checked:
schema = { "type": "string", "format": "date-time" }
JSON::Validator.validate(schema, 'not a valid date') # returns false as expected
Metadata
Metadata
Assignees
Labels
No labels
Activity