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

Better array type support for params #17

Open
theogravity opened this issue Dec 20, 2018 · 1 comment
Open

Better array type support for params #17

theogravity opened this issue Dec 20, 2018 · 1 comment

Comments

@theogravity
Copy link

I have the following definition:

        - in: query
          name: ids
          type: array
          uniqueItems: true
          collectionFormat: csv
          required: true
          minItems: 1
          items:
            type: string
          description: A comma-separated list of ids, as a string

The validator only seems to check that the parameter is present, but will not check if it is empty or if the number of items matches when it is present but no value is assigned.

@idanto
Copy link

idanto commented Jan 1, 2019

Hi @theogravity

a good catch I will be happy to review PR with that fix

@idanto idanto transferred this issue from PayU/openapi-validator-middleware Apr 15, 2019
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

2 participants