forked from loafle/openapi-generator-original
Compare commits
442 Commits
fix-6.4.0-
...
go-server-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bf67a6d49 | ||
|
|
7006b388de | ||
|
|
8e2fa826e5 | ||
|
|
431cc2ec8e | ||
|
|
784c700d37 | ||
|
|
29223e0b81 | ||
|
|
9e8805d712 | ||
|
|
0350d0e313 | ||
|
|
f793d62744 | ||
|
|
7fc23dd406 | ||
|
|
e4bf068a88 | ||
|
|
5afa33980c | ||
|
|
4d52bf656e | ||
|
|
af917f8865 | ||
|
|
fe6e4e459f | ||
|
|
b3b672fdfc | ||
|
|
8457dbf1a6 | ||
|
|
4c7963cf54 | ||
|
|
bbb6f4e6a0 | ||
|
|
6213d39539 | ||
|
|
1f4cbb8f00 | ||
|
|
3db7169959 | ||
|
|
b94952b3b7 | ||
|
|
68a434818c | ||
|
|
910e463d50 | ||
|
|
ce587c7b57 | ||
|
|
8aa8a60754 | ||
|
|
db795a2c1a | ||
|
|
1145197fad | ||
|
|
d52e3fbfda | ||
|
|
63c26fc794 | ||
|
|
765628fb77 | ||
|
|
2b9677a29e | ||
|
|
80c85eff1b | ||
|
|
3990b73ff3 | ||
|
|
2042fb222a | ||
|
|
15604b31d6 | ||
|
|
0e8d997bf6 | ||
|
|
9890f076a9 | ||
|
|
48ef91acc4 | ||
|
|
5b5cb1f7e0 | ||
|
|
358397fe3f | ||
|
|
1a483b2c9a | ||
|
|
f5903bc391 | ||
|
|
833f649768 | ||
|
|
9358ab9d1d | ||
|
|
5299935c20 | ||
|
|
273be4634e | ||
|
|
cbcf3d36f6 | ||
|
|
216e2c45ff | ||
|
|
ad5cc827f0 | ||
|
|
2af661d5b0 | ||
|
|
605cc7bd29 | ||
|
|
7881482161 | ||
|
|
5e800d9633 | ||
|
|
5018d3c131 | ||
|
|
6142315bef | ||
|
|
e758e4a49a | ||
|
|
08bb0f42fe | ||
|
|
e7039f434e | ||
|
|
89e4b24295 | ||
|
|
3e10c5dbcf | ||
|
|
e83640c836 | ||
|
|
7eeb7f6ed2 | ||
|
|
b7a9373233 | ||
|
|
9d6f80a7cf | ||
|
|
b7546888d1 | ||
|
|
2d8ec8b008 | ||
|
|
7443c95d48 | ||
|
|
f0d439fbce | ||
|
|
f5f382c87a | ||
|
|
2250aae6a6 | ||
|
|
1204662a64 | ||
|
|
54c8bf8733 | ||
|
|
bba9815d1e | ||
|
|
08184086c0 | ||
|
|
4a5437968f | ||
|
|
d8ed253439 | ||
|
|
b7dc6ce598 | ||
|
|
c7d185dda9 | ||
|
|
d60b10826c | ||
|
|
04b34e7096 | ||
|
|
44ad6d5eac | ||
|
|
d3f63caf0b | ||
|
|
6a742fe398 | ||
|
|
be9f1b6e44 | ||
|
|
ab4a05a959 | ||
|
|
9c968e8bae | ||
|
|
b35ffd3c37 | ||
|
|
aa0d637631 | ||
|
|
00676870a3 | ||
|
|
842ca3db69 | ||
|
|
63ac3e1039 | ||
|
|
1210229e36 | ||
|
|
0d1f562d13 | ||
|
|
87ea870f03 | ||
|
|
3a172c3753 | ||
|
|
48d257b5c9 | ||
|
|
016507cf5c | ||
|
|
1c6decb394 | ||
|
|
edad90e794 | ||
|
|
fbf42de200 | ||
|
|
6d56a1911e | ||
|
|
5ffa233dfe | ||
|
|
1c56b07634 | ||
|
|
8b64fa54b2 | ||
|
|
25620e7df8 | ||
|
|
cc1226c0db | ||
|
|
c5a1dbecfb | ||
|
|
d02679b5b6 | ||
|
|
01ed5975e1 | ||
|
|
dd6ccaa84f | ||
|
|
54cb33c6a1 | ||
|
|
66caaf9a33 | ||
|
|
b6b888302e | ||
|
|
f0519eb934 | ||
|
|
fd20632ba1 | ||
|
|
780d266fe1 | ||
|
|
cc2dc65496 | ||
|
|
78bffff8f3 | ||
|
|
aeecd9cc26 | ||
|
|
3371e883ab | ||
|
|
c84b949df1 | ||
|
|
e152799569 | ||
|
|
977de5b324 | ||
|
|
fc71f98bed | ||
|
|
4384198cb1 | ||
|
|
f8e15f1f96 | ||
|
|
7f8b853f50 | ||
|
|
1d2d56ab65 | ||
|
|
bb8098a66f | ||
|
|
edc589ac81 | ||
|
|
6e747259ae | ||
|
|
9ace780eac | ||
|
|
0c3460f95b | ||
|
|
8a6c708884 | ||
|
|
f9937e77d6 | ||
|
|
ef5dc1c8a0 | ||
|
|
b4d2c14f12 | ||
|
|
4e27041bdc | ||
|
|
c251202869 | ||
|
|
25aba7279a | ||
|
|
da9ad4a008 | ||
|
|
ef35e6d7ea | ||
|
|
76fd2a2f66 | ||
|
|
1443dd9493 | ||
|
|
9cb14aeb8c | ||
|
|
4deaad557e | ||
|
|
adfb963831 | ||
|
|
55e9f66cae | ||
|
|
be651e7776 | ||
|
|
2b19d5f94d | ||
|
|
e32da0efda | ||
|
|
63913f2d0a | ||
|
|
ba8ca1e7ac | ||
|
|
fb059c259c | ||
|
|
3cf646cda8 | ||
|
|
7bc10b03d0 | ||
|
|
ff9b38404e | ||
|
|
3685c0c1d6 | ||
|
|
3d722c1083 | ||
|
|
f82a311bf8 | ||
|
|
5d602c628e | ||
|
|
3d2ec72461 | ||
|
|
b4eb7071e4 | ||
|
|
72cb03b865 | ||
|
|
c6b31a3e08 | ||
|
|
cc620d8ba2 | ||
|
|
56495d1486 | ||
|
|
737cb362b0 | ||
|
|
7259d812bd | ||
|
|
76c05b2991 | ||
|
|
182240ea1d | ||
|
|
6fa089adee | ||
|
|
854afc9be1 | ||
|
|
bc6d30832b | ||
|
|
a0b79d87f2 | ||
|
|
db478c3452 | ||
|
|
aea7cef6a1 | ||
|
|
a83470066e | ||
|
|
0cbf118757 | ||
|
|
0a4648f7a0 | ||
|
|
4e8d41bd79 | ||
|
|
45a3fe05f5 | ||
|
|
61aadb32bd | ||
|
|
92bcdea2fa | ||
|
|
021d3a311a | ||
|
|
bec32ae67f | ||
|
|
8a9afabb61 | ||
|
|
502a8a8ebf | ||
|
|
6686fb87b9 | ||
|
|
f8d5c547e3 | ||
|
|
e356b770d2 | ||
|
|
fefbfd6aa2 | ||
|
|
42fa07dd33 | ||
|
|
961980f284 | ||
|
|
c7c5dd2673 | ||
|
|
5f8c4ec640 | ||
|
|
ab819b9b18 | ||
|
|
1f4d323020 | ||
|
|
e07069731d | ||
|
|
64c3be93a8 | ||
|
|
2bd1a15217 | ||
|
|
f4c041e496 | ||
|
|
f4e0eb9bc9 | ||
|
|
1f23b019fa | ||
|
|
da96058f5b | ||
|
|
e211e1451d | ||
|
|
e0f42961c5 | ||
|
|
b847140834 | ||
|
|
b8ccd25a79 | ||
|
|
6f24ad3625 | ||
|
|
de27749047 | ||
|
|
d6e19f8f55 | ||
|
|
52417f0597 | ||
|
|
98c2794b5d | ||
|
|
e51908f176 | ||
|
|
b5745e6f26 | ||
|
|
33e0c6775f | ||
|
|
2679819694 | ||
|
|
e6c64d3917 | ||
|
|
2c78ff78ed | ||
|
|
ede1c9ca3e | ||
|
|
564a86ccda | ||
|
|
90d7da0b5f | ||
|
|
fdf53ac01e | ||
|
|
0176957e26 | ||
|
|
e3fdac0711 | ||
|
|
9b2917f3a9 | ||
|
|
f5b4490bc9 | ||
|
|
1881100742 | ||
|
|
1ac39c7fa9 | ||
|
|
58425f54c0 | ||
|
|
91815bf555 | ||
|
|
096aabd360 | ||
|
|
70a6106626 | ||
|
|
738beb401e | ||
|
|
03359ae4d5 | ||
|
|
cbf5598c59 | ||
|
|
7a41231721 | ||
|
|
9ad695d52c | ||
|
|
c5a8fafc3d | ||
|
|
5832731c0e | ||
|
|
6a67551ea5 | ||
|
|
90b78fe97e | ||
|
|
b247ad75e1 | ||
|
|
53d9d30834 | ||
|
|
241d649164 | ||
|
|
60e6d2d57f | ||
|
|
1163b9cd3b | ||
|
|
8a426b2f4a | ||
|
|
935146d187 | ||
|
|
c0322b18a4 | ||
|
|
04441188c6 | ||
|
|
e852ceceef | ||
|
|
0fff9642bf | ||
|
|
0b41ee1c78 | ||
|
|
ff48f80379 | ||
|
|
448cbfd018 | ||
|
|
f8cb5fde97 | ||
|
|
792c49a0ce | ||
|
|
81cafdc196 | ||
|
|
8ce990d3d7 | ||
|
|
2b796d5c61 | ||
|
|
a17bb59097 | ||
|
|
e9e0f50ab6 | ||
|
|
5d490d742a | ||
|
|
1e2f16ed69 | ||
|
|
5e3bb7e33e | ||
|
|
a4f5a74d5b | ||
|
|
4a83c9181f | ||
|
|
b57d35b744 | ||
|
|
a5bc7f107d | ||
|
|
f40433d28f | ||
|
|
b2be16746c | ||
|
|
e8e62ccadb | ||
|
|
bda2e4a167 | ||
|
|
bd7bc9aa79 | ||
|
|
ba2c42e34b | ||
|
|
07227d4650 | ||
|
|
b409ceb3a0 | ||
|
|
3b11187200 | ||
|
|
3d7c173eb2 | ||
|
|
033b946856 | ||
|
|
938c72cec0 | ||
|
|
5d1e18306a | ||
|
|
7417432a54 | ||
|
|
c838b1d1f9 | ||
|
|
0dc84520e7 | ||
|
|
1710615fd8 | ||
|
|
b59d535176 | ||
|
|
05fa5601dd | ||
|
|
3ccd9be080 | ||
|
|
4895b56089 | ||
|
|
0973795996 | ||
|
|
9fa032b365 | ||
|
|
36332331e4 | ||
|
|
1cdcaeb1b9 | ||
|
|
d3de8abc25 | ||
|
|
a4dd90c01d | ||
|
|
56e5122a6a | ||
|
|
f2e05555f3 | ||
|
|
e925336daf | ||
|
|
18e28ab761 | ||
|
|
25adbe33a6 | ||
|
|
0677eb5075 | ||
|
|
ca757b703e | ||
|
|
41d691334a | ||
|
|
f5e427ad52 | ||
|
|
bde5c10092 | ||
|
|
d1f92acaea | ||
|
|
b6d2e0d222 | ||
|
|
a601002451 | ||
|
|
1c75997677 | ||
|
|
38d9dc1f36 | ||
|
|
fc91fca737 | ||
|
|
849708dc0d | ||
|
|
cf432522aa | ||
|
|
88da3649b2 | ||
|
|
83ccfb820c | ||
|
|
d24ae6b27a | ||
|
|
b3bfa1ef3b | ||
|
|
17fa35c78d | ||
|
|
e780d59352 | ||
|
|
3ea346e1bb | ||
|
|
6e649af9a7 | ||
|
|
162623e49b | ||
|
|
aa066ab6fa | ||
|
|
e1719f2b7b | ||
|
|
02b6248510 | ||
|
|
3d4f7b3ce0 | ||
|
|
d0f7bd18ba | ||
|
|
e626b43e27 | ||
|
|
217d052bf7 | ||
|
|
9787388f77 | ||
|
|
b6ccf078ef | ||
|
|
5c4529259f | ||
|
|
5eb2819744 | ||
|
|
1268b5135d | ||
|
|
388147f822 | ||
|
|
f1d05fc7f8 | ||
|
|
b172f622b9 | ||
|
|
85ff3de157 | ||
|
|
3826d712ad | ||
|
|
bda2501455 | ||
|
|
3d12510e1f | ||
|
|
644bccfd92 | ||
|
|
dc1386c134 | ||
|
|
8b1e80d360 | ||
|
|
de35cbd010 | ||
|
|
9fd989e297 | ||
|
|
f5d31c5214 | ||
|
|
ecd28b2090 | ||
|
|
e53b6fa7fa | ||
|
|
e52a9fd961 | ||
|
|
dbc6c82446 | ||
|
|
59be28cc8a | ||
|
|
df58ee3829 | ||
|
|
245851116f | ||
|
|
23cf8368e8 | ||
|
|
f45523dd1a | ||
|
|
564939a4a8 | ||
|
|
9a53625fcc | ||
|
|
6d71db3d6d | ||
|
|
43697d2cfb | ||
|
|
e9fed506b3 | ||
|
|
8785acea7c | ||
|
|
0f2156191f | ||
|
|
72871cf930 | ||
|
|
790b0be964 | ||
|
|
0c41a7c1b4 | ||
|
|
3a940c93cc | ||
|
|
2b7007b653 | ||
|
|
140d941da2 | ||
|
|
c4b404dc2e | ||
|
|
cda42b9e7b | ||
|
|
f3960b2116 | ||
|
|
f9efb7b2fb | ||
|
|
77dd4990a4 | ||
|
|
d56a55a06b | ||
|
|
9705617f93 | ||
|
|
c81ff5801d | ||
|
|
4ed3cd9233 | ||
|
|
e38ea578f8 | ||
|
|
70faa6b15c | ||
|
|
d497c3d087 | ||
|
|
8ede021ec5 | ||
|
|
5dc0b70081 | ||
|
|
4bb8372340 | ||
|
|
2a9fb7b6e7 | ||
|
|
46fb49ecd0 | ||
|
|
1beec7ef87 | ||
|
|
39e27a804d | ||
|
|
e535066a85 | ||
|
|
c50e449cf5 | ||
|
|
057a56a827 | ||
|
|
c2f244ccfa | ||
|
|
440861270e | ||
|
|
ca3e8be1bc | ||
|
|
60e2d605c4 | ||
|
|
27a4355c6c | ||
|
|
7de302c43e | ||
|
|
c8fab3f40a | ||
|
|
2458743257 | ||
|
|
350fb82bed | ||
|
|
43493a94fe | ||
|
|
e1ab25c915 | ||
|
|
c70a41210e | ||
|
|
6d48d73421 | ||
|
|
e82ae6bacd | ||
|
|
854f8dbc6d | ||
|
|
a9e4eaf582 | ||
|
|
a4b5b85067 | ||
|
|
07f1d2d51c | ||
|
|
099f138dd5 | ||
|
|
b5d4fa9d27 | ||
|
|
1f2d6b8848 | ||
|
|
92b96635bd | ||
|
|
3aa7ec6a39 | ||
|
|
f4e53db8cf | ||
|
|
5c9999b7cf | ||
|
|
8b2de37414 | ||
|
|
d400d7fb15 | ||
|
|
b527f3b816 | ||
|
|
cab9872d6d | ||
|
|
18ef6ff96a | ||
|
|
94733b8bdf | ||
|
|
e09196261a | ||
|
|
c9958e12b8 | ||
|
|
b215f67b2e | ||
|
|
9290c1a75e | ||
|
|
94d6faffe3 | ||
|
|
fb18e7a039 | ||
|
|
c50a775e0c | ||
|
|
8db004ffa3 | ||
|
|
558ae9373d | ||
|
|
2bac0a8d99 | ||
|
|
6ba97321ff | ||
|
|
36fd9f13f2 | ||
|
|
249f1ed148 | ||
|
|
6bfef6c191 | ||
|
|
c54b0623b8 |
@@ -31,8 +31,10 @@ commands: # a reusable command with parameters
|
|||||||
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
|
# 'See docs on artifact collection here https://circleci.com/docs/2.0/artifacts/'
|
||||||
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
|
- run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS
|
||||||
# This is based on your 1.0 configuration file or project settings
|
# This is based on your 1.0 configuration file or project settings
|
||||||
|
#- run:
|
||||||
|
# command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
|
||||||
- run:
|
- run:
|
||||||
command: sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java; sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac; echo -e "export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64" >> $BASH_ENV
|
command: java -version
|
||||||
- run:
|
- run:
|
||||||
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
||||||
- run:
|
- run:
|
||||||
|
|||||||
47
.devcontainer/devcontainer.json
Normal file
47
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"name": "OpenAPIGenerator",
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/base:debian",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/java:1": {
|
||||||
|
"version": "11",
|
||||||
|
"installMaven": true
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/node:1": {
|
||||||
|
"version": "lts"
|
||||||
|
},
|
||||||
|
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {}
|
||||||
|
},
|
||||||
|
// Configure tool-specific properties.
|
||||||
|
"customizations": {
|
||||||
|
// Configure properties specific to VS Code.
|
||||||
|
"vscode": {
|
||||||
|
// Set *default* container specific settings.json values on container create.
|
||||||
|
"settings": {
|
||||||
|
"java.configuration.runtimes": [
|
||||||
|
{
|
||||||
|
"name": "JavaSE-11",
|
||||||
|
"path": "/usr/local/sdkman/candidates/java/11.0.16.1-ms",
|
||||||
|
"sources": "/usr/local/sdkman/candidates/java/11.0.16.1-ms/lib/src.zip",
|
||||||
|
"javadoc": "https://docs.oracle.com/en/java/javase/11/docs/api",
|
||||||
|
"default": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// Add the IDs of extensions you want installed when the container is created.
|
||||||
|
"extensions": [
|
||||||
|
"vscjava.vscode-java-pack",
|
||||||
|
"attilabuti.mustache-syntax-vscode",
|
||||||
|
"formulahendry.code-runner",
|
||||||
|
"visualstudioexptteam.vscodeintellicode",
|
||||||
|
"42crunch.vscode-openapi",
|
||||||
|
"mermade.openapi-lint"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
// "forwardPorts": [],
|
||||||
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
|
// "postCreateCommand": "mvn clean package -DskipTests",
|
||||||
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
||||||
|
"remoteUser": "vscode"
|
||||||
|
}
|
||||||
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -18,7 +18,7 @@
|
|||||||
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
|
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
|
||||||
- [ ] In case you are adding a new generator, run the following additional script :
|
- [ ] In case you are adding a new generator, run the following additional script :
|
||||||
```
|
```
|
||||||
./bin/utils/ensure-up-to-date.sh
|
./bin/utils/ensure-up-to-date
|
||||||
```
|
```
|
||||||
Commit all changed files.
|
Commit all changed files.
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
||||||
|
|||||||
4
.github/actions/run-samples/action.yaml
vendored
4
.github/actions/run-samples/action.yaml
vendored
@@ -15,5 +15,5 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: mvn --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
- run: mvn clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
97
.github/workflows/check-supported-versions.yaml
vendored
97
.github/workflows/check-supported-versions.yaml
vendored
@@ -1,97 +0,0 @@
|
|||||||
name: Check Supported Java Versions
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: 'Build: JDK ${{ matrix.java }} (${{ matrix.os }})'
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java: [8, 11]
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
include:
|
|
||||||
- java: 8
|
|
||||||
os: windows-latest
|
|
||||||
- java: 17
|
|
||||||
os: ubuntu-latest
|
|
||||||
# Need to update to Gradle version with v17 support in modules/openapi-generator-gradle-plugin/pom.xml
|
|
||||||
flags: -am -pl modules/openapi-generator-cli -Dmaven.javadoc.skip=true -Dmaven.test.skip=true
|
|
||||||
steps:
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ~/.m2/repository
|
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-maven-
|
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
|
|
||||||
- name: Build with Maven
|
|
||||||
shell: bash
|
|
||||||
run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }}
|
|
||||||
|
|
||||||
- name: Upload Maven build artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
if: matrix.java == '8' && matrix.os == 'ubuntu-latest'
|
|
||||||
with:
|
|
||||||
name: artifact
|
|
||||||
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
|
||||||
|
|
||||||
- name: Test Gradle plugin usage
|
|
||||||
shell: bash
|
|
||||||
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
|
||||||
|
|
||||||
- name: Test Maven plugin integration
|
|
||||||
if: matrix.java == '8'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cd modules/openapi-generator-maven-plugin
|
|
||||||
mvn verify -Pintegration
|
|
||||||
|
|
||||||
verify:
|
|
||||||
name: Verify outputs on ${{ matrix.os }}
|
|
||||||
needs: build
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
# include:
|
|
||||||
# - os: windows-latest
|
|
||||||
# flags: --skip-docs
|
|
||||||
steps:
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Download build artifact
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: artifact
|
|
||||||
- name: Run Ensures Script
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
git config --global core.fileMode false
|
|
||||||
git config --global core.safecrlf false
|
|
||||||
git config --global core.autocrlf true
|
|
||||||
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
|
||||||
# test with java (jersey2) client generation only as ensure-up-to-date script is run in another job instead
|
|
||||||
./bin/generate-samples.sh ./bin/configs/java-jersey2-8.yaml
|
|
||||||
# test debugSupportingFiles
|
|
||||||
./bin/generate-samples.sh ./bin/configs/python.yaml -- --global-property debugSupportingFiles
|
|
||||||
37
.github/workflows/docker.yaml
vendored
Normal file
37
.github/workflows/docker.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Docker tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- Dockerfile
|
||||||
|
- run-in-docker.sh
|
||||||
|
- pom.xml
|
||||||
|
- modules/openapi-generator-online/pom.xml
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- Dockerfile
|
||||||
|
- run-in-docker.sh
|
||||||
|
- pom.xml
|
||||||
|
- modules/openapi-generator-online/pom.xml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 'Build: Docker'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Test run-in-docker.sh
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sed -i 's/ -it / /g' run-in-docker.sh
|
||||||
|
./run-in-docker.sh mvn clean install
|
||||||
|
|
||||||
|
- name: Build Dockerfile
|
||||||
|
shell: bash
|
||||||
|
run: docker build .
|
||||||
|
|
||||||
|
- name: Build modules/openapi-generator-online
|
||||||
|
shell: bash
|
||||||
|
run: docker build modules/openapi-generator-online/
|
||||||
4
.github/workflows/gradle-plugin-tests.yaml
vendored
4
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -35,8 +35,10 @@ jobs:
|
|||||||
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-test-gradle-plugin-
|
${{ runner.os }}-test-gradle-plugin-
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
name: Java Helidon Functional tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- modules/openapi-generator/src/test/java/org/openapitools/codegen/java/helidon/**
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Java Helidon Functional tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
java-version: [11, 17]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java-version }}
|
|
||||||
distribution: 'temurin'
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
env:
|
|
||||||
cache-name: cache-maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle
|
|
||||||
!~/.gradle/caches/*/plugin-resolution/
|
|
||||||
!~/.m2/repository/org/openapitools/
|
|
||||||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
- name: Run unit tests
|
|
||||||
run: cd modules/openapi-generator && mvn --no-snapshot-updates --batch-mode -Dtest="**/functional/*Test" test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
- name: Publish unit test reports
|
|
||||||
if: ${{ always() }}
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: surefire-test-results
|
|
||||||
path: '**/surefire-reports/TEST-*.xml'
|
|
||||||
108
.github/workflows/linux.yaml
vendored
Normal file
108
.github/workflows/linux.yaml
vendored
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
name: Linux tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: 'Build: JDK ${{ matrix.java }} (${{ matrix.os }})'
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [11, 17]
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.m2/repository
|
||||||
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle/caches
|
||||||
|
~/.gradle/wrapper
|
||||||
|
key: ${{ runner.os }}-gradle-${{ hashFiles('modules/openapi-generator-gradle-plugin/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
|
- name: Setup Maven
|
||||||
|
uses: s4u/setup-maven-action@v1.7.0
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
maven-version: 3.9.0
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
shell: bash
|
||||||
|
run: mvn clean -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress install --file pom.xml
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
|
||||||
|
- name: Upload Maven build artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
|
||||||
|
with:
|
||||||
|
name: artifact
|
||||||
|
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
||||||
|
|
||||||
|
- name: Test Gradle plugin usage
|
||||||
|
shell: bash
|
||||||
|
run: gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
||||||
|
|
||||||
|
- name: Test Maven plugin integration
|
||||||
|
if: matrix.java == '11'
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
run: |
|
||||||
|
cd modules/openapi-generator-maven-plugin
|
||||||
|
mvn clean verify -Pintegration
|
||||||
|
|
||||||
|
verify:
|
||||||
|
name: Verify outputs on ${{ matrix.os }}
|
||||||
|
needs: build
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Setup Maven
|
||||||
|
uses: s4u/setup-maven-action@v1.7.0
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
maven-version: 3.9.0
|
||||||
|
- name: Download build artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifact
|
||||||
|
- name: Run Ensures Script
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git config --global core.fileMode false
|
||||||
|
git config --global core.safecrlf false
|
||||||
|
git config --global core.autocrlf true
|
||||||
|
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
||||||
|
# test with java (jersey2) client generation only as ensure-up-to-date script is run in another job instead
|
||||||
|
./bin/generate-samples.sh ./bin/configs/java-jersey2-8.yaml
|
||||||
|
# test debugSupportingFiles
|
||||||
|
./bin/generate-samples.sh ./bin/configs/go-petstore.yaml -- --global-property debugSupportingFiles
|
||||||
2
.github/workflows/maven-plugin-tests.yaml
vendored
2
.github/workflows/maven-plugin-tests.yaml
vendored
@@ -34,6 +34,8 @@ jobs:
|
|||||||
${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}-
|
${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-test-maven-plugin-
|
${{ runner.os }}-test-maven-plugin-
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|||||||
24
.github/workflows/openapi-generator.yaml
vendored
24
.github/workflows/openapi-generator.yaml
vendored
@@ -16,10 +16,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -36,7 +36,9 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Run maven
|
- name: Run maven
|
||||||
run: mvn --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- run: ls -la modules/openapi-generator-cli/target
|
- run: ls -la modules/openapi-generator-cli/target
|
||||||
- name: Upload openapi-generator-cli.jar artifact
|
- name: Upload openapi-generator-cli.jar artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -52,10 +54,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@@ -72,7 +74,9 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: mvn --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: mvn clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- name: Publish unit test reports
|
- name: Publish unit test reports
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -87,10 +91,10 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Download openapi-generator-cli.jar artifact
|
- name: Download openapi-generator-cli.jar artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
@@ -126,10 +130,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Download openapi-generator-cli.jar artifact
|
- name: Download openapi-generator-cli.jar artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|||||||
6
.github/workflows/samples-cpp-qt-client.yaml
vendored
6
.github/workflows/samples-cpp-qt-client.yaml
vendored
@@ -23,12 +23,16 @@ jobs:
|
|||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
|
include:
|
||||||
|
- os: windows-latest
|
||||||
|
tools: 'tools_openssl_x64'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: jurplel/install-qt-action@v3
|
- uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt-version }}
|
version: ${{ matrix.qt-version }}
|
||||||
|
tools: ${{ matrix.tools }}
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: "samples/client/petstore/cpp-qt"
|
working-directory: "samples/client/petstore/cpp-qt"
|
||||||
run: ./build-and-test.bash
|
run: cmake . && cmake --build .
|
||||||
|
|||||||
2
.github/workflows/samples-dart.yaml
vendored
2
.github/workflows/samples-dart.yaml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-dotnet@v3.0.3
|
- uses: actions/setup-dotnet@v3.1.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
13
.github/workflows/samples-dotnet.yaml
vendored
13
.github/workflows/samples-dotnet.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Samples C# .Net 6
|
name: Samples C# .Net 7
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,12 +7,18 @@ on:
|
|||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useNewtonsoft/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
@@ -30,9 +36,12 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0
|
- samples/server/petstore/aspnetcore-6.0
|
||||||
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
||||||
- samples/server/petstore/aspnetcore-6.0-project4Models
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-dotnet@v3.0.3
|
- uses: actions/setup-dotnet@v3.1.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
75
.github/workflows/samples-dotnet6-client.yaml
vendored
Normal file
75
.github/workflows/samples-dotnet6-client.yaml
vendored
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
name: Samples C# .Net 6
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/**
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (.net 5.0)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/**
|
||||||
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/**
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (.net 5.0)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/**
|
||||||
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient/
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/
|
||||||
|
# build C# API client (.net 5.0)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/
|
||||||
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-dotnet@v3.1.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.0.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
42
.github/workflows/samples-dotnet6-server.yaml
vendored
Normal file
42
.github/workflows/samples-dotnet6-server.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Samples C# .Net 6
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useNewtonsoft/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
||||||
|
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net servers
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/aspnetcore-6.0
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-dotnet@v3.1.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.0.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet test Org.OpenAPITools.sln
|
||||||
35
.github/workflows/samples-elm.yaml
vendored
Normal file
35
.github/workflows/samples-elm.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: Samples Elm
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/elm/**
|
||||||
|
- samples/openapi3/client/elm/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/elm/**
|
||||||
|
- samples/openapi3/client/elm/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Elm clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/elm
|
||||||
|
- samples/openapi3/client/elm
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: jorelali/setup-elm@v5
|
||||||
|
with:
|
||||||
|
elm-version: 0.19.1
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
# Try to compile all .elm files
|
||||||
|
# This fails if:
|
||||||
|
# An .elm file couldn't be compiled
|
||||||
|
# No .elm files were found
|
||||||
|
# No elm.json file could be found in the root of the working directory
|
||||||
|
run: elm make $(find . -name *.elm) --output=/dev/null
|
||||||
35
.github/workflows/samples-erlang.yaml
vendored
Normal file
35
.github/workflows/samples-erlang.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: Samples Erlang
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# comment out due to errors
|
||||||
|
# ===> Compiling src/openapi_pet_handler.erl failed
|
||||||
|
# src/openapi_pet_handler.erl:278: function is_authorized/2 already defined
|
||||||
|
#- samples/server/petstore/erlang-server/**
|
||||||
|
- samples/client/petstore/erlang-client/**
|
||||||
|
- samples/client/petstore/erlang-proper/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
#- samples/server/petstore/erlang-server/**
|
||||||
|
- samples/client/petstore/erlang-client/**
|
||||||
|
- samples/client/petstore/erlang-proper/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Erlang projects
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
#- samples/server/petstore/erlang-server/
|
||||||
|
- samples/client/petstore/erlang-client/
|
||||||
|
- samples/client/petstore/erlang-proper/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: erlef/setup-beam@v1
|
||||||
|
with:
|
||||||
|
otp-version: '22.2'
|
||||||
|
rebar3-version: '3.14.3'
|
||||||
|
- run: rebar3 compile
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
16
.github/workflows/samples-go.yaml
vendored
16
.github/workflows/samples-go.yaml
vendored
@@ -5,10 +5,12 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -20,17 +22,13 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/server/petstore/go-echo-server/
|
- samples/server/petstore/go-echo-server/
|
||||||
- samples/server/petstore/go-api-server/
|
- samples/server/petstore/go-api-server/
|
||||||
|
- samples/server/petstore/go-chi-server/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.17.0'
|
go-version: "stable"
|
||||||
- run: go version
|
- run: go version
|
||||||
- name: Install
|
- name: Run test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: go test -mod=mod -v
|
||||||
go get github.com/labstack/echo/v4/middleware@v4.9.0
|
|
||||||
go get github.com/labstack/echo/v4@v4.9.0
|
|
||||||
- name: Build
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: go test -v
|
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.m2
|
~/.m2
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build with Maven
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package
|
run: mvn clean package
|
||||||
|
- name: Build with Gradle
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: gradle clean build
|
||||||
|
|||||||
41
.github/workflows/samples-java-helidon.yaml
vendored
Normal file
41
.github/workflows/samples-java-helidon.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Samples Java Helidon
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java-helidon-client/**
|
||||||
|
- samples/server/petstore/java-helidon-server/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java-helidon-client/**
|
||||||
|
- samples/server/petstore/java-helidon-server/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Helidon
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/java-helidon-client/mp
|
||||||
|
- samples/client/petstore/java-helidon-client/se
|
||||||
|
- samples/server/petstore/java-helidon-server/mp
|
||||||
|
- samples/server/petstore/java-helidon-server/se
|
||||||
|
version: [17]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ matrix.version }}
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
||||||
1
.github/workflows/samples-jaxrs.yaml
vendored
1
.github/workflows/samples-jaxrs.yaml
vendored
@@ -38,6 +38,7 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-cxf-annotated-base-path
|
- samples/server/petstore/jaxrs-cxf-annotated-base-path
|
||||||
- samples/server/petstore/jaxrs-cxf-cdi
|
- samples/server/petstore/jaxrs-cxf-cdi
|
||||||
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
||||||
|
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
3
.github/workflows/samples-kotlin-client.yaml
vendored
3
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -56,6 +56,9 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
||||||
|
- samples/client/petstore/kotlin-jvm-spring-2-webclient
|
||||||
|
- samples/client/petstore/kotlin-jvm-spring-3-webclient
|
||||||
|
- samples/client/petstore/kotlin-spring-cloud
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ name: Python Client (Echo API)
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/python-nextgen/**
|
- samples/client/echo_api/python/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/python-nextgen/**
|
- samples/client/echo_api/python/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Test Python client
|
name: Test Python client
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/python-nextgen
|
- samples/client/echo_api/python
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
|||||||
27
.github/workflows/samples-python-server.yaml
vendored
Normal file
27
.github/workflows/samples-python-server.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Python Server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/python-aiohttp/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/python-aiohttp/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/python-aiohttp/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.7'
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: make test-all
|
||||||
10
.github/workflows/samples-spring.yaml
vendored
10
.github/workflows/samples-spring.yaml
vendored
@@ -22,26 +22,30 @@ jobs:
|
|||||||
- samples/openapi3/client/petstore/spring-cloud
|
- samples/openapi3/client/petstore/spring-cloud
|
||||||
- samples/client/petstore/spring-cloud-date-time
|
- samples/client/petstore/spring-cloud-date-time
|
||||||
- samples/openapi3/client/petstore/spring-cloud-date-time
|
- samples/openapi3/client/petstore/spring-cloud-date-time
|
||||||
- samples/client/petstore/spring-stubs
|
|
||||||
- samples/openapi3/client/petstore/spring-stubs
|
- samples/openapi3/client/petstore/spring-stubs
|
||||||
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-async
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
- samples/openapi3/server/petstore/springboot
|
- samples/openapi3/server/petstore/springboot
|
||||||
- samples/server/petstore/springboot-beanvalidation
|
- samples/server/petstore/springboot-beanvalidation
|
||||||
- samples/server/petstore/springboot-useoptional
|
- samples/server/petstore/springboot-useoptional
|
||||||
- samples/openapi3/server/petstore/springboot-useoptional
|
|
||||||
- samples/server/petstore/springboot-reactive
|
- samples/server/petstore/springboot-reactive
|
||||||
- samples/openapi3/server/petstore/springboot-reactive
|
|
||||||
- samples/server/petstore/springboot-implicitHeaders
|
- samples/server/petstore/springboot-implicitHeaders
|
||||||
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
||||||
- samples/server/petstore/springboot-delegate
|
- samples/server/petstore/springboot-delegate
|
||||||
|
- samples/server/petstore/springboot-delegate-no-response-entity
|
||||||
- samples/openapi3/server/petstore/springboot-delegate
|
- samples/openapi3/server/petstore/springboot-delegate
|
||||||
- samples/server/petstore/spring-boot-nullable-set
|
- samples/server/petstore/spring-boot-nullable-set
|
||||||
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
- samples/openapi3/server/petstore/spring-boot-oneof
|
- samples/openapi3/server/petstore/spring-boot-oneof
|
||||||
- samples/server/petstore/springboot-virtualan
|
- samples/server/petstore/springboot-virtualan
|
||||||
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
|
- samples/server/petstore/springboot-implicitHeaders-annotationLibrary
|
||||||
|
- samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8
|
||||||
|
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
||||||
|
- samples/server/petstore/springboot-spring-pageable-without-j8
|
||||||
|
- samples/server/petstore/springboot-spring-pageable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
54
.github/workflows/windows.yaml
vendored
Normal file
54
.github/workflows/windows.yaml
vendored
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
name: Windows tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [11, 17]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2/repository
|
||||||
|
~/.gradle
|
||||||
|
!~/.gradle/caches/*/plugin-resolution/
|
||||||
|
!~/.m2/repository/org/openapitools/
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-build-
|
||||||
|
- name: Setup Maven
|
||||||
|
uses: s4u/setup-maven-action@v1.7.0
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
maven-version: 3.9.0
|
||||||
|
- name: Run maven
|
||||||
|
run: mvn clean --no-snapshot-updates --batch-mode --quiet install
|
||||||
|
env:
|
||||||
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
- name: Gradle tests
|
||||||
|
run: |
|
||||||
|
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -35,6 +35,8 @@ packages/
|
|||||||
nbproject/
|
nbproject/
|
||||||
nbactions.xml
|
nbactions.xml
|
||||||
nb-configuration.xml
|
nb-configuration.xml
|
||||||
|
.direnv/
|
||||||
|
**/:w
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
|
|||||||
13
.mvn/extensions.xml
Normal file
13
.mvn/extensions.xml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<extensions>
|
||||||
|
<extension>
|
||||||
|
<groupId>com.gradle</groupId>
|
||||||
|
<artifactId>gradle-enterprise-maven-extension</artifactId>
|
||||||
|
<version>1.17</version>
|
||||||
|
</extension>
|
||||||
|
<extension>
|
||||||
|
<groupId>com.gradle</groupId>
|
||||||
|
<artifactId>common-custom-user-data-maven-extension</artifactId>
|
||||||
|
<version>1.11.1</version>
|
||||||
|
</extension>
|
||||||
|
</extensions>
|
||||||
52
.mvn/gradle-enterprise.xml
Normal file
52
.mvn/gradle-enterprise.xml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||||
|
|
||||||
|
<!-- Common gradle-enterprise.xml configuration for Maven shared between CI agents and developers building locally.
|
||||||
|
|
||||||
|
The build cache credentials required for CI builds to write to the remote build cache are read from environment variables.
|
||||||
|
Possibly, the credentials are configured in Jenkins via Credentials plugin (https://plugins.jenkins.io/credentials/) and
|
||||||
|
Credentials Binding plugin (https://plugins.jenkins.io/credentials-binding/), or the credentials are injected using the
|
||||||
|
vendor-specific mechanism of the CI server running the build.
|
||||||
|
|
||||||
|
Note: In the XML configuration below, you need to adjust
|
||||||
|
|
||||||
|
- the server url of your Gradle Enterprise server
|
||||||
|
- the name of the environment variable that reveals the build is running in a CI environment
|
||||||
|
- the names of the environment variables holding the build cache credentials
|
||||||
|
|
||||||
|
to the specifics of your CI server settings. -->
|
||||||
|
|
||||||
|
<gradleEnterprise
|
||||||
|
xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
|
||||||
|
<server>
|
||||||
|
<url>https://ge.openapi-generator.tech/</url> <!-- adjust to your GE server -->
|
||||||
|
<allowUntrusted>false</allowUntrusted> <!-- ensure a trusted certificate is configured -->
|
||||||
|
</server>
|
||||||
|
<buildScan>
|
||||||
|
<captureGoalInputFiles>true</captureGoalInputFiles>
|
||||||
|
<backgroundBuildScanUpload>#{isFalse(env['CI'])}</backgroundBuildScanUpload> <!-- adjust to your CI provider -->
|
||||||
|
<publish>ALWAYS</publish>
|
||||||
|
<publishIfAuthenticated>true</publishIfAuthenticated>
|
||||||
|
<obfuscation>
|
||||||
|
<!-- Use a redacted value.-->
|
||||||
|
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
|
||||||
|
</obfuscation>
|
||||||
|
</buildScan>
|
||||||
|
<buildCache>
|
||||||
|
<local>
|
||||||
|
<enabled>false</enabled>
|
||||||
|
</local>
|
||||||
|
<remote>
|
||||||
|
<server>
|
||||||
|
<url>https://ge.openapi-generator.tech/cache/exp3/</url> <!-- adjust to your GE hostname, and note the trailing slash -->
|
||||||
|
<allowUntrusted>true</allowUntrusted> <!-- set to false if a trusted certificate is configured for the GE server -->
|
||||||
|
<credentials>
|
||||||
|
<username>${env.GRADLE_ENTERPRISE_CACHE_USERNAME}</username>
|
||||||
|
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password>
|
||||||
|
</credentials>
|
||||||
|
</server>
|
||||||
|
<enabled>true</enabled> <!-- must be true for this experiment -->
|
||||||
|
<storeEnabled>#{env['CI'] != null}</storeEnabled> <!-- adjust to an env var that is always present only in your CI environment -->
|
||||||
|
</remote>
|
||||||
|
</buildCache>
|
||||||
|
</gradleEnterprise>
|
||||||
30
.travis.yml
30
.travis.yml
@@ -1,7 +1,7 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: java
|
language: java
|
||||||
jdk:
|
jdk:
|
||||||
- openjdk8
|
- openjdk11
|
||||||
|
|
||||||
# See https://docs.travis-ci.com/user/languages/java/#caching
|
# See https://docs.travis-ci.com/user/languages/java/#caching
|
||||||
before_cache:
|
before_cache:
|
||||||
@@ -121,9 +121,6 @@ before_install:
|
|||||||
- cat /etc/hosts
|
- cat /etc/hosts
|
||||||
# show java version
|
# show java version
|
||||||
- java -version
|
- java -version
|
||||||
- export TRAVIS_TAG=v6.4.0
|
|
||||||
- export TRAVIS_BRANCH=master
|
|
||||||
- export TRAVIS_PULL_REQUEST=false
|
|
||||||
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
openssl aes-256-cbc -K $encrypted_6e2c8bba47c6_key -iv $encrypted_6e2c8bba47c6_iv -in sec.gpg.enc -out sec.gpg -d ;
|
openssl aes-256-cbc -K $encrypted_6e2c8bba47c6_key -iv $encrypted_6e2c8bba47c6_iv -in sec.gpg.enc -out sec.gpg -d ;
|
||||||
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
gpg --keyserver keyserver.ubuntu.com --recv-key $SIGNING_KEY ;
|
||||||
@@ -153,14 +150,31 @@ script:
|
|||||||
- docker buildx version
|
- docker buildx version
|
||||||
# run integration tests defined in maven pom.xml
|
# run integration tests defined in maven pom.xml
|
||||||
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
|
||||||
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
# show "error" only to reduce the log size
|
||||||
|
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -DskipTests -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error 2>&1 | grep -i error
|
||||||
#- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
#- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
after_success:
|
after_success:
|
||||||
- export TRAVIS_TAG=v6.4.0
|
|
||||||
- export TRAVIS_BRANCH=master
|
|
||||||
- export TRAVIS_PULL_REQUEST=false
|
|
||||||
# push to maven repo
|
# push to maven repo
|
||||||
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
|
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
||||||
|
echo "Publishing from branch $TRAVIS_BRANCH";
|
||||||
|
mvn clean deploy --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
||||||
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
|
pushd .;
|
||||||
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
|
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository;
|
||||||
|
echo "Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository";
|
||||||
|
popd;
|
||||||
|
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
||||||
|
echo "Publishing from branch $TRAVIS_BRANCH";
|
||||||
|
mvn clean deploy --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
||||||
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
|
pushd .;
|
||||||
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
|
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository;
|
||||||
|
echo "Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository";
|
||||||
|
popd;
|
||||||
|
fi;
|
||||||
if [ -n $TRAVIS_TAG ] && [[ "$TRAVIS_TAG" =~ ^[v][0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
if [ -n $TRAVIS_TAG ] && [[ "$TRAVIS_TAG" =~ ^[v][0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
echo "Publishing the gradle plugin to Gradle Portal on tag $TRAVIS_TAG (only)";
|
echo "Publishing the gradle plugin to Gradle Portal on tag $TRAVIS_TAG (only)";
|
||||||
pushd .;
|
pushd .;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
#sudo make altinstall
|
#sudo make altinstall
|
||||||
pyenv install --list
|
pyenv install --list
|
||||||
pyenv install 3.7.12
|
pyenv install 3.7.12
|
||||||
pyenv install 2.7.14
|
#pyenv install 2.7.14 #python2 no longer supported
|
||||||
pyenv global 3.7.12
|
pyenv global 3.7.12
|
||||||
|
|
||||||
# Install node@stable (for angular 6)
|
# Install node@stable (for angular 6)
|
||||||
@@ -78,9 +78,10 @@ elif [ "$NODE_INDEX" = "4" ]; then
|
|||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
||||||
|
|
||||||
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
(cd samples/openapi3/client/petstore/python && make test)
|
#(cd samples/openapi3/client/petstore/python && make test)
|
||||||
(cd samples/openapi3/client/petstore/python-prior && make test)
|
# comment out due to ModuleNotFoundError: No module named 'urllib3.request'
|
||||||
(cd samples/openapi3/client/3_0_3_unit_test/python && make test)
|
#(cd samples/openapi3/client/petstore/python-prior && make test)
|
||||||
|
#(cd samples/openapi3/client/3_0_3_unit_test/python && make test)
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ Code change should conform to the programming style guide of the respective lang
|
|||||||
- Scala: http://docs.scala-lang.org/style/
|
- Scala: http://docs.scala-lang.org/style/
|
||||||
- Swift: [Apple Developer](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html)
|
- Swift: [Apple Developer](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html)
|
||||||
- TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
|
- TypeScript: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
|
||||||
|
- Xojo: https://documentation.xojo.com/topics/code_management/coding_guidelines.html
|
||||||
|
|
||||||
For other languages, feel free to suggest.
|
For other languages, feel free to suggest.
|
||||||
|
|
||||||
|
|||||||
72
README.md
72
README.md
@@ -15,18 +15,12 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`6.4.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.0.0`):
|
||||||
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
||||||
|
|
||||||
[7.0.x](https://github.com/OpenAPITools/openapi-generator/tree/7.0.x) (`7.0.x`):
|
|
||||||
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -76,13 +70,13 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
## Overview
|
## Overview
|
||||||
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 13.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs) |
|
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 15.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo** |
|
||||||
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, Ktor, Vertx), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
||||||
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
||||||
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
||||||
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Protocol Buffer**, **WSDL** |
|
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Protocol Buffer**, **WSDL** |
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
@@ -120,9 +114,8 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
|
|||||||
|
|
||||||
| OpenAPI Generator Version | Release Date | Notes |
|
| OpenAPI Generator Version | Release Date | Notes |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
|
||||||
| 7.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.0.0-SNAPSHOT/) | Feb/Mar 2023 | Major release with breaking changes (no fallback) |
|
| 7.0.0 (upcoming major release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.0.0-SNAPSHOT/) | May/Jun 2023 | Major release with breaking changes (no fallback) |
|
||||||
| 6.4.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.4.0-SNAPSHOT/) | 05.12.2022 | Minor release with breaking changes (with fallback) |
|
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) (latest stable release) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
||||||
| [6.3.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.3.0) (latest stable release) | 01.02.2023 | Minor release with breaking changes (with fallback) |
|
|
||||||
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
||||||
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
||||||
|
|
||||||
@@ -182,16 +175,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
|
|||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
|
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 8 runtime at a minimum):
|
||||||
|
|
||||||
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar -O openapi-generator-cli.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
|
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
|
||||||
```
|
```
|
||||||
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
||||||
@@ -263,6 +256,20 @@ If you don't have maven installed, you may directly use the included [maven wrap
|
|||||||
./mvnw clean install
|
./mvnw clean install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Nix users
|
||||||
|
|
||||||
|
If you're a nix user, you can enter OpenAPI Generator shell, by typing:
|
||||||
|
```sh
|
||||||
|
nix develop
|
||||||
|
```
|
||||||
|
It will enter a shell with Java 8 and Maven installed.
|
||||||
|
|
||||||
|
Direnv supports automatically loading of the nix developer shell, so if you're using direnv too, type:
|
||||||
|
```sh
|
||||||
|
direnv allow
|
||||||
|
```
|
||||||
|
and have `java` and `mvn` set up with correct versions each time you enter project directory.
|
||||||
|
|
||||||
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
@@ -416,7 +423,7 @@ openapi-generator-cli version
|
|||||||
To use a specific version of "openapi-generator-cli"
|
To use a specific version of "openapi-generator-cli"
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
openapi-generator-cli version-manager set 6.3.0
|
openapi-generator-cli version-manager set 6.6.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -440,7 +447,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
|
|||||||
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
||||||
|
|
||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar)
|
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar)
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
|
|
||||||
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
||||||
@@ -588,8 +595,9 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Angular.Schule](https://angular.schule/)
|
- [Angular.Schule](https://angular.schule/)
|
||||||
- [Aqovia](https://aqovia.com/)
|
- [Aqovia](https://aqovia.com/)
|
||||||
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
|
- [Australia and New Zealand Banking Group (ANZ)](http://www.anz.com/)
|
||||||
- [ASKUL](https://www.askul.co.jp)
|
|
||||||
- [Arduino](https://www.arduino.cc/)
|
- [Arduino](https://www.arduino.cc/)
|
||||||
|
- [ASKUL](https://www.askul.co.jp)
|
||||||
|
- [Amazon Web Services (AWS)](https://aws.amazon.com/)
|
||||||
- [b<>com](https://b-com.com/en)
|
- [b<>com](https://b-com.com/en)
|
||||||
- [百度营销](https://e.baidu.com)
|
- [百度营销](https://e.baidu.com)
|
||||||
- [Bandwidth](https://dev.bandwidth.com)
|
- [Bandwidth](https://dev.bandwidth.com)
|
||||||
@@ -613,6 +621,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [DB Systel](https://www.dbsystel.de)
|
- [DB Systel](https://www.dbsystel.de)
|
||||||
- [Deeporute.ai](https://www.deeproute.ai/)
|
- [Deeporute.ai](https://www.deeproute.ai/)
|
||||||
- [Devsupply](https://www.devsupply.com/)
|
- [Devsupply](https://www.devsupply.com/)
|
||||||
|
- [dmTECH GmbH](https://www.dmTECH.de)
|
||||||
- [DocSpring](https://docspring.com/)
|
- [DocSpring](https://docspring.com/)
|
||||||
- [dwango](https://dwango.co.jp/)
|
- [dwango](https://dwango.co.jp/)
|
||||||
- [Edge Impulse](https://www.edgeimpulse.com/)
|
- [Edge Impulse](https://www.edgeimpulse.com/)
|
||||||
@@ -664,6 +673,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Paxos](https://www.paxos.com)
|
- [Paxos](https://www.paxos.com)
|
||||||
- [Plaid](https://plaid.com)
|
- [Plaid](https://plaid.com)
|
||||||
- [PLAID, Inc.](https://plaid.co.jp/)
|
- [PLAID, Inc.](https://plaid.co.jp/)
|
||||||
|
- [Pinterest](https://www.pinterest.com)
|
||||||
- [Ponicode](https://ponicode.dev/)
|
- [Ponicode](https://ponicode.dev/)
|
||||||
- [Pricefx](https://www.pricefx.com/)
|
- [Pricefx](https://www.pricefx.com/)
|
||||||
- [PrintNanny](https://www.print-nanny.com/)
|
- [PrintNanny](https://www.print-nanny.com/)
|
||||||
@@ -877,6 +887,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
- 2022-04-06 - [Effective Software Development using OpenAPI Generator](https://apexlabs.ai/post/openapi-generator) by Ajil Oommen (Senior Flutter Developer)
|
||||||
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
- 2022-05-13 - [A Path From an API To Client Libraries](https://www.youtube.com/watch?v=XC8oVn_efTw) by [Filip Srnec](https://www.devoxx.co.uk/talk/?id=11211) at Infobip
|
||||||
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
- 2022-06-01 - [API First, using OpenAPI and Spring Boot](https://medium.com/xgeeks/api-first-using-openapi-and-spring-boot-2602c04bb0d3) by [Micael Estrázulas Vianna](https://estrazulas.medium.com/)
|
||||||
|
- 2022-06-12 - [Mustache templates with OpenAPI specs](https://medium.com/geekculture/mustache-templates-with-openapi-specs-f24711c67dec) by [Beppe Catanese](https://github.com/gcatanese)
|
||||||
- 2022-07-01 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
- 2022-07-01 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
||||||
- 2022-07-22 - [使用OpenAPI Generator Maven plugin开发api优先的java客户端和服务端代码](https://blog.roccoshi.top/2022/java/openapi-generator%E7%9A%84%E4%BD%BF%E7%94%A8/) by [Lincest](https://github.com/Lincest)
|
- 2022-07-22 - [使用OpenAPI Generator Maven plugin开发api优先的java客户端和服务端代码](https://blog.roccoshi.top/2022/java/openapi-generator%E7%9A%84%E4%BD%BF%E7%94%A8/) by [Lincest](https://github.com/Lincest)
|
||||||
- 2022-08-01 - [Tutorial: Etsy Open API v3 (ruby)](https://blog.tjoyal.dev/etsy-open-api-v3/) by [Thierry Joyal](https://github.com/tjoyal)
|
- 2022-08-01 - [Tutorial: Etsy Open API v3 (ruby)](https://blog.tjoyal.dev/etsy-open-api-v3/) by [Thierry Joyal](https://github.com/tjoyal)
|
||||||
@@ -888,6 +899,10 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2022-12-13 - [API-First with Spring WebFlux and OpenAPI Generator](https://boottechnologies-ci.medium.com/api-first-with-spring-webflux-and-openapi-generator-38b7804c4ed4) by [Eric Anicet](https://boottechnologies-ci.medium.com/)
|
- 2022-12-13 - [API-First with Spring WebFlux and OpenAPI Generator](https://boottechnologies-ci.medium.com/api-first-with-spring-webflux-and-openapi-generator-38b7804c4ed4) by [Eric Anicet](https://boottechnologies-ci.medium.com/)
|
||||||
- 2023-01-06 - [Major Improvements with Helidon and OpenAPI](https://medium.com/helidon/major-improvements-with-helidon-and-openapi-f76a0951508e) by [Tim Quinn](https://medium.com/@tquinno600)
|
- 2023-01-06 - [Major Improvements with Helidon and OpenAPI](https://medium.com/helidon/major-improvements-with-helidon-and-openapi-f76a0951508e) by [Tim Quinn](https://medium.com/@tquinno600)
|
||||||
- 2023-02-02 - [Replacing Postman with the Jetbrains HTTP Client](https://lengrand.fr/replacing-postman-in-seconds-with-the-jetbrains-http-client/) by [julien Lengrand-Lambert](https://github.com/jlengrand)
|
- 2023-02-02 - [Replacing Postman with the Jetbrains HTTP Client](https://lengrand.fr/replacing-postman-in-seconds-with-the-jetbrains-http-client/) by [julien Lengrand-Lambert](https://github.com/jlengrand)
|
||||||
|
- 2023-03-15 - [OpenAPI Generatorに適したOpenAPIの書き方](https://techblog.zozo.com/entry/how-to-write-openapi-for-openapi-generator) by [ZOZO Tech Blog](https://techblog.zozo.com/)
|
||||||
|
- 2023-03-19 - [EXOGEM: Extending OpenAPI Generator for Monitoring of RESTful APIs](https://link.springer.com/chapter/10.1007/978-3-031-26507-5_10) by Daniel Friis Holtebo, Jannik Lucas Sommer, Magnus Mølgaard Lund, Alessandro Tibo, Junior Dongo & Michele Albano at "ICSOC 2022: Service-Oriented Computing – ICSOC 2022 Workshops"
|
||||||
|
- 2023-03-28 - [API-First Design with OpenAPI Generator](https://www.linkedin.com/pulse/api-first-design-openapi-generator-jonathan-manera/) by [Jonathan Manera](https://www.linkedin.com/in/manerajona/)
|
||||||
|
- 2023-03-28 - [ハンズオンで学ぶサーバーサイド Kotlin(Spring Boot&Arrow&OpenAPI Generator)v1.0.1](https://zenn.dev/msksgm/books/implementing-server-side-kotlin-development) by [msk](https://zenn.dev/msksgm)
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@@ -969,7 +984,9 @@ Here is a list of template creators:
|
|||||||
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Kotlin (MultiPlatform): @andrewemery
|
* Kotlin (MultiPlatform): @andrewemery
|
||||||
* Kotlin (Volley): @alisters
|
* Kotlin (Volley): @alisters
|
||||||
|
* Kotlin (jvm-spring-webclient): @stefankoppier
|
||||||
* Lua: @daurnimator
|
* Lua: @daurnimator
|
||||||
|
* N4JS: @mmews-n4
|
||||||
* Nim: @hokamoto
|
* Nim: @hokamoto
|
||||||
* OCaml: @cgensoul
|
* OCaml: @cgensoul
|
||||||
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
* Perl: @wing328 [:heart:](https://www.patreon.com/wing328)
|
||||||
@@ -1002,6 +1019,7 @@ Here is a list of template creators:
|
|||||||
* TypeScript (Node): @mhardorf
|
* TypeScript (Node): @mhardorf
|
||||||
* TypeScript (Rxjs): @denyo
|
* TypeScript (Rxjs): @denyo
|
||||||
* TypeScript (redux-query): @petejohansonxo
|
* TypeScript (redux-query): @petejohansonxo
|
||||||
|
* Xojo: @Topheee
|
||||||
* Server Stubs
|
* Server Stubs
|
||||||
* Ada: @stcarrez
|
* Ada: @stcarrez
|
||||||
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
@@ -1015,6 +1033,7 @@ Here is a list of template creators:
|
|||||||
* Erlang Server: @galaxie
|
* Erlang Server: @galaxie
|
||||||
* F# (Giraffe) Server: @nmfisher
|
* F# (Giraffe) Server: @nmfisher
|
||||||
* Go Server: @guohuang
|
* Go Server: @guohuang
|
||||||
|
* Go Server (refactored in 7.0.0): @lwj5
|
||||||
* Go (Echo) Server: @ph4r5h4d
|
* Go (Echo) Server: @ph4r5h4d
|
||||||
* Go (Gin) Server: @kemokemo
|
* Go (Gin) Server: @kemokemo
|
||||||
* GraphQL Express Server: @renepardon
|
* GraphQL Express Server: @renepardon
|
||||||
@@ -1119,7 +1138,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Elm | @eriktim (2018/09) |
|
| Elm | @eriktim (2018/09) |
|
||||||
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
||||||
| F# | @nmfisher (2019/05) |
|
| F# | @nmfisher (2019/05) |
|
||||||
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) |
|
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) @lwj5 (2023/04) |
|
||||||
| GraphQL | @renepardon (2018/12) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
| Groovy | |
|
| Groovy | |
|
||||||
| Haskell | |
|
| Haskell | |
|
||||||
@@ -1130,6 +1149,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Julia | @tanmaykm (2023/01) |
|
| Julia | @tanmaykm (2023/01) |
|
||||||
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
|
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
|
| N4JS | @mmews-n4 (2023/03) |
|
||||||
| Nim | |
|
| Nim | |
|
||||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||||
| ObjC | |
|
| ObjC | |
|
||||||
@@ -1144,6 +1164,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) |
|
| Scala | @clasnake (2017/07), @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
||||||
|
| Xojo | @Topheee (2023/04) |
|
||||||
|
|
||||||
|
|
||||||
Past Members of Technical Committee:
|
Past Members of Technical Committee:
|
||||||
@@ -1229,3 +1250,4 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
81
appveyor.yml
81
appveyor.yml
@@ -3,64 +3,45 @@ image: Visual Studio 2022
|
|||||||
hosts:
|
hosts:
|
||||||
petstore.swagger.io: 127.0.0.1
|
petstore.swagger.io: 127.0.0.1
|
||||||
install:
|
install:
|
||||||
- ps: |
|
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
||||||
if (!(Test-Path -Path "C:\maven" )) {
|
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
|
||||||
'https://archive.apache.org/dist/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.zip',
|
|
||||||
'C:\maven-bin.zip'
|
|
||||||
)
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
|
|
||||||
}
|
|
||||||
# install gradle
|
|
||||||
- ps: |
|
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
||||||
if (!(Test-Path -Path "C:\gradle\gradle-7.6" )) {
|
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
|
||||||
'https://services.gradle.org/distributions/gradle-7.6-bin.zip',
|
|
||||||
'C:\gradle-bin.zip'
|
|
||||||
)
|
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\gradle-bin.zip", "C:\gradle")
|
|
||||||
}
|
|
||||||
- cmd: SET PATH=C:\maven\apache-maven-3.8.3\bin;C:\gradle\gradle-7.6\bin;%JAVA_HOME%\bin;%PATH%
|
- cmd: SET PATH=C:\maven\apache-maven-3.8.3\bin;C:\gradle\gradle-7.6\bin;%JAVA_HOME%\bin;%PATH%
|
||||||
- cmd: SET MAVEN_OPTS=-Xmx4g
|
- cmd: SET MAVEN_OPTS=-Xmx4g
|
||||||
- cmd: SET JAVA_OPTS=-Xmx4g
|
- cmd: SET JAVA_OPTS=-Xmx4g
|
||||||
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.3
|
- cmd: SET M2_HOME=C:\maven\apache-maven-3.8.3
|
||||||
- cmd: java -version
|
- cmd: java -version
|
||||||
- cmd: gradle -v
|
|
||||||
- cmd: dir/w
|
- cmd: dir/w
|
||||||
- git clone https://github.com/wing328/swagger-samples --depth 1
|
- cmd: docker pull swaggerapi/petstore
|
||||||
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.8.3\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs-ci"
|
- cmd: docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
||||||
- ps: Start-Sleep -s 15
|
- ps: Start-Sleep -s 120
|
||||||
- ps: $PSVersionTable.PSVersion
|
- ps: $PSVersionTable.PSVersion
|
||||||
- ps: Install-Module -Name Pester -Force -Scope CurrentUser
|
- ps: Install-Module -Name Pester -Force -Scope CurrentUser
|
||||||
build_script:
|
build_script:
|
||||||
- dotnet --info
|
- dotnet --info
|
||||||
# build C# aspnetcore 5.0 server
|
# build C# aspnetcore 5.0 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore-5.0\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore-5.0\Org.OpenAPITools.sln
|
||||||
# build C# aspnetcore 3.1 server
|
## build C# aspnetcore 3.1 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore-3.1\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore-3.1\Org.OpenAPITools.sln
|
||||||
# build C# aspnetcore 3.0 server
|
## build C# aspnetcore 3.0 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore-3.0\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore-3.0\Org.OpenAPITools.sln
|
||||||
# build C# aspnetcore 2.2 server
|
## build C# aspnetcore 2.2 server
|
||||||
- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
||||||
# build C# API client (multiple frameworks)
|
## build C# API client (multiple frameworks)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
||||||
# build C# API client (httpclient)
|
## build C# API client (httpclient)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
||||||
# build C# API client (generichost)
|
## build C# API client (generichost)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
||||||
# build C# API client (netcore)
|
## build C# API client (netcore)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCore\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCore\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net framework 4.7)
|
## build C# API client (.net framework 4.7)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net47\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net47\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net framework 4.8)
|
## build C# API client (.net framework 4.8)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net48\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net48\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net 5.0)
|
## build C# API client (.net 5.0)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net5.0\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net5.0\Org.OpenAPITools.sln
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
## build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
||||||
|
|
||||||
## build C# API client
|
## build C# API client
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
#- nuget restore samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
#- msbuild samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
#- msbuild samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
@@ -70,10 +51,6 @@ build_script:
|
|||||||
# build C# .net standard 1.3+ API client
|
# build C# .net standard 1.3+ API client
|
||||||
#- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
|
#- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
|
||||||
#- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
#- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
# install openapi-generator locally
|
|
||||||
- mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
# run the locally installed openapi-generator-gradle-plugin
|
|
||||||
- gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --stacktrace
|
|
||||||
test_script:
|
test_script:
|
||||||
# test c# API client (multiple frameworks)
|
# test c# API client (multiple frameworks)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
@@ -83,7 +60,7 @@ test_script:
|
|||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (netcore)
|
# test c# API client (netcore)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
#- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net framework 4.7)
|
# test C# API client (.net framework 4.7)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net framework 4.8)
|
# test C# API client (.net framework 4.8)
|
||||||
|
|||||||
9
bin/configs/aspnetcore-6.0-NewtonsoftFalse.yaml
Normal file
9
bin/configs/aspnetcore-6.0-NewtonsoftFalse.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: aspnetcore
|
||||||
|
outputDir: samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
|
aspnetCoreVersion: "6.0"
|
||||||
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
|
useNewtonsoft: false
|
||||||
9
bin/configs/aspnetcore-6.0-nullableReferenceTypes.yaml
Normal file
9
bin/configs/aspnetcore-6.0-nullableReferenceTypes.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: aspnetcore
|
||||||
|
outputDir: samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
|
aspnetCoreVersion: "6.0"
|
||||||
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
|
nullableReferenceTypes: true
|
||||||
11
bin/configs/aspnetcore-6.0-useSwashBuckle.yaml
Normal file
11
bin/configs/aspnetcore-6.0-useSwashBuckle.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: aspnetcore
|
||||||
|
outputDir: samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/aspnetcore/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
|
aspnetCoreVersion: "6.0"
|
||||||
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
|
useSwashBuckle: false
|
||||||
|
buildTarget: library
|
||||||
|
isLibrary: true
|
||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: net47
|
targetFramework: net47
|
||||||
|
skipOneOfAnyOfGetter: true
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
# for .net Unity
|
||||||
|
generatorName: csharp-netcore
|
||||||
|
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
|
library: unityWebRequest
|
||||||
@@ -4,5 +4,5 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with
|
|||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
targetFramework: netcoreapp3.1
|
targetFramework: net7.0
|
||||||
useCompareNetObjects: "true"
|
useCompareNetObjects: "true"
|
||||||
|
|||||||
4
bin/configs/elm-petstore.yaml
Normal file
4
bin/configs/elm-petstore.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
generatorName: elm
|
||||||
|
outputDir: samples/client/petstore/elm
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/elm
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: go-server
|
generatorName: go-server
|
||||||
outputDir: samples/server/petstore/go-api-server
|
outputDir: samples/server/petstore/go-api-server
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go-server/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go-server
|
templateDir: modules/openapi-generator/src/main/resources/go-server
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
10
bin/configs/java-okhttp-gson-nullable-required.yaml
Normal file
10
bin/configs/java-okhttp-gson-nullable-required.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/okhttp-gson-nullable-required
|
||||||
|
library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: nullable-required-okhttp-gson
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/okhttp-gson
|
outputDir: samples/client/petstore/java/okhttp-gson
|
||||||
library: okhttp-gson
|
library: okhttp-gson
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature-okhttp-gson.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-okhttp-gson
|
artifactId: petstore-okhttp-gson
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: jaxrs-cxf-cdi
|
generatorName: jaxrs-cxf-cdi
|
||||||
outputDir: samples/server/petstore/jaxrs-cxf-cdi
|
outputDir: samples/server/petstore/jaxrs-cxf-cdi
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jaxrs/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-petstore-server
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
|
useMicroProfileOpenAPIAnnotations: "true"
|
||||||
|
library: "quarkus"
|
||||||
|
dateLibrary: "java8-localdatetime"
|
||||||
10
bin/configs/jaxrs-spec-required-and-readonly-property.yaml
Normal file
10
bin/configs/jaxrs-spec-required-and-readonly-property.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-required-and-readonly-property
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/required-and-readonly-property.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-petstore-server
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
9
bin/configs/kotlin-jvm-spring-2-webclient.yaml
Normal file
9
bin/configs/kotlin-jvm-spring-2-webclient.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-spring-2-webclient
|
||||||
|
library: jvm-spring-webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-spring-webclient
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: jackson
|
||||||
10
bin/configs/kotlin-jvm-spring-3-webclient.yaml
Normal file
10
bin/configs/kotlin-jvm-spring-3-webclient.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-spring-3-webclient
|
||||||
|
library: jvm-spring-webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-spring-webclient
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: jackson
|
||||||
|
useSpringBoot3: true
|
||||||
12
bin/configs/kotlin-spring-cloud.yaml
Normal file
12
bin/configs/kotlin-spring-cloud.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/client/petstore/kotlin-spring-cloud
|
||||||
|
library: spring-cloud
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: none
|
||||||
|
useSwaggerUI: "false"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
interfaceOnly: "true"
|
||||||
9
bin/configs/n4js-petstore.yaml
Normal file
9
bin/configs/n4js-petstore.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: n4js
|
||||||
|
outputDir: samples/client/petstore/n4js
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/n4js
|
||||||
|
additionalProperties:
|
||||||
|
apiPackage: "api"
|
||||||
|
modelPackage: "model"
|
||||||
|
fetchExecuterConstName: "FETCH_EXEC"
|
||||||
|
fetchExecuterConstImplPath: "FetchExecuterMock"
|
||||||
4
bin/configs/postman-collection.yaml
Normal file
4
bin/configs/postman-collection.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
generatorName: postman-collection
|
||||||
|
outputDir: samples/schema/postman-collection
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/postman-collection/SampleProject.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/postman-collection
|
||||||
@@ -1,4 +1,8 @@
|
|||||||
generatorName: python-aiohttp
|
generatorName: python
|
||||||
outputDir: samples/server/petstore/python-aiohttp
|
outputDir: samples/openapi3/client/petstore/python-aiohttp
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-aiohttp
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
|
library: asyncio
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore_api
|
||||||
|
mapNumberTo: float
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
generatorName: python-legacy
|
|
||||||
outputDir: samples/client/petstore/python-asyncio
|
|
||||||
library: asyncio
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-legacy
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
6
bin/configs/python-echo-api.yaml
Normal file
6
bin/configs/python-echo-api.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: python
|
||||||
|
outputDir: samples/client/echo_api/python
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: python
|
|
||||||
outputDir: samples/openapi3/client/features/dynamic-servers/python/
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/features/dynamic-servers.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
|
||||||
additionalProperties:
|
|
||||||
packageName: dynamic_servers
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: python-legacy
|
|
||||||
outputDir: samples/client/petstore/python-legacy
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-legacy
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: python-legacy
|
|
||||||
outputDir: samples/openapi3/client/petstore/python-legacy
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-legacy
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: python-nextgen
|
|
||||||
outputDir: samples/openapi3/client/petstore/python-nextgen-aiohttp
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-nextgen
|
|
||||||
library: asyncio
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
floatStrictType: false
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
generatorName: python-nextgen
|
|
||||||
outputDir: samples/client/echo_api/python-nextgen
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-nextgen
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
allowStringInDateTimeParameters: true
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: python-nextgen
|
|
||||||
outputDir: samples/openapi3/client/petstore/python-nextgen
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-nextgen
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
useOneOfDiscriminatorLookup: "true"
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: python-prior
|
|
||||||
outputDir: samples/openapi3/client/extensions/x-auth-id-alias/python-prior/
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/extensions/x-auth-id-alias.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
|
||||||
additionalProperties:
|
|
||||||
packageName: x_auth_id_alias
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# this file exists because in this file we omit setting disallowAdditionalPropertiesIfNotPresent
|
|
||||||
# which makes it default to false
|
|
||||||
# that false setting is needed for composed schemas to work
|
|
||||||
# Composed schemas are schemas that contain the allOf/oneOf/anyOf keywords. v2 specs only support the allOf keyword.
|
|
||||||
generatorName: python-prior
|
|
||||||
outputDir: samples/client/petstore/python-prior
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/python-prior/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-prior
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
generatorName: python-prior
|
|
||||||
outputDir: samples/client/petstore/python-prior_disallowAdditionalPropertiesIfNotPresent
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/python-prior/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-prior
|
|
||||||
additionalProperties:
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: "true"
|
|
||||||
packageName: petstore_api
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: python-prior
|
|
||||||
outputDir: samples/openapi3/client/petstore/python-prior
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python-prior/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-prior
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
recursionLimit: "1234"
|
|
||||||
initRequiredVars: false
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
generatorName: python-legacy
|
|
||||||
outputDir: samples/client/petstore/python-tornado
|
|
||||||
library: tornado
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python-legacy
|
|
||||||
additionalProperties:
|
|
||||||
packageName: petstore_api
|
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
generatorName: python
|
generatorName: python
|
||||||
outputDir: samples/openapi3/client/petstore/python
|
outputDir: samples/openapi3/client/petstore/python
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore_api
|
packageName: petstore_api
|
||||||
recursionLimit: "1234"
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
mapNumberTo: StrictFloat
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: python
|
|
||||||
outputDir: samples/openapi3/client/3_0_3_unit_test/python
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/unit_test_spec/3_0_3_unit_test_spec.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
|
||||||
additionalProperties:
|
|
||||||
packageName: unit_test_api
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
# This is for generating scala legacy client
|
|
||||||
generatorName: scala-httpclient-deprecated
|
|
||||||
outputDir: samples/client/petstore/scala-httpclient-deprecated
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/scala-httpclient
|
|
||||||
additionalProperties:
|
|
||||||
apiPackage: org.openapitools.example.api
|
|
||||||
invokerPackage: org.openapitools.example.invoker
|
|
||||||
artifactId: scala-legacy-petstore
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-beanvalidation-no-nullable
|
|
||||||
library: spring-boot
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
groupId: org.openapitools.openapi3
|
|
||||||
documentationProvider: springdoc
|
|
||||||
java8: "false"
|
|
||||||
useBeanValidation: true
|
|
||||||
artifactId: spring-boot-beanvalidation-no-nullable
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
openApiNullable: "false"
|
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-beanvalidation-no-nullable
|
outputDir: samples/server/petstore/springboot-beanvalidation-no-nullable
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
java8: "false"
|
java8: "false"
|
||||||
useBeanValidation: true
|
useBeanValidation: true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-beanvalidation
|
outputDir: samples/server/petstore/springboot-beanvalidation
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
outputDir: samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: spring-boot-defaultInterface-unhandledException
|
artifactId: spring-boot-defaultInterface-unhandledException
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-delegate-j8
|
outputDir: samples/server/petstore/springboot-delegate-j8
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
11
bin/configs/spring-boot-delegate-no-response-entity.yaml
Normal file
11
bin/configs/spring-boot-delegate-no-response-entity.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/server/petstore/springboot-delegate-no-response-entity
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: springfox
|
||||||
|
artifactId: springboot-delegate-no-response-entity
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
java8: true
|
||||||
|
delegatePattern: "true"
|
||||||
|
useResponseEntity: "false"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-delegate
|
outputDir: samples/openapi3/server/petstore/springboot-delegate
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-delegate
|
outputDir: samples/server/petstore/springboot-delegate
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-implicitHeaders
|
outputDir: samples/openapi3/server/petstore/springboot-implicitHeaders
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-implicitHeaders
|
outputDir: samples/server/petstore/springboot-implicitHeaders
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: springboot-implicitHeaders
|
artifactId: springboot-implicitHeaders
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-reactive
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
groupId: org.openapitools.openapi3
|
|
||||||
documentationProvider: springdoc
|
|
||||||
artifactId: springboot-reactive
|
|
||||||
reactive: "true"
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
delegatePattern: "true"
|
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-reactive
|
outputDir: samples/server/petstore/springboot-reactive
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
artifactId: springboot-reactive
|
artifactId: springboot-reactive
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
reactive: "true"
|
reactive: "true"
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/openapi3/server/petstore/springboot-useoptional
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
groupId: org.openapitools.openapi3
|
|
||||||
documentationProvider: springdoc
|
|
||||||
useOptional: true
|
|
||||||
artifactId: spring-boot-useoptional
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-useoptional
|
outputDir: samples/server/petstore/springboot-useoptional
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
useOptional: true
|
useOptional: true
|
||||||
artifactId: spring-boot-useoptional
|
artifactId: spring-boot-useoptional
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot-virtualan
|
outputDir: samples/server/petstore/springboot-virtualan
|
||||||
library: spring-boot
|
library: spring-boot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springdoc
|
documentationProvider: springdoc
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/server/petstore/springboot
|
outputDir: samples/server/petstore/springboot
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: springfox
|
documentationProvider: springfox
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-cloud-async
|
outputDir: samples/openapi3/client/petstore/spring-cloud-async
|
||||||
library: spring-cloud
|
library: spring-cloud
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/client/petstore/spring-cloud-async
|
|
||||||
library: spring-cloud
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
documentationProvider: springfox
|
|
||||||
async: "true"
|
|
||||||
java8: "true"
|
|
||||||
artifactId: petstore-spring-cloud
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
library: spring-cloud
|
library: spring-cloud
|
||||||
outputDir: samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi
|
outputDir: samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
@@ -10,3 +10,4 @@ additionalProperties:
|
|||||||
interfaceOnly: "true"
|
interfaceOnly: "true"
|
||||||
singleContentTypes: "true"
|
singleContentTypes: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
generatedConstructorWithRequiredArgs: "false"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
outputDir: samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
||||||
library: spring-cloud
|
library: spring-cloud
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-spring-pageable.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/client/petstore/spring-cloud-spring-pageable
|
|
||||||
library: spring-cloud
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-spring-pageable.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
documentationProvider: springfox
|
|
||||||
artifactId: spring-cloud-spring-pageable
|
|
||||||
hideGenerationTimestamp: 'true'
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
library: spring-http-interface
|
library: spring-http-interface
|
||||||
outputDir: samples/client/petstore/spring-http-interface-reactive
|
outputDir: samples/client/petstore/spring-http-interface-reactive
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: spring-http-interface-reactive
|
artifactId: spring-http-interface-reactive
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
library: spring-http-interface
|
library: spring-http-interface
|
||||||
outputDir: samples/client/petstore/spring-http-interface
|
outputDir: samples/client/petstore/spring-http-interface
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: spring-http-interface
|
artifactId: spring-http-interface
|
||||||
snapshotVersion: "true"
|
snapshotVersion: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
modelNameSuffix: 'Dto'
|
modelNameSuffix: 'Dto'
|
||||||
|
generatedConstructorWithRequiredArgs: "false"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-stubs
|
outputDir: samples/openapi3/client/petstore/spring-stubs
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: spring
|
generatorName: spring
|
||||||
outputDir: samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
outputDir: samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
groupId: org.openapitools.openapi3
|
groupId: org.openapitools.openapi3
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
generatorName: spring
|
|
||||||
outputDir: samples/server/petstore/spring-stubs
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
|
||||||
additionalProperties:
|
|
||||||
documentationProvider: springfox
|
|
||||||
artifactId: spring-stubs
|
|
||||||
interfaceOnly: "true"
|
|
||||||
singleContentTypes: "true"
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user