Skip to content

Commit 52eb6b5

Browse files
committed
Add openap2postmanv2
1 parent 07562b6 commit 52eb6b5

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ RUN apk add --no-cache --virtual build-dependencies \
4646
&& rm -Rf /root/.cabal/ /root/.ghc/ \
4747
&& cd / && rm -Rf /pandoc-build
4848

49+
# OpenAPI to Postman
50+
RUN npm install openapi-to-postmanv2 -g
51+
4952
ENV PATH "$PATH:/root/.composer/vendor/bin:${PANDOC_ROOT}/bin"
5053

5154
RUN mkdir /workdir

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ The jjrom/doctools docker image gives access to the following command line appli
88
* [widdershins](https://www.npmjs.com/package/widdershins)
99
* [pandoc](http://pandoc.org)
1010
* [asciidoctor-pdf](https://asciidoctor.org)
11+
* [openapi2postmanv2](https://github.com/postmanlabs/openapi-to-postman)
1112

1213
## Installation
1314

1415
### From dockerhub
1516

16-
docker pull jjrom/doctools:1.0
17+
docker pull jjrom/doctools:2.0
1718

1819
### Build from source
1920
Launch the following command and go for a (long) coffee break
2021

21-
docker build -t jjrom/doctools:1.0 .
22+
docker build -t jjrom/doctools:2.0 .
2223

2324
## Usage
2425
Replace ${COMMAND} with one of {openapi|api2html|widdershins|pandoc|asciidoctor-pdf}
2526

26-
docker run --rm -ti jjrom/doctools:1.0
27+
docker run --rm -ti jjrom/doctools:2.0
2728

2829
*Note: input files must be mounted with docker -v option to be accessed by the tools*
2930

entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ case "$command" in
2222
exec asciidoctor-pdf "$@"
2323
;;
2424

25+
openapi2postmanv2)
26+
exec openapi2postmanv2 "$@"
27+
;;
28+
2529
debug)
2630
exec /bin/bash
2731
;;
2832

2933
*)
30-
echo $"[ERROR] Choose one command between {openapi|api2html|widdershins|pandoc|asciidoctor-pdf}"
34+
echo $"[ERROR] Choose one command between {openapi|api2html|widdershins|pandoc|asciidoctor-pdf|openapi2postmanv2}"
3135
exit 1
3236

3337
esac

0 commit comments

Comments
 (0)