I’ve always edited swagger docs using the online editor, but thanks to docker, you may run it locally with equal ease:
From https://github.com/swagger-api/swagger-editor:
docker pull swaggerapi/swagger-editor
docker run -d -p 80:8080 swaggerapi/swagger-editor
Then browse to port 80 on localhost. If you want more than one tab to work in, launch a few more containers on ports 81, 82, and 83.
docker run -d -p 81:8080 swaggerapi/swagger-editor
docker run -d -p 82:8080 swaggerapi/swagger-editor
docker run -d -p 83:8080 swaggerapi/swagger-editor
I can’t believe I never thought of this before.