Releases: capitalone/json-syntax
Version 2.3.1
The action to convert attrs classes to dicts checks if a value is set to its default using the == operator. In some cases this doesn't work; this patch won't check mandatory fields.
Version 2.3.0
Technically a bugfix, but it also technically breaks pickling compatibility.
- Fixes handling of private fields in attrs classes.
Version 2.2.0
Release notes:
- Adds experimental support for classes derived from
typing.Generic. - Expands supported pythons to include 3.4
- Factors some error support into
json_syntax.errors - Factors some typing support into
json_syntax.types
Maintenance notes:
- Added configuration and documentation for testing via
dephell dockercommands. - Some cleanup of the unit tests for annotations
Version 2.1.1
This adds the new string verbs to the rules in extras.flags, as well as making them compatible with Python 3.5.
Version 2.1.0
Release notes:
- Add separate verbs for encoding and decoding strings to be used by homogenous mapping types.
- Drop
read_allas we shouldn't try to saveinit=Falsekeys in attrs. - Make sure
helpers._Contextis stringifying context items.
Version 2.0.2
Release notes:
- Improves extras.dynamodb
- Fixes TypedDict
Version 2.0.0
New:
- New dynamodb ruleset in
extras - Add preliminary
TypedDictsupport for when 3.8 lands. - Adds a
RLockCachethat uses reentrant locks. - Refactors product type (attrs, dataclass, named tuples) especially for better error messages
Potentially breaking changes:
- The
examplesdirectory is nowextras - Add
accessmethod toSimpleCachethat RuleSet will call. - Some actions in
action_v1are expecting the newAttributeobject instead of a tuple
Version 1.0.1
This makes a small correction to the behavior of Enums; using indexing to look up members rather than relying on the __members__ dunder it uses the type directly.
To override it you'd need to subclass EnumMeta, but that's actually pretty easy.
Version 1.0
This tweaks 0.3.0 to add some convenience methods to the RuleSet class, and adds some docstrings.
Version 0.3.0
- Adds the
show_patternverb to construct aPatternobject describing what the JSON looks like. - Adds the
is_ambiguousmethod toRuleSetto determine if a type description withUnions is ambiguous - Adds a property test to prove round-tripping works with the standard rules.