From cf3e6161ef4cb7549c444977254932453ba3a06e Mon Sep 17 00:00:00 2001 From: Shelby Sanders Date: Wed, 6 Aug 2014 00:19:15 -0700 Subject: [PATCH] Corrected default for consumes+produces --- lib/swagger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/swagger.js b/lib/swagger.js index 9c995db..ab7bfaf 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -27,8 +27,8 @@ function Swagger(loopbackApplication, swaggerApp, opts) { basePath: loopbackApplication.get('restApiRoot') || '/api', resourcePath: 'resources', // Default consumes/produces to application/json - consumes: ['application/json'], - produces: ['application/json'], + consumes: ['application/json', 'application/xml', 'text/xml'], + produces: ['application/json', 'application/javascript', 'application/xml', 'text/javascript', 'text/xml'], version: getVersion() });