We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug In following endpoint specification I provide response object example:
val ep2 = Endpoint(RoutePattern.GET / "greeting" / string("name")) .outCodec(HttpCodec.content[Greeting].example("1", Greeting("Hi Jane")) ?? Doc.p("Response"))
but the generated openAPI show response as:
{ "msg": "string" }
Expected behaviour The response example should be
{ "msg": "Hi Jane" }
Dependencies:
"dev.zio" %% "zio" % "2.1.9", "dev.zio" %% "zio-http" % "3.0.1" "dev.zio" %% "zio-schema" % "1.4.1"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
In following endpoint specification I provide response object example:
but the generated openAPI show response as:
Expected behaviour
The response example should be
Dependencies:
The text was updated successfully, but these errors were encountered: