summaryrefslogtreecommitdiff
path: root/docs/validate.rst
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-08-12 16:52:47 -0400
committerJulian Berman <Julian@GrayVines.com>2020-08-12 16:58:29 -0400
commit8a979cc30b3293096f67ffd155e033e857867a06 (patch)
tree801d255028c926ab02c21a03b6349111cb2eb2cd /docs/validate.rst
parente2c42f1b71868f8fcf88890cdee946e80fc422ea (diff)
downloadjsonschema-8a979cc30b3293096f67ffd155e033e857867a06.tar.gz
Pick a format checker that has no external dep now that fqdn exists.
Diffstat (limited to 'docs/validate.rst')
-rw-r--r--docs/validate.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/validate.rst b/docs/validate.rst
index 3489f20..dc46017 100644
--- a/docs/validate.rst
+++ b/docs/validate.rst
@@ -277,15 +277,15 @@ validation can be enabled by hooking in a format-checking object into an
.. doctest::
- >>> validate("localhost", {"format" : "hostname"})
+ >>> validate("127.0.0.1", {"format" : "ipv4"})
>>> validate(
... instance="-12",
- ... schema={"format" : "hostname"},
+ ... schema={"format" : "ipv4"},
... format_checker=draft7_format_checker,
... )
Traceback (most recent call last):
...
- ValidationError: "-12" is not a "hostname"
+ ValidationError: "-12" is not a "ipv4"
.. autoclass:: FormatChecker
:members: