You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Specifying text/plain media type for response causes openAPI shows response example in wrong media type (stilll uses application/json).
To Reproduce
Following endpoint specifies response media type to text/plain:
val ep2 = Endpoint(RoutePattern.GET / "greeting" / string("name"))
.outCodec(HttpCodec.content[Greeting](MediaType.text.plain))
and generated openAPI shows response as (the media type is right text/plain):
{
"msg": "string"
}
Expected behaviour
The response example should be:
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: