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

Set correct media type in docs for custom renderer #598

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

Svenito
Copy link
Contributor

@Svenito Svenito commented Oct 27, 2022

When specifying a renderer with a custom media type, the generated schema docs don't reflect the media type header.
It always returns application/json.

This patch uses the media_type from the custom renderer to render the response schema media type

When specifying a renderer with a custom media type, the generated
schema docs don't reflect the media type header.
It always returns application/json.
This patch uses the media_type from the custom renderer
@vitalik vitalik merged commit 2bf131a into vitalik:master Oct 27, 2022
@vitalik
Copy link
Owner

vitalik commented Oct 27, 2022

Thank you

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.

None yet

2 participants