I'm trying to describe a call like this.
The issue I run into is that the charset that is returned is the charset of the DB.
And we have some DB that for historical reasons are not on the UTF-8 encoding yet.
Is it possible to describe this in a way that both the headers Content-type: application/Json; charset=UTF-8 and Content-type: application/Json; charset= iso-8859-1 are considered valid answers?
Go to Solution.
You'll need to define those different encodings as separate media types:
There's an existing enhancement request to improve the syntax so that parameterized media types can be defined using a single Media Type Object:
Parameters for Media Types
View solution in original post