Skip to content

Commit

Permalink
Version 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Beru committed Nov 6, 2019
1 parent c271d5c commit e2cca5e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 62 deletions.
61 changes: 0 additions & 61 deletions .gitignore

This file was deleted.

7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:13-alpine

ENV SWAGGER_CLI_VERSION 2.3.3

RUN npm install -g swagger-cli@${SWAGGER_CLI_VERSION}

CMD ["swagger-cli", "-h"]
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# docker-swagger-cli
# Swagger/OpenAPI CLI image

Docker image for [Swagger CLI](https://github.com/APIDevTools/swagger-cli).

It allows you to validate Swagger files or bundle them into a combined file.

## Use it

See help.
```shell script
docker run --rm jeanberu/swagger-cli
```

Validate schema from URL or a file.
```shell script
docker run --rm jeanberu/swagger-cli swagger-cli validate YOUR_URL
docker run --rm jeanberu/swagger-cli swagger-cli validate YOUR_FILE
```

## More help ?

See https://github.com/APIDevTools/swagger-cli for further information.

0 comments on commit e2cca5e

Please sign in to comment.