Apischema Versions Save

JSON (de)serialization, GraphQL and JSON schema generation using Python typing.

v0.15.8

2 years ago

Fix ForwardRef issue in Python 3.9.8 (#280) by @wyfo

v0.16.5

2 years ago
  • Fix ForwardRef issue in Python 3.9.8 (#280) by @wyfo

v0.16.4

2 years ago

Add compatibility with graphql-core>=3.0.0 and ignore older versions (#278) by @wyfo

v0.16.3

2 years ago
  • Fix Literal deserialization error with unhashable data (#272) by @wyfo

v0.16.2

2 years ago
  • Add tuple passthrough to PassThroughOptions (#255) by @wyfo
  • Fix check_type errors raised in the upper type (#259) by @wyfo
  • Fix type converter handling when init return is annotated (#260) by @wyfo

v0.16.1

2 years ago
  • Fix ordering handling of after chaining (#228) by @wyfo

v0.16.0

2 years ago

Highlights

  • A big thanks to @kevinheavey for the entire documentation revision!
  • Support Python 3.10 and PEP 604
  • Performance improvement with a lot of refactoring and algorithmic optimizations (e.g. passthrough), #171, #191, #204, #205. Next version will go even (a lot) further.
  • Conditional skipping of fields in serialization, #174 and #180
  • Breaking change GraphQL schema use Enum names instead of values, #169
  • Ordering of fields, #192
  • Support of JSON schema 2020-20 and OpenAPI 3.1, #201, and improve schema customization, #215
  • Deprecation apischema.conversions.identity -> apischema.identity, #170, and apischema.metadata.flattened -> apischema.metadata.flatten, #173
  • Deprecation Remove Conversion (de)serialization related parameter (coerce, etc.), #177
  • Deperecation apischema.settings.default_schema is replace by apischema.settings.base_schema, #215

Changes

  • Support unsupported union members (#157) by @wyfo
  • Put AliasedStr in get_alias instead of ObjectField.alias (#158) by @wyfo
  • Fix settings.coercer not used when set (#159) by @wyfo
  • Add as_names conversion for enums (#160) by @wyfo
  • Change ValidationError serialization to {"loc": [], "msg": ""} (#163) by @wyfo
  • Use Enum names insteadof values for GraphQL (#169) by @wyfo
  • Move identity into main package (#170) by @wyfo
  • Add serialization passthrough feature (#171) by @wyfo
  • Rename metadata.flattened to metadata.flatten (#173) by @wyfo
  • Add conditionally skipped fields and none_as_undefined (#174) by @wyfo
  • Remove Conversion (de)serialization parameters (coerce/check_type/etc.) (#177) by @wyfo
  • Reset cache when default converters/object fields/etc. are modified (#179) by @wyfo
  • Allow default_object_fields to override object fields (#181) by @wyfo
  • Add exclusion of defaults/None in serialization (#180) by @wyfo
  • Add ordering metadata to object fields (#192) by @wyfo
  • Fix NewType conversions (#200) by @wyfo
  • Add JSON schema 2020-20 (new default) and OpenAPI 3.1 (#201) by @wyfo
  • Fix conversion of unspecialized generic types (#208) by @wyfo
  • Add base schema and deprecate default_schema. (#215) by @wyfo
  • Improve recursive types handling in method generation (#217) by @wyfo

v0.15.7

2 years ago
  • Add missing super().init_subclass calls (#210) by @wyfo

v0.15.6

2 years ago
  • Fix NewType schema (#194) by @wyfo
  • Fix key of serialized object having AliasedStr type instead of str (#195) by @wyfo

v0.15.5

2 years ago
  • Fix GraphQL union caching in schema generation (#176) by @wyfo