swagger-node
swagger-node copied to clipboard
mock mode does not return XML
I have defined a path to return XML like this:
...
/dialog/{uuid}:
x-swagger-router-controller: dialogs
get:
description: Get specific dialog
...
produces:
- text/xml
responses:
"200":
description: OK
schema:
$ref: "#/definitions/Dialog"
...
However, the spec and model validates fine but the editor and server do not work as expected:
-
The editor still shows shows only the JSON-Schema under Responses

-
The server in mock mode still returns "content-type: application/json" with a JSON-body:

How do I get the mocking server to return XML? Thanks
Jonas
confirmed. :(