swagger-schema
Advanced tools
Comparing version 0.9.2 to 0.9.3
{ | ||
"name": "swagger-schema", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Swagger schema helpers", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -52,3 +52,6 @@ /** | ||
beforeObject: function(v) { | ||
if (options.removeFormats && v.format && v.type !== 'string') { | ||
if (options.removeFormats && | ||
typeof v.format === 'string' && | ||
typeof v.type === 'string' && | ||
v.type !== 'string') { | ||
delete v.format; | ||
@@ -55,0 +58,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
59545
2032