Fix a small typo and remove trailing whitespace.
This commit is contained in:
@@ -14,8 +14,11 @@ The simplest way to validate an instance under a given schema is to use the
|
|||||||
|
|
||||||
.. autofunction:: validate
|
.. autofunction:: validate
|
||||||
|
|
||||||
To learn more about creating json schema to validate your data, see
|
.. [#] For information on creating JSON schemas to validate
|
||||||
`Understanding JSON Schema <http://spacetelescope.github.io/understanding-json-schema/>`_
|
your data, there is a good introduction to JSON Schema
|
||||||
|
fundamentals underway at `Understanding JSON Schema
|
||||||
|
<http://spacetelescope.github.io/understanding-json-schema/>`_
|
||||||
|
|
||||||
|
|
||||||
The Validator Interface
|
The Validator Interface
|
||||||
-----------------------
|
-----------------------
|
||||||
@@ -184,12 +187,12 @@ implements.
|
|||||||
|
|
||||||
.. autoclass:: Draft4Validator
|
.. autoclass:: Draft4Validator
|
||||||
|
|
||||||
For example, if you wanted to validate a schema you created against the Draft 3
|
|
||||||
json schema, you could use:
|
For example, if you wanted to validate a schema you created against the
|
||||||
|
Draft 4 meta-schema, you could use:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
|
||||||
from jsonschema import Draft4Validator
|
from jsonschema import Draft4Validator
|
||||||
|
|
||||||
schema = {
|
schema = {
|
||||||
|
|||||||
Reference in New Issue
Block a user