File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ RUN apk add --no-cache --virtual build-dependencies \
46
46
&& rm -Rf /root/.cabal/ /root/.ghc/ \
47
47
&& cd / && rm -Rf /pandoc-build
48
48
49
+ # OpenAPI to Postman
50
+ RUN npm install openapi-to-postmanv2 -g
51
+
49
52
ENV PATH "$PATH:/root/.composer/vendor/bin:${PANDOC_ROOT}/bin"
50
53
51
54
RUN mkdir /workdir
Original file line number Diff line number Diff line change @@ -8,22 +8,23 @@ The jjrom/doctools docker image gives access to the following command line appli
8
8
* [ widdershins] ( https://www.npmjs.com/package/widdershins )
9
9
* [ pandoc] ( http://pandoc.org )
10
10
* [ asciidoctor-pdf] ( https://asciidoctor.org )
11
+ * [ openapi2postmanv2] ( https://github.com/postmanlabs/openapi-to-postman )
11
12
12
13
## Installation
13
14
14
15
### From dockerhub
15
16
16
- docker pull jjrom/doctools:1 .0
17
+ docker pull jjrom/doctools:2 .0
17
18
18
19
### Build from source
19
20
Launch the following command and go for a (long) coffee break
20
21
21
- docker build -t jjrom/doctools:1 .0 .
22
+ docker build -t jjrom/doctools:2 .0 .
22
23
23
24
## Usage
24
25
Replace ${COMMAND} with one of {openapi|api2html|widdershins|pandoc|asciidoctor-pdf}
25
26
26
- docker run --rm -ti jjrom/doctools:1 .0
27
+ docker run --rm -ti jjrom/doctools:2 .0
27
28
28
29
* Note: input files must be mounted with docker -v option to be accessed by the tools*
29
30
Original file line number Diff line number Diff line change @@ -22,12 +22,16 @@ case "$command" in
22
22
exec asciidoctor-pdf " $@ "
23
23
;;
24
24
25
+ openapi2postmanv2)
26
+ exec openapi2postmanv2 " $@ "
27
+ ;;
28
+
25
29
debug)
26
30
exec /bin/bash
27
31
;;
28
32
29
33
* )
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 }"
31
35
exit 1
32
36
33
37
esac
You can’t perform that action at this time.
0 commit comments