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

Validating form data uploads fails #75

Open
alesandar opened this issue Aug 16, 2021 · 0 comments
Open

Validating form data uploads fails #75

alesandar opened this issue Aug 16, 2021 · 0 comments

Comments

@alesandar
Copy link

Swagger 2.0 supports form data validation, but I had an issue with express-openapi-validate. It throws the following error:

Error: Unrecognized parameter location=formData
    at parameterLocationToRequestField (/usr/src/app/node_modules/express-openapi-validate/dist/parameters.js:32:11)

In ./src/parameters.ts, we can see that the allowed types are "header", "path", "cookie" and "query".

Could you confirm if it's possible to validate form data at all?

Best regards

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

1 participant