Skip to content

Releases: wyfo/apischema

v0.15.4

15 Jun 00:08
Compare
Choose a tag to compare
  • Remove aliasing of enum in GraphQL (#165) by @wyfo
  • Fix scalar/enum types error when in GraphQL input and output (#166) by @wyfo

v0.15.3

08 Jun 21:38
Compare
Choose a tag to compare
  • Fix regression in typed_dict serialization (#156) by @wyfo

v0.15.2

08 Jun 20:28
Compare
Choose a tag to compare
  • Fix regression of int not casted as float in deserialization (#154) by @wyfo

v0.15.1

06 Jun 20:41
Compare
Choose a tag to compare
  • Fix deprecation of Conversion.sub_conversions parameter (#153)

v0.15.0

06 Jun 15:11
Compare
Choose a tag to compare

Highlights

  • Serialization can now use type annotations instead of serialized object type. It implies that conversions can now be specified with Annotated and registered for NewType, but also that types can be validated at serialization and performance are globally improved.
  • Breaking change settings module has been refactored with a new organisation.
  • deprecation conversions parameter has been renamed conversion.
  • deprecation deserialization parameters (and global settings) coercion/default_fallback has been renamed coerce/fall_back_on_default
  • Object conversions for deserialization and serialization has been added as an useful shortcut to create conversion from/to an object type.
  • deprecation dataclass_input_wrapper has been deprecated, to be replaced by object_deserialization.
  • For repeated operations, (de)serialization method can be computed only once
  • Performance has been improved for deserialization and serialization; (de)serialization method can be computed only once for repeated operation, in order to make it even faster.

Changes

  • Fix serialization error when conversions are not hashable (#84) by @wyfo
  • Fix validator not taking owner parameter in account (#85) by @wyfo
  • Improve serialization performance (#86) by @wyfo
  • Enable registration of lazy conversions (#90) by @wyfo
  • Replace const keyword by enum for openapi schema (#92) by @wyfo
  • Support schema callable extra (#93) by @wyfo
  • Add schema parameter to deserialize (#96) by @wyfo
  • Make Union with Any member have empty JSON schema (#98) by @wyfo
  • Fix deprecated as a boolean in JSON schema (#100) by @wyfo
  • Fix staticmethod deserializer registration (#110) by @wyfo
  • Rename schema_ref to type_name (#112) by @wyfo
  • Add type_name factory for generic classes (#113) by @wyfo
  • Rename with_validation_errors to gather_errors (#116) by @wyfo
  • Handle not required Undefined field in serialization JSON schema (#125) by @wyfo
  • Fix handling of wrapped functions in is_async (#131) by @wyfo and @callumforrester
  • Fix error raised in deserialization of resolver aliased parameters (#130) by @callumforrester
  • Fix get_type_hints issue on resolver parameter with None default (#132) by @wyfo
  • Enforce tuple type for multiple conversions (#134) by @wyfo
  • Support decorated (de)serializer methods in Python 3.6 (#138) by @wyfo
  • Refactor settings module (#139) by @wyfo
  • Support type annotations in serialization (#142) by @wyfo
  • Add function to set global cache size (#143) by @wyfo
  • Rename deserialization parameters (#144) by @wyfo
  • Add object_deserialization/object_serialization (#145) by @wyfo
  • Rename conversions parameter to conversion (#149) by @wyfo
  • Rename merged metadata to flattened (#150) by @wyfo
  • Add subclass tagged union example (#151) by @wyfo

v0.14.7

10 Mar 14:19
Compare
Choose a tag to compare
  • Fix schema_ref handling when conversion in GraphQL schema (#78) by @wyfo
  • Tagged union refactoring (#79) by @wyfo
  • Allow serialization conversion to not be inherited (#80) by @wyfo
  • Use raw identity to bypass registered conversion (#81) by @wyfo
  • Fix union not being cached in graphql schema generation (#82) by @wyfo
  • Fix graphql_schema_caching in case of recursive unions (#83) by @wyfo

v0.14.6

14 Feb 21:44
Compare
Choose a tag to compare
  • Document how to run documentation examples

v0.14.5

08 Feb 13:45
Compare
Choose a tag to compare
  • remove ellipsis schema_ref

v0.14.4

04 Feb 08:03
Compare
Choose a tag to compare
  • Support resolver schema in Annotated return type

v0.14.3

03 Feb 23:54
Compare
Choose a tag to compare
  • Fix handling of types being recursive by their registered conversion in json schema
  • Fix handling of Annotated schema for graphql fields