-
Notifications
You must be signed in to change notification settings - Fork 11
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
#[derive(utoipa::ToSchema)]
detection fails
#23
Comments
I think I have the same issue, not sure if my config is wrong: After |
Should be fixed in the new 0.1.11 release |
Hi, are you asking if the new 0.1.11 release works? |
v0.1.11 is now availble on crates.io |
Rebuilding my MRE repo with v0.1.11 looks good on my end; thanks very much |
@ProbablyClem I think this can be closed now. |
It seems the detection of
utoipa::ToSchema
is buggy.I have uploaded an MRE here that I invite you to try out at your convenience.
Generating and comparing both
openapi.working.yaml
andopenapi.broken.yaml
indicate that the latter is missing the schema for thePerson
struct, whereas the former includes it.It seems the discovery mechanism of
utoipauto
fails to account for the fully qualified reference toutoipa::ToSchema
, and only matches onToSchema
.I suspect the issue lies somewhere here?
I also assume the same bug affects discovery of
utoipa::ToResponse
The text was updated successfully, but these errors were encountered: