summaryrefslogtreecommitdiff
path: root/docs/validate.rst
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-07-29 12:22:35 +0300
committerJulian Berman <Julian@GrayVines.com>2022-08-29 12:23:07 +0300
commit8e43f784bea88ee1a7344036f90808b49dc26e53 (patch)
treefc752778798363dd30bd9582de935f94e1aeaf85 /docs/validate.rst
parent9c7983748108f3c03a575eaffeb48333bbbc37c1 (diff)
downloadjsonschema-8e43f784bea88ee1a7344036f90808b49dc26e53.tar.gz
Experiment with autoapi for generating explicit API documentation.
Ref: #590
Diffstat (limited to 'docs/validate.rst')
-rw-r--r--docs/validate.rst12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/validate.rst b/docs/validate.rst
index a343b30..97039e2 100644
--- a/docs/validate.rst
+++ b/docs/validate.rst
@@ -13,6 +13,7 @@ The simplest way to validate an instance under a given schema is to use the
:func:`validate` function.
.. autofunction:: validate
+ :noindex:
.. [#] For information on creating JSON schemas to validate
your data, there is a good introduction to JSON Schema
@@ -28,6 +29,7 @@ The Validator Protocol
to.
.. autoclass:: jsonschema.protocols.Validator
+ :noindex:
:members:
All of the `versioned validators <versioned-validators>` that are included with
@@ -54,6 +56,7 @@ versions.
:members:
.. autoexception:: jsonschema.exceptions.UndefinedTypeCheck
+ :noindex:
Raised when trying to remove a type check that is not known to this
TypeChecker, or when calling `jsonschema.TypeChecker.is_type`
@@ -109,6 +112,7 @@ existing `TypeChecker` or create a new one. You may then create a new
.. autoexception:: jsonschema.exceptions.UnknownType
+ :noindex:
.. _versioned-validators:
@@ -121,16 +125,22 @@ that each validator class provides see the `Validator` protocol,
which each included validator class implements.
.. autoclass:: Draft202012Validator
+ :noindex:
.. autoclass:: Draft201909Validator
+ :noindex:
.. autoclass:: Draft7Validator
+ :noindex:
.. autoclass:: Draft6Validator
+ :noindex:
.. autoclass:: Draft4Validator
+ :noindex:
.. autoclass:: Draft3Validator
+ :noindex:
For example, if you wanted to validate a schema you created against the
@@ -181,7 +191,6 @@ validation can be enabled by hooking in a format-checking object into an
:exclude-members: cls_checks
.. attribute:: checkers
-
A mapping of currently known formats to tuple of functions that
validate them and errors that should be caught. New checkers can be
added and removed either per-instance or globally for all checkers
@@ -204,6 +213,7 @@ validation can be enabled by hooking in a format-checking object into an
.. autoexception:: FormatError
+ :noindex:
:members: