shapeshifter / shapeshifter-specification

This repository contains the Shapeshifter specification. Files in this repository are used to generate an easily readable and navigable specification, that can be accessed using the link below
https://shapeshifter.github.io/shapeshifter-specification/
Apache License 2.0
6 stars 7 forks source link

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

Open tomwetjens opened 5 months ago

tomwetjens commented 5 months ago

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 commented 5 months ago

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