-
Notifications
You must be signed in to change notification settings - Fork 416
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
Generated openAPI shows example in application/json instead of specified text/plain #3260
Comments
The same is also true for error channel:
the example error response is
not plain text
|
The examples are currently explicitly created for json. We need to make this dynamic by the media type in the codec |
/bounty $150 |
💎 $150 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
/attempt #3260 Options |
💡 @ffprivacy submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Specifying
text/plain
media type for response causes openAPI shows response example in wrong media type (stilll usesapplication/json
).To Reproduce
Following endpoint specifies response media type to
text/plain
:and generated openAPI shows response as (the media type is right
text/plain
):Expected behaviour
The response example should be:
Dependencies:
The text was updated successfully, but these errors were encountered: