swagger-schema
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"name": "swagger-schema", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Swagger schema helpers", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -145,4 +145,10 @@ /** | ||
var hasDefault = parameter.hasOwnProperty('defaultValue'); | ||
if (hasDefault) { | ||
property.default = parameter.defaultValue; | ||
} | ||
// path rules are implicitly required | ||
if (parameter.required || paramType === 'path') { | ||
if (!hasDefault && (parameter.required || paramType === 'path')) { | ||
schema.required.push(parameter.name); | ||
@@ -149,0 +155,0 @@ } |
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
59173
2017