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

fix: adjust regex to match Media Types with JSON content #781

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

romanblanco
Copy link
Member

Problem

#779

Solution

Adjusting regex to match registered Media Types with +json suffix or application/json

This concerns this parts of the OpenAPI Specification:

The changes I made are compatible with:

  • OAS2
  • OAS3
  • OAS3.1

Related Issues

Links to any related issues.

Checklist

  • Added tests
  • Changelog updated
  • Added documentation to README.md
  • Added example of using the enhancement into test-app

Steps to Test or Reproduce

See #779

  Adjusting regex to match registered Media Types [1] with `+json` suffix or
  `application/json`

  [1] https://www.iana.org/assignments/media-types/media-types.xhtml
Copy link

@gsar gsar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks for the fix!

@romanblanco romanblanco merged commit 1982941 into rswag:master Sep 16, 2024
24 checks passed
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 this pull request may close these issues.

2 participants