Gi60s / openapi-enforcer

Apache License 2.0
94 stars 22 forks source link

Fix Operation.response case-sensitive handling of headers #124

Closed dziegelbein closed 2 years ago

dziegelbein commented 2 years ago

Operation.response fails to include headers from the supplied headers param unless the corresponding header names in the definition file are in all lowercase. This PR fixes what I perceive to be the problem and it demonstrates the issue in the new test case.

Gi60s commented 2 years ago

Thanks for the PR that included not only the fix but also the test. This has been published to NPM as version 1.15.4.