-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support OpenAPI specification with consumes
property undefined
#2
Support OpenAPI specification with consumes
property undefined
#2
Conversation
@ehmicky - could you take a look? |
if(consumes === undefined) { | ||
return | ||
} | ||
|
||
const consumesA = filterFormDataMimes({ mimes: consumes, params }) | ||
|
||
if (consumesA === undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those three lines can removed since consumesA
will now never be undefined
.
package-lock.json
Outdated
@@ -3899,7 +3899,7 @@ | |||
}, | |||
"camelcase-keys": { | |||
"version": "2.1.0", | |||
"resolved": "http://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.json
update is not related to this PR.
consumes
property undefined
Thanks a lot for this PR. This is a bug indeed, and your PR solves it. See my few comments. |
@ehmicky - should be ready, let me know if you'd like me to rebase my commits into a single commit |
Thanks again! |
I found that when the content type is not defined - I'm hitting the following:
This resolved the issue for me.