You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an operation has consumes and/or produces value of application/xml it would be nice to have the samples show accordingly.
For request I can make a code sample, but ideally it would be auto generated like the JSON.
As for responses I can't really think of any workaround.
The text was updated successfully, but these errors were encountered:
it-subscriptions
changed the title
Any plans for support xml samples for request/response
Any plans for support xml samples for request/response ?
Dec 21, 2016
@it-subscriptions there are no plans to bring auto-generated XML examples in the near future (if nobody would contribute)
But OpenAPI(Swagger) has an Example Object using which you can provide response samples for different mime-types.
Right now only application/json is displayed in ReDoc but I can implement displaying xml sample if it's present. This should be much cheaper than implementing XML sample generation.
So in the end you will be able to provide request samples using code samples and responses using native swagger response samples .
Would it work for you?
That would be great. Code samples for request is fine with me, so adding support for application/xml mime type in responses would work well as a quick solution.
If an operation has consumes and/or produces value of application/xml it would be nice to have the samples show accordingly.
For request I can make a code sample, but ideally it would be auto generated like the JSON.
As for responses I can't really think of any workaround.
The text was updated successfully, but these errors were encountered: