You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, as hypothesis-jsonschema generates values matching certain formats, then it seems to me that it should also be able to generate values NOT matching them.
I assume that it could be solved by passing the right format_checker to jsonschema validators.
What do you think?
The text was updated successfully, but these errors were encountered:
I think the current behaviour is strictly correct, since the spec is careful to treat format as advisory. However, I think your idea of adding a format checker should do the trick without requiring any change to hypothesis-jsonschema: see
I noticed that
jsonschema
doesn't raise errors when the input string does not match the "format" (as per docs)This behavior leads to unsatisfiable errors when the "not" keyword is involved. For example:
However, as
hypothesis-jsonschema
generates values matching certain formats, then it seems to me that it should also be able to generate values NOT matching them.I assume that it could be solved by passing the right
format_checker
tojsonschema
validators.What do you think?
The text was updated successfully, but these errors were encountered: