diff options
-rw-r--r-- | docs/formats.rst | 9 | ||||
-rw-r--r-- | docs/index.rst | 1 | ||||
-rw-r--r-- | docs/validate.rst | 14 |
3 files changed, 14 insertions, 10 deletions
diff --git a/docs/formats.rst b/docs/formats.rst deleted file mode 100644 index d586ecb..0000000 --- a/docs/formats.rst +++ /dev/null @@ -1,9 +0,0 @@ -========================= -Validating String Formats -========================= - - -.. currentmodule:: jsonschema - -.. autoclass:: FormatChecker - :members: diff --git a/docs/index.rst b/docs/index.rst index 729b83e..6c3c9cf 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -41,7 +41,6 @@ Contents: validate errors references - formats creating diff --git a/docs/validate.rst b/docs/validate.rst index ec92a96..902293c 100644 --- a/docs/validate.rst +++ b/docs/validate.rst @@ -161,3 +161,17 @@ provides see the :class:`IValidator` interface, which each validator implements. .. autoclass:: Draft3Validator + + +Validating Formats +------------------ + +JSON Schema defines the ``format`` property which can be used to check if +primitive types (``str``\s, ``number``\s, ``bool``\s) conform to well-defined +formats. By default, no validation is enforced, but optionally, validation can +be enabled by hooking in a format-checking object into an :class:`IValidator`. + +.. autoclass:: FormatChecker + :members: + +.. autofunction:: is_date_time |