mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Refactor to clarify API does not use marshmallow
Refactor to clarify API does not use marshmallow
* Get SimpleHoursPeriod directly, not via marshmallow schema Mentioning marshmallow in imports is misleading here, since we are constructing the result dict by hand and not using marshmallow to generate the OpenAPI response. * Rename API serialize methods to mention API This differentiates from the Marshmallow Schema dump method which is used in the JSON renderer in json.pymerge-requests/170/head
3 changed files with 45 additions and 27 deletions
-
22tildes/tildes/views/api/beta/comment.py
-
29tildes/tildes/views/api/beta/topic.py
-
21tildes/tildes/views/api/beta/user.py
Write
Preview
Loading…
Cancel
Save
Reference in new issue