Skip to content

Commit 25b8021

Browse files
committed
bundle as single .json file
1 parent ab23c25 commit 25b8021

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.idea
2-
document-reader-static-doc.html
2+
document-reader-static-doc.html
3+
/.openapi-generator/VERSION
4+
/.openapi-generator/FILES
5+
/openapi.json

.openapi-generator-ignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
24+
25+
FILES
26+
VERSION
27+
*.*
28+
!openapi.json

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,8 @@ npx redoc-cli bundle "$PWD/index.yml" --output document-reader-static-doc.html \
5252
--options.theme.colors.primary.main="#8a53cb" --options.expandResponses="all" \
5353
--options.expandSingleSchemaField --options.hideDownloadButton --options.jsonSampleExpandLevel="6"
5454
```
55+
56+
## Bundle scheme to single .json file
57+
```bash
58+
npx openapi-generator-cli generate -i index.yml -g openapi --skip-validate-spec
59+
```

0 commit comments

Comments
 (0)