This PR adds support for generating request and response body correctly for XML type of data from example if available. This change is done on both v1 and v2 interface with corresponding tests.
To support the JSON data to XML body conversion, we've used a stripped-down version of xml-js-graphite library to avoid extra dependencies. As this logic shouldn't need any updates in foreseeable future and logic being quite simple, having logic as separate file makes more sense.
Overview
This PR adds support for generating request and response body correctly for XML type of data from example if available. This change is done on both v1 and v2 interface with corresponding tests.
To support the JSON data to XML body conversion, we've used a stripped-down version of xml-js-graphite library to avoid extra dependencies. As this logic shouldn't need any updates in foreseeable future and logic being quite simple, having logic as separate file makes more sense.