rswag/rswag

[REQUEST] How to spec missing Authorization header?

Quintasan opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

Specifying security in endpoint spec makes the Authorization header mandatory (I'm talking about (:http, :bearer) pair) and will error out if let(:Authorization) is not done in the example

Describe the solution you'd like

Not sure. The question is how am I supposed to test my requests to see that the endpoint reacts correctly when NO Authorization header is passed.

Same question.
I have to add Authorization as a mandatory parameter
Screenshot 2024-06-12 at 11 51 59