Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

colander 1.2 #714

Merged
merged 1 commit into from
Jan 19, 2016
Merged

colander 1.2 #714

merged 1 commit into from
Jan 19, 2016

Conversation

ocefpaf
Copy link
Member

@ocefpaf ocefpaf commented Jan 19, 2016

#1.2 (2016-01-18)

Features

Bug Fixes

  • SchemaNode will no longer assume the first argument to the constructor
    is the schema type. This allows it to properly fallback to using the
    schema_type class attribute on subclasses even when using the
    imperative API to pass options to the constructor.
  • Fix a bug in which MappingSchema, SequenceSchema and
    TupleSchema would always treat the first arg as the schema type. This
    meant that it would fail if passed only nodes to the constructor despite
    the default type being implied by the name. It is now possible to do
    MappingSchema(child1, child2, ...) instead of
    MappingSchema(Mapping(), child1, child2).

Translations

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 wich succeeds if the value is none of the choices.
  • Add normalize option to Decimal, stripping the rightmost
    trailing zeros.

Bug Fixes

Translations

  • Added new translations: el
  • Updated translations: fr, de, ja

ocefpaf added a commit that referenced this pull request Jan 19, 2016
@ocefpaf ocefpaf merged commit 6692307 into ioos:master Jan 19, 2016
@ocefpaf ocefpaf deleted the colander branch January 19, 2016 20:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant