-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |