Open gohelkiran opened 1 year ago
I just ran into this problem because we are using this package as middleware and couldn't figure out why a missing Authorization header was causing a 422 in our app instead of a 401.
Your request is most likely missing either the Authorization header or the 'Bearer' portion of its value.
Get this error when securityScheme set with header
Osteel\OpenApi\Testing\Exceptions\ValidationException: None of security schemas did match for Request [get /operation/{operationUuid}]
Defined security scheme as Bearer header
and when validating request with below code
$validator->validate($request, '/permissions/{permissionUuid}', 'GET');
It gives this error
Is there support to add headers to validator request? If yes than how to add headers and if there is no support than how to validate request with security scheme.
Your environment
php 8.0 openapi 3.0