Skip to content

Commit

Permalink
Merge branch 'some_docs_fixes_#424'
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaiarocci committed Aug 2, 2018
2 parents 6ac4ad8 + 2dd5f93 commit 11ddb4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions UPGRADING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ allows a more detailed and flexible handling. Make sure you have look on
Also, :attr:`~cerberus.Validator.errors` (as provided by the default
:class:`~cerberus.errors.BasicErrorHandler`) values are lists containing
error messages, and possibly a ``dict`` as last item containing nested errors.
Previously, they were strings if single errors per field occured; lists
Previously, they were strings if single errors per field occurred; lists
otherwise.


Expand Down Expand Up @@ -60,9 +60,8 @@ keyschema & valueschema

To reflect the common terms in the Pythoniverse [#]_, the rule for validating
all *values* of a :term:`mapping` was renamed from ``keyschema`` to
``valueschema`` (:ref:`docs <valueschema-rule>`). Furthermore a rule was
implemented to validate all *keys*, introduced as ``propertyschema``, now
renamed to ``keyschema`` (:ref:`docs <keyschema-rule>`). This means code
``valueschema``. Furthermore a rule was implemented to validate all *keys*,
introduced as ``propertyschema``, now renamed to ``keyschema``. This means code
using prior versions of cerberus would not break, but bring up wrong results!

To update your code you may adapt cerberus' iteration:
Expand Down
2 changes: 1 addition & 1 deletion docs/customize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ They can also be defined for subclasses of :class:`~cerberus.Validator`:
Added the :attr:`~cerberus.Validator.types_mapping` property and marked
methods for testing types as deprecated.

.. _validator-rule-methods:
.. _check-with-rule-methods:

Methods that can be referenced by the check_with rule
-----------------------------------------------------
Expand Down

0 comments on commit 11ddb4e

Please sign in to comment.