JamesMessinger / swagger-server

No longer maintained. Please use https://github.com/BigstickCarpet/swagger-express-middleware
MIT License
149 stars 47 forks source link

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

Open renmak opened 8 years ago

renmak commented 8 years ago

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

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 commented 8 years ago

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

JamesMessinger commented 8 years ago

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 :(