Skip to content

Validating form data uploads fails #75

Description

@alesandar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions