openapi-editor
Adaptation of the Swagger-Editor for local files
Inspired by swagger-edit and swagger-editor-live, a node package and docker image to allow for editing openapi specifications on a local machine using the latest version of the swagger editor.
How to use
There are two ways to use this package:
- As a node application
- As docker image
To use the node application, clone this repository, navigate to the directory, then run
$ npm bin openapi-editor <openapi spec file path>
To use the docker image, run
$ docker run -ti --rm --volume="$(pwd)":/openapi -p 8080:8080 aomitayo/openapi-editor my-openapi.yaml
where my-openapi.yaml
is your openapi spec file.