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 docker
commands. - 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_all
as we shouldn't try to saveinit=False
keys in attrs. - Make sure
helpers._Context
is 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
TypedDict
support for when 3.8 lands. - Adds a
RLockCache
that uses reentrant locks. - Refactors product type (attrs, dataclass, named tuples) especially for better error messages
Potentially breaking changes:
- The
examples
directory is nowextras
- Add
access
method toSimpleCache
that RuleSet will call. - Some actions in
action_v1
are expecting the newAttribute
object 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_pattern
verb to construct aPattern
object describing what the JSON looks like. - Adds the
is_ambiguous
method toRuleSet
to determine if a type description withUnion
s is ambiguous - Adds a property test to prove round-tripping works with the standard rules.