swagger-node icon indicating copy to clipboard operation
swagger-node copied to clipboard

mock mode does not return XML

Open MrApe opened this issue 8 years ago • 1 comments

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:

  1. The editor still shows shows only the JSON-Schema under Responses

    bildschirmfoto 2017-10-13 um 16 49 44

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

    bildschirmfoto 2017-10-13 um 16 52 28

How do I get the mocking server to return XML? Thanks

Jonas

MrApe avatar Oct 13 '17 14:10 MrApe

confirmed. :(

bhelm avatar Dec 19 '18 09:12 bhelm