0.14.0 (2017-04-30)


  • Relationship respects its passed Schema's get_attribute method when getting the id field for resource linkages (#80). Thanks @scmmmh for the PR.

0.13.0 (2017-04-18)


  • Add support for including deeply nested relationships in compount documents (#61). Thanks @mrhanky17 for the PR.

0.12.0 (2017-04-16)


  • Use default attribute value instead of raising exception if relationship is None on Relationship field (#75). Thanks @akira-dev.

0.11.1 (2017-04-06)

Bug fixes:

  • Fix formatting JSON pointer when serializing an invalid object at index 0 (#77). Thanks @danpoland for the catch and patch.

0.11.0 (2017-03-12)

Bug fixes:

  • Fix compatibility with marshmallow 3.x.

Other changes:

  • Backwards-incompatible: Remove unused utils.get_value_or_raise function.

0.10.2 (2017-03-08)

Bug fixes:

  • Fix format of error object returned when data key is not included in input (#66). Thanks @RazerM.
  • Fix serializing compound documents when Relationship is passed a schema class and many=True (#67). Thanks @danpoland for the catch and patch.

0.10.1 (2017-02-05)

Bug fixes:

  • Serialize None and empty lists ([]) to valid JSON-API objects (#58). Thanks @rgant for reporting and sending a PR.

0.10.0 (2017-01-05)


  • Add fields.Meta for (de)serializing meta data on resource objects (#28). Thanks @rubdos for the suggestion and initial work. Thanks @RazerM for the PR.

Other changes:

  • Test against Python 3.6.

0.9.0 (2016-10-08)


  • Add Flask-specific schema with class Meta options for self link generation: self_view, self_view_kwargs, and self_view_many (#51). Thanks @asteinlein.

Bug fixes:

  • Fix formatting of validation error messages on newer versions of marshmallow.

Other changes:

  • Drop official support for Python 3.3.

0.8.0 (2016-06-20)


  • Add support for compound documents (#11). Thanks @Tim-Erwin and @woodb for implementing this.
  • Backwards-incompatible: Remove include_data parameter from Relationship. Use include_resource_linkage instead.

0.7.1 (2016-05-08)

Bug fixes:

  • Format correction for error objects (#47). Thanks @ZeeD26 for the PR.

0.7.0 (2016-04-03)


  • Correctly format messages attribute of ValidationError raised when type key is missing in input (#43). Thanks @ZeeD26 for the catch and patch.
  • JSON pointers for error objects for relationships will point to the data key (#41). Thanks @cmanallen for the PR.

0.6.0 (2016-03-24)


  • Relationship deserialization improvements: properly validate to-one and to-many relatinoships and validate the presense of the data key (#37). Thanks @cmanallen for the PR.
  • attributes is no longer a required key in the data object (##39, #42). Thanks @ZeeD26 for reporting and @cmanallen for the PR.
  • Added id serialization (#39). Thanks again @cmanallen.

0.5.0 (2016-02-08)


  • Add relationship deserialization (#15).
  • Allow serialization of foreign key attributes (#32).
  • Relationship IDs serialize to strings, as is required by JSON-API (#31).
  • Relationship field respects dump_to parameter (#33).

Thanks @cmanallen for all of these changes.

Other changes:

  • The minimum supported marshmallow version is 2.3.0.

0.4.2 (2015-12-21)

Bug fixes:

  • Relationship names are inflected when appropriate (#22). Thanks @angelosarto for reporting.

0.4.1 (2015-12-19)

Bug fixes:

  • Fix serializing null and empty relationships with flask.Relationship (#24). Thanks @floqqi for the catch and patch.

0.4.0 (2015-12-06)

  • Correctly serialize null and empty relationships (#10). Thanks @jo-tham for the PR.
  • Add self_url, self_url_kwargs, and self_url_many class Meta options for adding self links. Thanks @asteinlein for the PR.

0.3.0 (2015-10-18)

  • Backwards-incompatible: Replace HyperlinkRelated with Relationship field. Supports related links (related), relationship links (self), and resource linkages.
  • Backwards-incompatible: Validate and deserialize JSON API-formatted request payloads.
  • Fix error formatting when many=True.
  • Fix error formatting in strict mode.

0.2.2 (2015-09-26)

  • Fix for marshmallow 2.0.0 compat.

0.2.1 (2015-09-16)

  • Compatibility with marshmallow>=2.0.0rc2.

0.2.0 (2015-09-13)


  • Add framework-independent HyperlinkRelated field.
  • Support inflection of attribute names via the inflect class Meta option.

Bug fixes:

  • Fix for making HyperlinkRelated read-only by defualt.


  • Docs updates.
  • Tested on Python 3.5.

0.1.0 (2015-09-12)

  • First PyPI release.
  • Include Schema that serializes objects to resource objects.
  • Flask-compatible HyperlinkRelate field for serializing relationships.
  • Errors are formatted as JSON API errror objects.