fury-adapter-oas3-parser
Advanced tools
Comparing version 0.8.0 to 0.8.1
# Fury OAS3 Parser Changelog | ||
## 0.8.1 (2019-06-12) | ||
### Bug Fixes | ||
- Fixed handling of OpenAPI 3 documents which included invalid 'Schema Object' | ||
in reusable components. Under some circumstances these could cause the parser | ||
to throw an exception. | ||
## 0.8.0 (2019-06-11) | ||
@@ -4,0 +12,0 @@ |
@@ -96,3 +96,9 @@ const R = require('ramda'); | ||
if (isObject(element) && element.get('schemas') && isObject(element.get('schemas'))) { | ||
const schemas = element.get('schemas'); | ||
// Take schemas and convert to object with members for each key (discarding value) | ||
// We don't want the value making it into final parse results under any circumstance, | ||
// for example if the parse errors out and we leave bad state | ||
const schemas = new namespace.elements.Object( | ||
element.get('schemas').map((value, key) => new namespace.elements.Member(key)) | ||
); | ||
context.state.components.set('schemas', schemas); | ||
@@ -99,0 +105,0 @@ } |
{ | ||
"name": "fury-adapter-oas3-parser", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Open API Specification 3 API Elements Parser", | ||
@@ -42,3 +42,3 @@ "author": "Apiary.io <support@apiary.io>", | ||
}, | ||
"gitHead": "4c1d2f4d51f8a946429b5e5493d07fcf2b7b69ea" | ||
"gitHead": "698524e9c9d927beabc5b75870487b8b6c7ca2e5" | ||
} |
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
117792
2695