This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#1.2 (2016-01-18)
Features
UnsupportedFields
. Used to pass to the caller a listof extra fields detected in a cstruct during deserialize.
See Add new exception ExtraItemsError Pylons/colander#241
drop
functionality toSequence
type.See add
drop
support toSequence
Pylons/colander#225Bug Fixes
SchemaNode
will no longer assume the first argument to the constructoris the schema type. This allows it to properly fallback to using the
schema_type
class attribute on subclasses even when using theimperative API to pass options to the constructor.
MappingSchema
,SequenceSchema
andTupleSchema
would always treat the first arg as the schema type. Thismeant 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 ofMappingSchema(Mapping(), child1, child2)
.Translations
fi
See added Finnish translations Pylons/colander#243
Check build and run requirements in Cartopy #1.1 (2016-01-15)
Platform
Features
min_err
andmax_err
arguments toLength
, allowingcustomization of its error messages.
colander.Any
validator: succeeds if at least one of itssubvalidators succeeded.
colander.Invalid.asdict
by adding an optional
translate
callable argument.missing_msg
argument toSchemaNode
, allowing customizationof the error message used when the node is required and missing.
NoneOf
validator wich succeeds if the value is none of the choices.normalize
option toDecimal
, stripping the rightmosttrailing zeros.
Bug Fixes
flatten()
method produces an invalid name(ex: "answer.0.") for the type
Sequence
. Seeflatten() produces incompatible dotted names for list Pylons/colander#179
String
not being properly encoded when non-stringvalues were passed into
serialize()
See
#235 <https://github.com/Pylons/colander/pull/235>
_title
was being overwritten when made a child through defining a schemaas a class. See issue with
title
being overwritten when child Pylons/colander#239Translations
el
fr
,de
,ja