-
Notifications
You must be signed in to change notification settings - Fork 191
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
Default tag does not get overriden. #955
Comments
Got the same problem. You have to add an import statement for what you are using as a path or an api. In your case this should fix it, if use super::handlers::accounts_handler::get_account;
#[derive(OpenApi)]
#[openapi(
paths(
get_account,
...
), |
I see the same issue here. But my handler and the #[derive(OpenApi)] are in the same module, so I do not need to import. #[derive(OpenApi)]
#[openapi(
tags((name = "Authentication", description = "Authentication operations")),
paths(authenticate),
components(schemas(
...
))
)] |
Solved it: Had to import the classes for nest() the same way as described in #955 (comment) |
Hi, Im trying out version 5.0.0-alpha.0 and have noticed new behavior with tags.
As mentioned in #916
However, I do not experience this behavior.
Using this configuration
and
My openapi spec generates like this
This results in my redoc view having double of everything.
Reproducable example can be found here
https://github.com/EinarasGar/myra/blob/crate-update/server/api/src/openapi.rs
https://github.com/EinarasGar/myra/blob/crate-update/server/api/src/handlers/accounts_handler.rs
The text was updated successfully, but these errors were encountered: