Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use serialization classes instead of functions #510

Merged
merged 1 commit into from
Apr 28, 2016
Merged

Commits on Apr 28, 2016

  1. Changes to class-based full document serialization

    Serialization and deserialization is now done using serializer and
    deserializer classes. The former has a `serialize()` and
    `serialize_many()`, each of which produces a full JSON API document as a
    Python dictionary. The latter class has a `deserialize()` method, which
    receives a full JSON API document as input. Before, the serialization
    functions sent and received only the primary data.
    
    This commit also
    - organizes the (de-)serialization code in a new `serialization`
      subpackage,
    - moves various serialization code out of the `views` package and into
      the `serialization` package,
    - updates the marshmallow example to the new JSON API format,
    - allows the user to better generate serialization exceptions in custom
      serializers.
    jfinkels committed Apr 28, 2016
    Configuration menu
    Copy the full SHA
    eff917a View commit details
    Browse the repository at this point in the history