Skip to content

Conversation

akx
Copy link
Contributor

@akx akx commented Jul 23, 2020

Description

On occasion (or often, I guess), the input and output formats (=serializers) for a view might be different. This PR makes it easier for an OpenAPI schema subclass to describe that case by having three (body, response, and for symmetry components) trampoline functions that can be overridden.

This will likely also make it easier to infer serializers for auxiliary @actions in viewsets.

@carltongibson
Copy link
Collaborator

Duplicate of #7424 — So similar, let's keep discussion there. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants