Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Changes in 0.3.0

Compare
Choose a tag to compare
@postatum postatum released this 17 Sep 07:55
· 52 commits to master since this release

Breaking Interface Changes

Due to AMF 3.3.0 release.

ScalarNode value & dataType methods now return a StrField instead of String.
i.e.

ScalarNode.value => ScalarNode.value.value()
ScalarNode.dataType => ScalarNode.dataType.value()

To handle null values you can use option:

ScalarNode.value => ScalarNode.value.option()
ScalarNode.dataType => ScalarNode.dataType.option()

New Interface

All syntaxes' parse() methods [1] now accept second argument when parsing a content string:

  • baseUrl - Location to assign to a document parsed from a content string. Also references are resolved relative to this location.

See JS and Java RAML 1.0 examples for usage details.

[1] raml10.parse(), raml08.parse(), oas20.parse(), oas20.parseYaml(), amfGraph.parse().