fury-adapter-oas3-parser
Advanced tools
Comparing version 0.5.2 to 0.6.0
# Fury OAS3 Parser Changelog | ||
## 0.6.0 (26-02-19) | ||
### Enhancements | ||
- Compatibility with [Fury 3.0.0 Beta 9](https://github.com/apiaryio/api-elements.js/releases/tag/fury-3.0.0-beta.9). | ||
### Bug Fixes | ||
- Fix handling of empty `!!set` and `!!map` in YAML parsing. | ||
## 0.5.2 (19-02-19) | ||
@@ -4,0 +14,0 @@ |
@@ -32,11 +32,19 @@ /* eslint-disable no-use-before-define */ | ||
function yamlToObject(node, annotations, context) { | ||
return new context.namespace.elements.Object(node.value.map((nodes) => { | ||
const key = convert(nodes[0], annotations, context); | ||
const value = convert(nodes[1], annotations, context); | ||
return new context.namespace.elements.Member(key, value); | ||
})); | ||
if (node.value) { | ||
return new context.namespace.elements.Object(node.value.map((nodes) => { | ||
const key = convert(nodes[0], annotations, context); | ||
const value = convert(nodes[1], annotations, context); | ||
return new context.namespace.elements.Member(key, value); | ||
})); | ||
} | ||
return new context.namespace.elements.Object(); | ||
} | ||
function yamlToArray(node, annotations, context) { | ||
return new context.namespace.elements.Array(node.value.map(nodes => convert(nodes, annotations, context))); | ||
if (node.value) { | ||
return new context.namespace.elements.Array(node.value.map(nodes => convert(nodes, annotations, context))); | ||
} | ||
return new context.namespace.elements.Array(); | ||
} | ||
@@ -43,0 +51,0 @@ |
{ | ||
"name": "fury-adapter-oas3-parser", | ||
"version": "0.5.2", | ||
"version": "0.6.0", | ||
"description": "Open API Specification 3 API Elements Parser", | ||
@@ -28,3 +28,3 @@ "author": "Apiary.io <support@apiary.io>", | ||
"peerDependencies": { | ||
"fury": "3.0.0-beta.8" | ||
"fury": "3.0.0-beta.9" | ||
}, | ||
@@ -34,3 +34,3 @@ "devDependencies": { | ||
"eslint": "^5.9.0", | ||
"fury": "3.0.0-beta.8", | ||
"fury": "3.0.0-beta.9", | ||
"mocha": "^5.0.2" | ||
@@ -37,0 +37,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
98008
37
2069