GREsau / okapi

OpenAPI (AKA Swagger) document generation for Rust projects
MIT License
631 stars 112 forks source link

Ignore guard arguments in derive #118

Closed hardliner66 closed 2 years ago

hardliner66 commented 2 years ago

Is there a way to ignore guards from the api docs?

I'm currently using a third-party guard which doesn't implement OpenApiFromRequest and I'd simply would like to ignore it. Any idea on how to do that?

ralpha commented 2 years ago

This has been added very recently (yesterday), so currently only in master. This will also be available in the next release, but that might not be soon. So yes it is possible. For more info see: #113

hardliner66 commented 2 years ago

Using master would be okay for me. Thanks for the information.