summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-09-09 11:55:56 +0300
committerJulian Berman <Julian@GrayVines.com>2022-09-09 11:55:56 +0300
commitee024ffc61bee56b25e816f489d7365fe1445c6d (patch)
tree3e2bb6cde1aec4cd489f018fbc46c354b5accc7b /docs
parentbd4306a00ffecc715567d3117ce0ecc949f5dcc0 (diff)
downloadjsonschema-ee024ffc61bee56b25e816f489d7365fe1445c6d.tar.gz
Deprecate jsonschema.draftN_format_checker attributes.v4.16.0
Format support / enablement will change with vocabulary support, but in the interim, now that #905 is merged, these objects are better accessed by retrieving them directly from the corresponding validator. In other words: don't do: from jsonschema import draft202012_format_checker just do from jsonschema import Draft202012Validator do_whatever_with(Draft202012Validator.FORMAT_CHECKER)
Diffstat (limited to 'docs')
-rw-r--r--docs/validate.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/validate.rst b/docs/validate.rst
index f949837..9f88259 100644
--- a/docs/validate.rst
+++ b/docs/validate.rst
@@ -181,7 +181,7 @@ By default, no validation is enforced, but optionally, validation can be enabled
>>> validate(
... instance="-12",
... schema={"format" : "ipv4"},
- ... format_checker=draft202012_format_checker,
+ ... format_checker=Draft202012Validator.FORMAT_CHECKER,
... )
Traceback (most recent call last):
...