hapi-openapi icon indicating copy to clipboard operation
hapi-openapi copied to clipboard

does not validate a query parameter when a single item is sent

Open dcharbonnier opened this issue 4 years ago • 0 comments

When you define an endpoint with:

parameters:
      - name: role
        schema:
          type: array
          items: 
            type: string
        required: false
        in: query

sending ?role=xxx return a 400, ?role=xxx&role=yyy works

dcharbonnier avatar Jun 29 '21 08:06 dcharbonnier