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

Reject content types that are not listed #55

Open
david0 opened this issue Jul 23, 2024 · 0 comments · May be fixed by #56
Open

Reject content types that are not listed #55

david0 opened this issue Jul 23, 2024 · 0 comments · May be fixed by #56

Comments

@david0
Copy link

david0 commented Jul 23, 2024

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.

david0 pushed a commit to david0/openapi-schema-validation that referenced this issue Jul 26, 2024
david0 pushed a commit to david0/openapi-schema-validation that referenced this issue Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant