Hi, would be possible to add attribute security_scheme for generating swagger-ui security scheme without need to have it as a fn param? I have several APIs and it's little bit confusing to have _auth: SecuritySchema as parameter in almost all open api functions and only because of generating swagger api doc with lock icon next to the request definition.
Code example (if possible)
[derive(SecurityScheme)]
[oai(ty = "basic")]
pub struct BasicSecurityScheme(Basic);
It would be nice instead of this
[OpenApi(
prefix_path = "/secure",
tag = "CustomApiTags::Custom",
Description of the feature
Hi, would be possible to add attribute security_scheme for generating swagger-ui security scheme without need to have it as a fn param? I have several APIs and it's little bit confusing to have _auth: SecuritySchema as parameter in almost all open api functions and only because of generating swagger api doc with lock icon next to the request definition.
Code example (if possible)
[derive(SecurityScheme)]
[oai(ty = "basic")]
pub struct BasicSecurityScheme(Basic);
It would be nice instead of this
[OpenApi(
)] impl CustomApi {
[oai(path = "/test-auth", method = "get")]
}
use this
[OpenApi(
)] impl CustomApi {
[oai(path = "/test", method = "get")]
}
or this
[OpenApi(
)] impl CustomApi {
[oai(path = "/test-auth", method = "get", security_scheme = "BasicSecurityScheme")]
}