-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
23 changed files
with
2,215 additions
and
1,242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.