Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Supported MIME types - Is application/xml supported? #16

Open
renmak opened this issue Dec 22, 2015 · 2 comments
Open

Supported MIME types - Is application/xml supported? #16

renmak opened this issue Dec 22, 2015 · 2 comments

Comments

@renmak
Copy link

renmak commented Dec 22, 2015

Hello there,
I am trying to get mock response in XML format.

  • I have specified consumes and produces to -application/xml at top of yaml file.
  • Request includes content-type and accepts in header as application/xml.

However i get response in JSON format. I am seeing following message in console.
WARNING! GET /cars produces the MIME types that are not supported (application/xml). Using "json" instead

@winniehell
Copy link

This seems to be an issues of swagger-express-middleware. Arrays and objects are always sent as JSON.

@JamesMessinger
Copy link
Owner

Yeah, this is a big item on the "to-do" list for Swagger Express Middleware. I just don't have the time to implement it right now. Busy as hell at work :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants