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
When validating a request using an OpenAPI specification that contains a Parameter definition for a header parameter named Authorization, the following errors occurs:
League\OpenAPIValidation\PSR7\Exception\Validation\InvalidHeaders: Value "Basic dXNlcm5hbWU6cGFzc3dvcmQ=" for header "Authorization" is invalid for Request [get /users]
vendor/league/openapi-psr7-validator/src/PSR7/Exception/Validation/AddressValidationFailed.php:28
vendor/league/openapi-psr7-validator/src/PSR7/Exception/Validation/InvalidHeaders.php:35
vendor/league/openapi-psr7-validator/src/PSR7/Validators/HeadersValidator.php:46
vendor/league/openapi-psr7-validator/src/PSR7/Validators/ValidatorChain.php:25
vendor/league/openapi-psr7-validator/src/PSR7/RequestValidator.php:79
tests/AssertValidateTrait.php:35
tests/Unit/Handlers/UsersTest.php:68
Thanks for this very useful package 😀
When validating a request using an OpenAPI specification that contains a
Parameter
definition for aheader
parameter namedAuthorization
, the following errors occurs:This
Authorization
parameter should be ignored by the validator, according to https://swagger.io/specification/#parameter-objectI believe all Header parameters named
Accept
,Content-Type
orAuthorization
should be ignored entirely in the validator.Steps to replicate
Minimal OpenAPI specification:
The text was updated successfully, but these errors were encountered: