kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
892 stars 235 forks source link

[openapi-request-validator] parameter content is ignored #660

Open josephgardner opened 4 years ago

josephgardner commented 4 years ago

Parameter objects require either a schema property, or a content property. The content appears to be ignored, and therefore the parameter is not validated.

http://spec.openapis.org/oas/v3.0.3#parameterContent

An example of a parameter defined using content

  parameters:
    filter:
      name: filter
      in: query
      content:
        application/json:
          schema:
            type: array
            items:
              ...

In theory, this should be nearly identical to how the request body is validated.