Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My tests now fail with error: request should have required property 'headers' #447

Closed
davesag opened this issue Nov 7, 2020 · 2 comments

Comments

@davesag
Copy link

davesag commented Nov 7, 2020

Describe the bug

In my api-server-boilerplate/pull/124 repo updating express-open-api-validator fails with error "request should have required property 'headers'". I get the same error even if I set some headers in the request.

To Reproduce

Actual behavior

  • In my server tests, using supertest, and even when setting Accept: application/json headers. the API validation fails saying "request should have required property 'headers'"

Expected behavior

I expect my tests to pass as before, as the API definition does not require any specific headers and these tests passed previously.

Examples and context

@cdimascio
Copy link
Owner

cdimascio commented Nov 7, 2020

this appears to be an issue when using node 15. will look into it. for now you can use node 14

@cdimascio
Copy link
Owner

fixed in 4.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants