From 7448523b98dcc8498a5add4bea34a8c89109b885 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Tue, 1 Nov 2022 17:07:28 -0400 Subject: Enable format validation by default in check_schema. This catches some additional schema problems (ones caught by format validation in the metaschema, which was previously treated as annotation-only in check_schema). Closes: #904 --- CHANGELOG.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CHANGELOG.rst') diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 6112fe4..db98d08 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,11 @@ v4.17.0 ======= +* The ``check_schema`` method on ``jsonschema.protocols.Validator`` instances + now *enables* format validation by default when run. This can catch some + additional invalid schemas (e.g. containing invalid regular expressions) + where the issue is indeed uncovered by validating against the metaschema + with format validation enabled as an assertion. * The ``jsonschema`` CLI (along with ``jsonschema.cli`` the module) are now deprecated. Use ``check-jsonschema`` instead, which can be installed via ``pip install check-jsonschema`` and found -- cgit v1.2.1