Closed johanfrykebrant closed 2 months ago
Sorry, disreagard this Issue. Not meant for this repo.
no problem
FTR: search across organization for that function has no hits for us -- https://github.com/search?q=org%3Adandi%20draft4_format_checker&type=code
The documentation on how to how to implement custom type formats suggest doing something like this
But doing that results in the following error
DeprecationWarning: Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator.
I tried to solve it by doing like this instead
This seems to be the wrong way of doing it since the custom type is not being validated at all. If I can get some assistance on how to solve this correctly I'd be happy to create a PR altering the documentation as needed.