Shashank_R
5 months agoNew Contributor
Swagger hub XML response missing namespace and prefix
We have defined an xml response schema like below
Test1Response:
type: object
properties:
Body:
$ref: "#/components/schemas/Test1BodyResponse"
xml:
name: Envelope
namespace: http://schemas.xmlsoap.org/soap/Test1/
prefix: soap
Test1BodyResponse:
type: object
properties:
Message:
$ref: "#/components/schemas/Test1Response"
xml:
name: Body
namespace: http://schemas.xmlsoap.org/soap/Test1/
prefix: ns6
The example response payload matched the schema.
But, when I test. I get the XML response payload without prefix and namespace.
Is there an issue with using different namespace and prefix for the child objects?
Any help is appreciated!