Inline formats

This commit is contained in:
Julian Berman
2013-02-03 00:54:11 -05:00
parent a7c95aa885
commit 0a67c8b9de
3 changed files with 14 additions and 10 deletions

View File

@@ -1,9 +0,0 @@
=========================
Validating String Formats
=========================
.. currentmodule:: jsonschema
.. autoclass:: FormatChecker
:members:

View File

@@ -41,7 +41,6 @@ Contents:
validate
errors
references
formats
creating

View File

@@ -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