Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Releases: capitalone/json-syntax

Version 2.3.1

13 Feb 19:26
Compare
Choose a tag to compare

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

28 Jan 00:11
Compare
Choose a tag to compare

Technically a bugfix, but it also technically breaks pickling compatibility.

  • Fixes handling of private fields in attrs classes.

Version 2.2.0

16 Jan 00:41
7afbf29
Compare
Choose a tag to compare

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

10 Dec 01:16
b410744
Compare
Choose a tag to compare

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

09 Dec 23:51
f5b250e
Compare
Choose a tag to compare

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 save init=False keys in attrs.
  • Make sure helpers._Context is stringifying context items.

Version 2.0.2

24 Oct 21:04
Compare
Choose a tag to compare

Release notes:

  • Improves extras.dynamodb
  • Fixes TypedDict

Version 2.0.0

09 Oct 19:36
62760da
Compare
Choose a tag to compare

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 now extras
  • Add access method to SimpleCache that RuleSet will call.
  • Some actions in action_v1 are expecting the new Attribute object instead of a tuple

Version 1.0.1

24 May 17:33
7605f6d
Compare
Choose a tag to compare

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

25 Apr 21:26
432289e
Compare
Choose a tag to compare

This tweaks 0.3.0 to add some convenience methods to the RuleSet class, and adds some docstrings.

Version 0.3.0

25 Apr 21:32
Compare
Choose a tag to compare
  • Adds the show_pattern verb to construct a Pattern object describing what the JSON looks like.
  • Adds the is_ambiguous method to RuleSet to determine if a type description with Unions is ambiguous
  • Adds a property test to prove round-tripping works with the standard rules.