-
Notifications
You must be signed in to change notification settings - Fork 219
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
Examples not shown with IntoResponses #779
Comments
I found that this is not the case if I change the enum to enum StandardResponses {
#[response(status = 500,
content_type= "text/plain",
description = "Internal Error.",
example = json!("Internal error."))]
InternalError(String),
} So I guess utoipa assumes if it's an empty enum that there's now content. |
Closed
This was referenced Sep 26, 2024
Yup this is a bug and finally fixed here #1073 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm using utoipa as follows:
This generates the following JSON output:
I'm missing the content section here. I would have expected it to be shown since I specified
content_type
andexample
.Did I get somethign wrong or could it be that I found a bug?
I'm usign version 4.0.0.
Thank you in advance for your time!
The text was updated successfully, but these errors were encountered: