Reputation: 455
I am trying to write a swagger json-schema, the response produces either one of these
So, how should i set the response header content type and also the produces MIME type?
Upvotes: 1
Views: 1571
Reputation: 618
You can do something like:
/imagePath:
get:
summary: Something ...
produces: [ image/*, text/plain ]
responses:
...
Upvotes: 1