netwo-io / apistos

Actix-web wrapper for automatic OpenAPI 3.0 documentation generation.
MIT License
126 stars 3 forks source link

Ability to exclude some structs #107

Closed ferid-akifzade closed 2 months ago

ferid-akifzade commented 2 months ago

Hello,

I am trying to use apistos and actix-identity at the same time. When I use

#[api_operation(tag = "another", summary = "Operator index endpoint")]
pub async fn test(user: Identity) -> HttpResponse {

It gives me error. "no function or associated item named request_body found for struct actix_identity::Identity in the current scope".

For successfully compile the code I have to add skip=true. But now my function is not documented at openapi. Please add ability to ignore variable name or structs. Ignoring Identity struct will solve my problem.

rlebran commented 2 months ago

Available with Apistos 0.3.1