Open EinarasGar opened 3 weeks ago
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 super::
works the same as crate::
:
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. In the generated spec I see my custom tag, as well as the module name.
#[derive(OpenApi)]
#[openapi(
tags((name = "Authentication", description = "Authentication operations")),
paths(authenticate),
components(schemas(
...
))
)]
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