Response example generation for XML and CSV
What/Why/How?
As part of implementing api-docs at Adthena, we had the need to auto-generate response examples for XML and CSV based on the OpenAPI schema provided.
- This PR implements XML and CSV response example generation for Redoc if a response example is not provided.
- The code for XML generation was adapted from RapiDoc's implementation and ported over to TypeScript.
- The feature can be enabled via a redoc option.
Reference
Testing
Screenshots (optional)
Check yourself
- [x] Code is linted
- [x] Tested
- [x] All new/updated code is covered with tests
Thank you! It's quite a big pull request, so we're going to need some time to prioritise and review this, but thank you so much for this :)
(if anyone else tries it from the branch, let us know how you get on?)
@lornajane Hello! Could you please provide an update on this PR? I'm experiencing the same issue it solves. Thank you!
Oh, I'm experiencing the same issue. @lornajane, any updates?
Hi @lornajane, is there any update on this? I can see that there are conflicts on this PR now, I wonder if you are implementing it yourselves?