From dbfe22412a822b7267cafa5cec9921d59c6fab7e Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 18 Jun 2013 05:48:49 -0400 Subject: update to servicestack 3.9.54 --- .../swagger-ui/swagger-ui.js | 38 +++++++++++++++++++--- 1 file changed, 34 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Server.Implementations/swagger-ui/swagger-ui.js') diff --git a/MediaBrowser.Server.Implementations/swagger-ui/swagger-ui.js b/MediaBrowser.Server.Implementations/swagger-ui/swagger-ui.js index 93cd0bea4..7ac8ed7b5 100644 --- a/MediaBrowser.Server.Implementations/swagger-ui/swagger-ui.js +++ b/MediaBrowser.Server.Implementations/swagger-ui/swagger-ui.js @@ -300,7 +300,7 @@ function program3(depth0,data) { function program5(depth0,data) { - return "\n

Parameters

\n \n \n \n \n \n \n \n \n \n \n\n \n
ParameterValueDescriptionData Type
\n ";} + return "\n

Parameters

\n \n \n \n \n \n \n \n \n \n \n \n\n \n
ParameterValueDescriptionParameter TypeData Type
\n ";} function program7(depth0,data) { @@ -629,6 +629,12 @@ function program12(depth0,data) { if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } if(stack1 || stack1 === 0) { buffer += stack1; } + buffer += "\n"; + foundHelper = helpers.paramType; + stack1 = foundHelper || depth0.paramType; + if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } + else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } + if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n\n \n\n\n"; return buffer;}); })(); @@ -753,6 +759,12 @@ function program11(depth0,data) { if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } if(stack1 || stack1 === 0) { buffer += stack1; } + buffer += "\n"; + foundHelper = helpers.paramType; + stack1 = foundHelper || depth0.paramType; + if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } + else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } + if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n\n"; return buffer;}); })(); @@ -831,6 +843,12 @@ function program6(depth0,data) { if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } if(stack1 || stack1 === 0) { buffer += stack1; } + buffer += "\n"; + foundHelper = helpers.paramType; + stack1 = foundHelper || depth0.paramType; + if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } + else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } + if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n\n"; return buffer;}); })(); @@ -909,6 +927,12 @@ function program6(depth0,data) { if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } if(stack1 || stack1 === 0) { buffer += stack1; } + buffer += "\n"; + foundHelper = helpers.paramType; + stack1 = foundHelper || depth0.paramType; + if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } + else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } + if(stack1 || stack1 === 0) { buffer += stack1; } buffer += "\n\n"; return buffer;}); })(); @@ -1076,7 +1100,13 @@ function program15(depth0,data) { if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "description", { hash: {} }); } if(stack1 || stack1 === 0) { buffer += stack1; } - buffer += "\n\n\n"; + buffer += "\n\n"; + foundHelper = helpers.paramType; + stack1 = foundHelper || depth0.paramType; + if(typeof stack1 === functionType) { stack1 = stack1.call(depth0, { hash: {} }); } + else if(stack1=== undef) { stack1 = helperMissing.call(depth0, "paramType", { hash: {} }); } + if(stack1 || stack1 === 0) { buffer += stack1; } + buffer += "\n\n"; return buffer;}); })(); @@ -1590,7 +1620,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials _ref2 = this.model.parameters; for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) { param = _ref2[_k]; - if ((param.paramType === 'body' || 'form') && param.name !== 'file' && (map[param.name] != null)) { + if ((param.paramType === 'body' || 'form') && param.name !== 'file' && param.name !== 'File' && (map[param.name] != null)) { bodyParam.append(param.name, map[param.name]); } } @@ -1646,7 +1676,7 @@ templates['status_code'] = template(function (Handlebars,depth0,helpers,partials obj.contentType = paramContentTypeField; } log('content type = ' + obj.contentType); - if (!obj.data || (obj.type === 'GET' || obj.type === 'DELETE')) { + if (!(obj.data || (obj.type === 'GET' || obj.type === 'DELETE')) && obj.contentType === !"application/x-www-form-urlencoded") { obj.contentType = false; } log('content type is now = ' + obj.contentType); -- cgit v1.2.3