Closed ChronosWS closed 2 years ago
If you just want to ignore it: See #113 (recent addition, not released yet, only in master
)
But you might also want to take a look at this example: https://github.com/GREsau/okapi/tree/master/examples/secure_request_guard/src
This example shows how you can implement different authentication methods into the spec. This way you can still use the try
buttons in the swagger/rapidoc. So definitely worth a look in my opinion.
Thank you! I knew I must have missed something!
I have an API implemented thus:
This generates an error:
I feel like this UserAuthorization - which exists to implement an authentication guard - should not be part of the API spec. But it also seems like this might be a common pattern so maybe I am unaware of how to make okapi do the right thing?