Skip to content

Releases: clarkduvall/serpy

0.3.1

28 Nov 05:21
56e5a27
Compare
Choose a tag to compare
  • Don't catch AttributeError and KeyError for MethodField

0.3.0

28 Nov 04:54
8d03432
Compare
Choose a tag to compare
  • Revert behavior in #38, and match behavior in DRF which is:
required=True required=False
data = {'value': 1} {'value': 1} {'value': 1}
data = {'value': None} {'value': None} {'value': None}
data = {} KeyError('value',) {}

0.2.0

29 Sep 15:40
Compare
Choose a tag to compare
  • If required=False, None values will now be dropped from the output
  • MethodFields with required=True will trigger an exception when None value is returned
  • Drop support for Python 2.6
  • Add support for Python 3.5 and 3.6

0.1.1

12 Apr 01:39
Compare
Choose a tag to compare
  • Added label parameter to Field to be able to specify the output label
  • Updated documentation

0.1.0

11 Sep 17:11
Compare
Choose a tag to compare

API changes:

  • argument for the object to be serialized changed name from obj to instance
  • Serializer now takes context kwarg and ignores it for Django REST Framework compat
  • Serializer now takes data kwarg and errors for Django REST Framework compat

0.0.3

07 Apr 06:58
Compare
Choose a tag to compare
0.0.3