Add a docstring.

This commit is contained in:
Julian Berman
2013-05-21 07:30:54 -04:00
parent 42e97d8d35
commit c170684c2d

View File

@@ -47,6 +47,16 @@ Creating or Extending Validators
.. autofunction:: validator_for
Retrieve the validator appropriate for validating the given schema.
Uses the :validator:`$schema` property that should be present in the given
schema to look up the appropriate validator.
:argument schema: the schema to look at
:argument default: the default to return if the appropriate validator
cannot be determined. If unprovided, the default will be to just return
:class:`Draft4Validator`
.. autofunction:: validates