Skip to content

Reject content types that are not listed #55

Open
@david0

Description

@david0

Shouldn't be unspecified content types rejected by this library?

For example with this OpenAPI

      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Pet'

requests using the Content-Type application/xml should be rejected. Even application/merge-patch+json should be rejected I think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions