Parsing Code Examples#

The AML parser can be found in the Aml10Parser class. All parsing methods are asynchronous, and either returns a promise/future as a result.

Before parsing a dialect instance, the dialect must be registered using the AMF.registerDialect function.

Path examples#

The paths given to the parser must have a specific structure:

Paths in Windows:

  • Absolute: file:///C:/testing/api.raml
  • Relative: file:///api.raml

Paths in Mac and Unix:

  • Absolute: file:///Users/aml/testing/api.raml
  • Relative: file://api.raml


Last updated on by arielmirra