You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"type":"https://pb33f.io/wiretap/error","title":"unable to serve mocked response","status":401,"detail":"apiKey not found, no `x-api-key` header found in request"}
The sent request had the Authorization header set but not the x-api-key header.
but the security:
security:
- xApiKey: []
- apiKey: []
defines either xApiKey OR apiKey can be sent.
And AND relationship is defined like so:
security:
- xApiKey: []apiKey: []
The text was updated successfully, but these errors were encountered:
As an addition to this bug it seems optional security is also not respected.
IE if security is defined like so:
security:
- xApiKey: []
- {}
And no header is set then the same sort of response is returned but defining security like this means the security is optional, basically means xApiKey OR nothing
Consider this spec:
this error is returned when making a request:
The sent request had the
Authorization
header set but not thex-api-key
header.but the security:
defines either
xApiKey
ORapiKey
can be sent.And AND relationship is defined like so:
The text was updated successfully, but these errors were encountered: