From 398b2ffc107928658f090cf866035f85e65623a4 Mon Sep 17 00:00:00 2001 From: Josh Mohundro Date: Sun, 27 Nov 2016 13:53:41 -0500 Subject: [PATCH 1/2] Update to allow for array return response --- lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/index.js b/lib/index.js index 0a915bf..d1a83bd 100644 --- a/lib/index.js +++ b/lib/index.js @@ -223,6 +223,8 @@ module.exports.loadRestifyRoutes = function () { notes: specSwagger.notes || null, nickname: specSwagger.nickname || name, responseClass: specSwagger.responseClass || undefined, + type: specSwagger.type || swagger.type || undefined, + items: specSwagger.items || swagger.items || undefined, produces: specSwagger.produces || swagger.produces || [ 'application/json' ], From 5f7415327e7e33ea24c2567a5026385d3e6dbd0f Mon Sep 17 00:00:00 2001 From: Mohundro Date: Mon, 28 Nov 2016 14:31:56 -0500 Subject: [PATCH 2/2] update package.json for publish --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d3206a0..c8e4ffa 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { - "name": "node-restify-swagger", - "version": "0.1.7", + "name": "node-restify-swagger2", + "version": "0.2.0", "author": { - "name": "Timo Behrmann" + "name": "Josh Mohundro" }, "license": "MIT", "keywords": [ @@ -13,7 +13,7 @@ ], "repository": { "type": "git", - "url": "git://github.com/z0mt3c/node-restify-swagger.git" + "url": "git://github.com/jmohundro89/node-restify-swagger.git" }, "bugs": { "url": "https://github.com/z0mt3c/node-restify-swagger/issues"