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

Unknown query parameters handling #140

Open
AnguIar opened this issue Sep 16, 2020 · 0 comments
Open

Unknown query parameters handling #140

AnguIar opened this issue Sep 16, 2020 · 0 comments

Comments

@AnguIar
Copy link

AnguIar commented Sep 16, 2020

It seems that free-form query parameters is not supported by the validator.
For this yaml:

      - in: query
        name: params
        required: false
        schema:
          type: object
          additionalProperties: {}
        example:
          user_id: 123456

The Swagger shows this for a valid request to send:
image

However, when I make the request I get Input validation error:

Error: Input validation error
    at _validateRequest (/home/roees/Desktop/CommonStorage/node_modules/openapi-validator-middleware/src/middleware.js:62:21)
{ .... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant