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: Ignore charset parameter in media-types #5022

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

shibeshduw
Copy link
Contributor

@shibeshduw shibeshduw commented Sep 24, 2024

Closes #4969.

As we currently do not support handling charset, the changes in this PR simply ignores the provided charset in the spec and only considers the base media-type. So application/json;charset=utf-8 would be read as application/json and underlying schema is parsed accordingly. Currently it is up to the user to provide any Accept and Content-Type headers as required by the individual API.

@shibeshduw shibeshduw merged commit c4153b9 into main Sep 25, 2024
14 checks passed
@shibeshduw shibeshduw deleted the ignore-media-type-charset branch September 25, 2024 07:13
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.

Openapi generator: Could not parse 'application/json;charset=utf-8'
2 participants