Closed jvtm closed 1 year ago
I don't have time to work on this right now. Pending on discussion and decisions on JSON-Schema-Test-Suite.
Regardless of what the tests check, maybe this should be included in the simple original form: add raises=ValueError
.
Changed from Draft to Ready, as this fixes the crash. Leaving JSON-Schema-Test-Suite modifications for people more familiar with that project and the actual (meta) schema related work.
All fine. I'm going to close this then as I wouldn't merge it without tests, but you or anyone is welcome to pick it up again when the upstream PR in the test suite is merged. Thanks for the efforts.
Doing hostname format check on empty string seems to raise a ValueError:
Fix by adding
raises=ValueError
to the related@_checks_drafts
decorator call.See also json-schema-org/JSON-Schema-Test-Suite#677.
Fixes #1121.
:books: Documentation preview :books:: https://python-jsonschema--1127.org.readthedocs.build/en/1127/