0.9.0 • Published 6 years ago

api-schema-conv v0.9.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

JSON / OPENAPI SCHEMA CONVERTER

CLI too for API documentation format conversion

Supports converting between JSON Schema and OpenAPI format.

Install

npm i -g api-schema-conv
yarn global add api-schema-conv

Usage

Convert JSON Schema to OpenAPI and dump JSON to the console:

asc js2oa /path/to/schema.json

... or to output YAML:

asc js2oa --yaml /path/to/schema.json

Convert OpenAPI YML file to JSON schema:

asc oa2json /path/to/openapi.json
asc oa2json /path/to/openapi.yaml