Update docs for descend method
This commit is contained in:
@@ -14,7 +14,8 @@ Creating or Extending Validators
|
|||||||
Creating Validation Errors
|
Creating Validation Errors
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
Any validating function that recurses into an instance (e.g. ``properties`` or
|
Any validating function that validates against a subschema should call
|
||||||
``items``) must call ``appendleft`` on the :exc:`ValidationError.path`
|
:meth:`ValidatorMixin.descend`, rather than :meth:`ValidatorMixin.iter_errors`.
|
||||||
attribute of the error in order to properly maintain where in the instance the
|
If it recurses into the instance, or schema, it must set the ``path`` or
|
||||||
error occurred.
|
``schema_path`` in order to properly maintain where in the instance and schema
|
||||||
|
the error occurred.
|
||||||
|
|||||||
Reference in New Issue
Block a user