colander v1.1 Release Notes

Release Date: 2016-01-15 // over 8 years ago
  • Platform

    • โž• Add explicit support for Python 3.4, Python 3.5 and PyPy3.

    ๐Ÿ”‹ Features

    • Add min_err and max_err arguments to Length, allowing customization of its error messages.

    • โž• Add colander.Any validator: succeeds if at least one of its subvalidators succeeded.

    • ๐Ÿ‘ Allow localization of error messages returned by colander.Invalid.asdict by adding an optional translate callable argument.

    • โž• Add a missing_msg argument to SchemaNode, allowing customization of the error message used when the node is required and missing.

    • โž• Add NoneOf validator which succeeds if the value is none of the choices.

    • โž• Add normalize option to Decimal, stripping the rightmost trailing zeros.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix an issue where the flatten() method produces an invalid name (ex: "answer.0.") for the type Sequence. See https://github.com/Pylons/colander/issues/179

    • ๐Ÿ›  Fixed issue with String not being properly encoded when non-string values were passed into serialize() See #235 <https://github.com/Pylons/colander/pull/235>_

    • title was being overwritten when made a child through defining a schema as a class. See https://github.com/Pylons/colander/pull/239

    ๐ŸŒ Translations

    • โž• Added new translations: el

    • โšก๏ธ Updated translations: fr, de, ja