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.
All this support is added using existing xmlSchemaFaker. We've also removed anther library that was added in that PR named js2xml as it's not needed anymore.
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.
This improves the already merged PR https://github.com/postmanlabs/openapi-to-postman/pull/724 with better approach that also adds support for usage of examples at schema level as well.
All this support is added using existing
xmlSchemaFaker
. We've also removed anther library that was added in that PR namedjs2xml
as it's not needed anymore.