oas3-to-raml
v1.0.3
Published
OpenAPI 3.0 to RAML converter
Downloads
104
Readme
OpenAPI 3.0 to RAML Converter
Command-line utility to convert from OpenAPI 3.0 to RAML specification.
Installation and Usage
- 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
Attributions
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