colander
colander copied to clipboard
A serialization/deserialization/validation library for strings, mappings and lists.
Colander has a [page](http://docs.pylonsproject.org/projects/colander/en/latest/null_and_drop.html) devoted to describing Colander's use of Null and Drop values. The product's current behaviour doesn't match that description. Specifically, `default` should only affect serialization—but it currently...
Small issue with dict-like mappings In the Mapping [_validate](https://github.com/Pylons/colander/blob/96d69de5d2bc7f0a32f5662ca2773ce52aa9a53e/colander/__init__.py#L642) method Colander is checking if there is an "items" attribute However python (2) checks if there is a **keys** attribute instead...
If colander.String() is passed bytes data on python 3 and self.encoding is None, it does str() on the bytes object. This is almost always undesirable on python 3 as, unlike...
As we already know result from serializer resemble json, but not really(every element has eventually string type). I think a function is needed that would serialize a data and output...
Some code chunk: ``` python #!/usr/bin/env python from __future__ import print_function import copy import pprint from colander import MappingSchema from colander import SchemaNode from colander import String from colander import...
There appears to be two "type" properties on schemas. It appears that `schema_type` was intended for use with inheritance and `typ` is the keyword argument you pass to the init....
I have a schema with a nested MappingSchema: ``` python class ConfSchema(colander.MappingSchema): foo = colander.SchemaNode(colander.Integer()) @colander.instantiate(missing={}) class scales(colander.MappingSchema): bar = MiniMax() baz = MiniMax() ``` When I flatten an appstruct...
I would like to know why Int (Number generally) cannot deserialize None i.e. serialize None to None. This used to be the case in previous versions of colander but it...
Hi There is a problem with deferred validators and missing. For example schema ``` class CrosspaymentSchema(ResourceSchema): date = colander.SchemaNode( Date(), ) account_from_id = colander.SchemaNode( colander.Integer(), missing=None, validator=account_from_validator ) subaccount_from_id =...