Forum Discussion
HKosova
4 years agoSmartBear Alumni (Retired)
Yes, OpenAPI 3 supports this. Media type and schemas can vary per HTTP status code, and it's even possible to define multiple media types with different schemas for the same status code. For example, this is a valid OpenAPI 3 definition:
responses:
'200':
description: Plain text or XML
content:
text/plain:
schema:
type: string
application/xml:
schema:
...
responses:
'401':
description: Unauthorized
content:
application/json:
schema:
...
The issue you're seeing seems to be a bug or limitation of the Connexion framework. Please follow up with them to troubleshoot the issue.
Related Content
- 13 years ago
- 5 years ago
Recent Discussions
- 10 days ago
- 16 days ago