Inline formats
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
=========================
|
|
||||||
Validating String Formats
|
|
||||||
=========================
|
|
||||||
|
|
||||||
|
|
||||||
.. currentmodule:: jsonschema
|
|
||||||
|
|
||||||
.. autoclass:: FormatChecker
|
|
||||||
:members:
|
|
||||||
@@ -41,7 +41,6 @@ Contents:
|
|||||||
validate
|
validate
|
||||||
errors
|
errors
|
||||||
references
|
references
|
||||||
formats
|
|
||||||
creating
|
creating
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -161,3 +161,17 @@ provides see the :class:`IValidator` interface, which each validator
|
|||||||
implements.
|
implements.
|
||||||
|
|
||||||
.. autoclass:: Draft3Validator
|
.. 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
|
||||||
|
|||||||
Reference in New Issue
Block a user