-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
Version 2.4.0.
Per #194 we have switched to using the class-based schema validation methods rather than the instance-based methods. But we have found a case where the class-based methods report the schema as valid:
(byebug) schema
{"type"=>"string", "pattern"=>"^[A-Za-z0-9_-\\s+]+$"}
(byebug) JSONSchemer.valid_schema?(schema)
true
(byebug) JSONSchemer.validate_schema(schema).to_a
[]
(byebug) JSONSchemer.schema(schema)
*** RegexpError Exception: char-class value at end of range: /^[A-Za-z0-9_-\s+]+$/
nil
Metadata
Metadata
Assignees
Labels
No labels