@readme/openapi-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -222,3 +222,11 @@ const util = require('../../util'); | ||
validateSchema(header.schema, headerId); | ||
if (header.schema) { | ||
validateSchema(header.schema, headerId); | ||
} else if (header.content) { | ||
Object.keys(header.content).forEach(mediaType => { | ||
if (header.content[mediaType].schema) { | ||
validateSchema(header.content[mediaType].schema || {}, `${headerId}/content/${mediaType}/schema`); | ||
} | ||
}); | ||
} | ||
}); | ||
@@ -225,0 +233,0 @@ |
{ | ||
"name": "@readme/openapi-parser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Swagger 2.0 and OpenAPI 3.x parser and validator for Node and browsers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
76949
1344