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

[Improvement] application/xml media type instead of text/xml #108

Open
tomwetjens opened this issue Mar 26, 2024 · 1 comment
Open

[Improvement] application/xml media type instead of text/xml #108

tomwetjens opened this issue Mar 26, 2024 · 1 comment
Assignees

Comments

@tomwetjens
Copy link

https://www.rfc-editor.org/rfc/rfc7303 standardizes the media type application/xml for use in exchanging network entities that are related to the Extensible Markup Language (XML) while defining text/xml (...) as aliases for the respective application types.

Also tooling such as DAST scanners mostly support application/xml in the OpenAPI specification.

I propose to change the specification to specify application/xml instead of text/xml.

Producers SHOULD keep sending text/xml until all consumers accept the application/xml type.
Consumers MUST start accepting application/xml and SHOULD accept text/xml for backwards compatibility.

@RobbenRiksen
Copy link
Contributor

RobbenRiksen commented Mar 29, 2024

Discussed in 2024-03-29 TSC and agreed on. Pull request will be made by @tomwetjens to add this to spec.

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

No branches or pull requests

2 participants