Command-line utility to convert from OpenAPI 3.0 to RAML specification.
- Install Node and NPM
- Install dependencies:
npm install
- Convert specification:
bin/oas3-to-raml.js -i [input-spec] -o [output-spec]
-- or --
npx oas3-to-raml -i [input-spec] -o [output-spec]
Where:
- input-spec: Full path to input specification in OpenAPI 3.0 format
- output-spec: Full path to output specification. It will be created in RAML format
This utility depends on the following projects:
- api-spec-converter: Convert from OpenAPI 3.0 to OpenAPI 2.0
- oas-raml-converter: Convert from OpenAPI 2.0 to RAML
- js-raml: Parse/Write YAML files
- lodash: Java object operations
- commander: Parameter parsing