Open elgatito opened 2 years ago
Hi @elgatito!
Yes, indeed. We do not have functionality for optional authentication currently. If you set an security requirement, the endpoint has authentication required. I did not recall swagger having optional authentication for an endpoint at the time of implementing this feature. We want to stick to the OAS-3.0.0/SWAGGER as closely as possible. Does OAS define optional authentication? If so we should find a solution for that!
Hello,
I have optional authentication, implemented via request interceptor. So I added this to
ENDPOINT_INFO
:But with this declaration I get runtime asserts because of missing
AUTHENTICATION
macro in the endpoint declaration.That is expected behavior?