Easily serialize Data Classes to and from JSON
MIT License
Bot releases are visible (Hide)
Published by lidatong over 3 years ago
This reverts the removal of encode_json
0.5.0
Published by lidatong over 3 years ago
This release updates pytest
to 6.5.2, because of a security fix in its transitive dependency py
(which will be indirectly upgraded to >=1.10
.
Note pytest
is not installed by default with this package -- only when you specify want dev
mode (see setup.py
file).
Published by lidatong over 4 years ago
Move FieldOverrides
outside of function as a perf optimization
(#225). Thanks @justinaustin
Published by lidatong over 4 years ago
BREAKING CHANGE
The optional encode_json
parameter has been removed from to_dict().
It should not have been exposed in the first place, and I don't expect
many to be affected. Nonetheless, this is a breaking change, and hence
the minor version bump (see note on versioning in the docs).
Published by lidatong over 4 years ago
Fix deprecation warning (#216). Thanks @stevenj
Published by lidatong over 4 years ago
Add config option to exclude fields with a predicate (#221). Thanks
@arusahni
Fix bug with mm_field
config when processing overrides
Published by lidatong over 4 years ago
Fix field name override (#209). Thanks @sumnerevans
Published by lidatong over 4 years ago
Revert caching
Published by lidatong over 4 years ago
Performance optimization via caching (#175, #148). Thanks @Germandrummer92 @konstin
Published by lidatong over 4 years ago
Introduce API for global config of encoders by type (#139).
To elaborate, you can now define globally how to encode any unsupported
type, rather than have to specify for every individual field.
Published by lidatong over 4 years ago
Fix nested optional type (#167). Thanks @RunOrVeith
Fix from_dict
annotations (#156). Thanks @eqperes
Published by lidatong almost 5 years ago
Introduce API for undefined fields. Thanks @RunOrVeith and
@Germandrummer92
Published by lidatong almost 5 years ago
Fix api type hints. Thanks @JoeyBG
Published by lidatong about 5 years ago
Make type annotations visible to mypy. Thanks @gward
Published by lidatong about 5 years ago
Fix bytes
encoder. Thanks @tstehr
Published by lidatong about 5 years ago
Fix issues with decoding generic extended types (datetime, uuid, decimal).
Published by lidatong about 5 years ago
Marshmallow fix. Thanks @yukihiko-shinoda
Published by lidatong about 5 years ago
Introduces PascalCase
lettercase config option. Thanks @jansabbe
Published by lidatong about 5 years ago
BREAKING CHANGE
configured_dataclass_json
has been removed in favor of a single dataclass_json
decorator that optionally takes arguments.
To upgrade to this release, simply replace all occurrences of configured_dataclass_json
with dataclass_json
(a find-and-replace-in-all-files should suffice).
Note that the no arg version of the decorator:
@dataclass_json
class Example
...
will continue to work and requires no code changes
Published by lidatong about 5 years ago
datakey
. Thanks @Glandos