swagger-ui
Advanced tools
Comparing version 2.1.0-alpha.6 to 2.1.0-alpha.7
// swagger-client.js | ||
// version 2.1.0-alpha.2 | ||
// version 2.1.0-alpha.3 | ||
/** | ||
@@ -843,3 +843,3 @@ * Array Model | ||
} | ||
else if (param.in === 'query') { | ||
else if (param.in === 'query' && typeof args[param.name] !== 'undefined') { | ||
if(querystring === '') | ||
@@ -1107,10 +1107,7 @@ querystring += '?'; | ||
this.required = required; | ||
if(obj['$ref']) { | ||
var refType = obj['$ref']; | ||
refType = refType.indexOf('#/definitions') === -1 ? refType : refType.substring('#/definitions').length; | ||
this['$ref'] = refType; | ||
} | ||
if(obj['$ref']) | ||
this['$ref'] = simpleRef(obj['$ref']); | ||
else if (obj.type === 'array') { | ||
if(obj.items['$ref']) | ||
this['$ref'] = obj.items['$ref']; | ||
this['$ref'] = simpleRef(obj.items['$ref']); | ||
else | ||
@@ -1146,3 +1143,4 @@ obj = obj.items; | ||
if(this['$ref']) { | ||
var refModel = models[this['$ref']]; | ||
var refModelName = simpleRef(this['$ref']); | ||
var refModel = models[refModelName]; | ||
if(refModel && typeof ignoredModels[type] === 'undefined') { | ||
@@ -1206,4 +1204,6 @@ ignoredModels[type] = this; | ||
str += 'boolean'; | ||
else if(obj['$ref']) | ||
str += simpleRef(obj['$ref']); | ||
else | ||
str += obj.type || obj['$ref']; | ||
str += obj.type; | ||
if(obj.type === 'array') | ||
@@ -1215,2 +1215,4 @@ str += ']'; | ||
simpleRef = function(name) { | ||
if(typeof name === 'undefined') | ||
return null; | ||
if(name.indexOf("#/definitions/") === 0) | ||
@@ -1217,0 +1219,0 @@ return name.substring('#/definitions/'.length) |
// swagger-client.js | ||
// version 2.1.0-alpha.2 | ||
// version 2.1.0-alpha.3 | ||
/** | ||
@@ -843,3 +843,3 @@ * Array Model | ||
} | ||
else if (param.in === 'query') { | ||
else if (param.in === 'query' && typeof args[param.name] !== 'undefined') { | ||
if(querystring === '') | ||
@@ -1107,10 +1107,7 @@ querystring += '?'; | ||
this.required = required; | ||
if(obj['$ref']) { | ||
var refType = obj['$ref']; | ||
refType = refType.indexOf('#/definitions') === -1 ? refType : refType.substring('#/definitions').length; | ||
this['$ref'] = refType; | ||
} | ||
if(obj['$ref']) | ||
this['$ref'] = simpleRef(obj['$ref']); | ||
else if (obj.type === 'array') { | ||
if(obj.items['$ref']) | ||
this['$ref'] = obj.items['$ref']; | ||
this['$ref'] = simpleRef(obj.items['$ref']); | ||
else | ||
@@ -1146,3 +1143,4 @@ obj = obj.items; | ||
if(this['$ref']) { | ||
var refModel = models[this['$ref']]; | ||
var refModelName = simpleRef(this['$ref']); | ||
var refModel = models[refModelName]; | ||
if(refModel && typeof ignoredModels[type] === 'undefined') { | ||
@@ -1206,4 +1204,6 @@ ignoredModels[type] = this; | ||
str += 'boolean'; | ||
else if(obj['$ref']) | ||
str += simpleRef(obj['$ref']); | ||
else | ||
str += obj.type || obj['$ref']; | ||
str += obj.type; | ||
if(obj.type === 'array') | ||
@@ -1215,2 +1215,4 @@ str += ']'; | ||
simpleRef = function(name) { | ||
if(typeof name === 'undefined') | ||
return null; | ||
if(name.indexOf("#/definitions/") === 0) | ||
@@ -1217,0 +1219,0 @@ return name.substring('#/definitions/'.length) |
{ | ||
"name": "swagger-ui", | ||
"version": "2.1.0-alpha.6", | ||
"version": "2.1.0-alpha.7", | ||
"description": "Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2180266
23277