Skip to content

Support media type parameters for IsMediaTypeJson #1386

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

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

jamietanna
Copy link
Member

@jamietanna jamietanna commented Dec 13, 2023

Although not technically a valid extension to JSON according to the
media type definition
, it's got a number of services using it for a v
or version parameter, so we should support this as a valid option.

This makes sure that we parse it as a valid media type, performing the
same checks as we did before by ignoring the parameters.


As an alternative to #1374

Although not _technically_ a valid extension to JSON according to [the
media type definition], it's got a number of services using it for a `v`
or `version` parameter, so we should support this as a valid option.

This makes sure that we parse it as a valid media type, performing the
same checks as we did before by ignoring the parameters.

[the media type definition]: https://www.iana.org/assignments/media-types/application/json
@jamietanna
Copy link
Member Author

Awaiting response from #1374 (comment)

@jamietanna jamietanna added the enhancement New feature or request label Dec 13, 2023
@jamietanna jamietanna merged commit 0c61fb3 into master Dec 13, 2023
@jamietanna jamietanna deleted the chore/json-media branch December 13, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants