GREsau / okapi

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

Ignore guard arguments in derive #118

Closed hardliner66 closed 1 year ago

hardliner66 commented 1 year 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 1 year 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 1 year ago

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