kim
kim copied to clipboard
Kim: A JSON Serialization and Marshaling framework
`Fields = field.Collection(field.String(), source='ActiveFields')` this code does not recognise the source attribute and will only serialise/marshal the default property name 'Fields'. I tried using name instead and it suffers from...
If you have min/max on a Decimal field, and you pass the value as a string (which is supposed to be supported,) a crash occurs. ```tests/test_pipelines/test_numeric.py:207: in test_decimal_input_bounds_when_passed_as_string field.marshal(mapper_session) kim/field.py:344:...
Hi, I have some problems ``` python # -*- coding: utf-8 -*- from kim import field, Mapper class A(Mapper): __type__ = dict a = field.Integer() class B(Mapper): __type__ = dict...
On marshal, session.mapper.parent and session.parent are populated. These are set in the function marshal_nested(). However, on serialize neither is set correctly as serialize_nested() does not do this. It should do...
## Description Roles provide user of Kim with a powerful way to control what fields should be included when marshaling or serialzing a Mapper. The ability to specify a role...
If you do: `blacklist(...) | whitelist(...)` The result is only the whitelist takes precedence but this is really non obvious. Either the behaviour should be changed to make things in...
Added bages for Gitter community and circle.ci webhook push
`session.parent` can only be accessed in a collection: `field.Collection(field.Nested(SomeMapper))` it will be null in the case of a simple `field.Nested(SomeMapper)`
with a getter function on a nested field in a field.Collection, the error format is not consistent with `field.invalid` ``` def pillar_getter(session): if session.data and 'id' in session.data: pillar =...