-
Couldn't load subscription status.
- Fork 20
Open
Description
Hello,
There is a problem when using escaped characters in a pattern. E.g.:
{ "type": "string", "anyOf": [ { "pattern": "^a\\-b$" }, { "pattern": "^b\\-c$" } ] }
Comparing this schema with itself (command jsonsubschema a.json a.json) will throw an error. More specifically, the library greenery throws an error. It seems like greenery can not handle escaped characters. When you delete one of the pattern, everything works fine, because the problematic greenery method is not called. The error is also thrown for other escaped characters like "\ " (whitespace), "\." ...
Best Regards
Michael
Metadata
Metadata
Assignees
Labels
No labels