mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-04-19 15:39:11 +00:00
Compare commits
507 Commits
v6.2.0
...
nested-one
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
225d590b53 | ||
|
|
a4b5b85067 | ||
|
|
07f1d2d51c | ||
|
|
099f138dd5 | ||
|
|
b5d4fa9d27 | ||
|
|
1f2d6b8848 | ||
|
|
92b96635bd | ||
|
|
3aa7ec6a39 | ||
|
|
f4e53db8cf | ||
|
|
5c9999b7cf | ||
|
|
8b2de37414 | ||
|
|
d400d7fb15 | ||
|
|
b527f3b816 | ||
|
|
cab9872d6d | ||
|
|
18ef6ff96a | ||
|
|
94733b8bdf | ||
|
|
e09196261a | ||
|
|
c9958e12b8 | ||
|
|
b215f67b2e | ||
|
|
9290c1a75e | ||
|
|
94d6faffe3 | ||
|
|
c50a775e0c | ||
|
|
93df0ff444 | ||
|
|
1bd3ce7ce2 | ||
|
|
0891b6056f | ||
|
|
cb20e742ea | ||
|
|
c5d67ee042 | ||
|
|
e9f55c0dd9 | ||
|
|
7968349991 | ||
|
|
612dc4dbcb | ||
|
|
09ff22230d | ||
|
|
2101ea6cf7 | ||
|
|
958609931b | ||
|
|
3746a2069f | ||
|
|
cea5022b5d | ||
|
|
2bc963f00c | ||
|
|
0816008f1e | ||
|
|
9be92fabd1 | ||
|
|
6095d2df75 | ||
|
|
0e0cddacac | ||
|
|
ae0ed022d5 | ||
|
|
11d9d4346e | ||
|
|
12e76ec14f | ||
|
|
62f52ad520 | ||
|
|
d7e75ebe5d | ||
|
|
71c2abf81c | ||
|
|
8b0b4b5d04 | ||
|
|
1814a04c20 | ||
|
|
b6e51b7a77 | ||
|
|
7c57024e69 | ||
|
|
d7edbad8d6 | ||
|
|
85a7d69b5f | ||
|
|
f455ac166c | ||
|
|
e00d8d564a | ||
|
|
110460b71a | ||
|
|
72c02e4bc1 | ||
|
|
d7a2e4a293 | ||
|
|
b6abace9dc | ||
|
|
9a0aee90bd | ||
|
|
e702506e4d | ||
|
|
68b944e6e6 | ||
|
|
1b60ee1799 | ||
|
|
4664f6c46c | ||
|
|
687bace3f3 | ||
|
|
011982ab9c | ||
|
|
98333492cf | ||
|
|
4c8e230e50 | ||
|
|
7ca0b92944 | ||
|
|
e13a4e143b | ||
|
|
0f1919ee53 | ||
|
|
26eb1dc805 | ||
|
|
515abf8c68 | ||
|
|
927bfa481f | ||
|
|
031115356d | ||
|
|
bbc42696ab | ||
|
|
cda3517891 | ||
|
|
d90bdcbec7 | ||
|
|
ca19fa0ef3 | ||
|
|
31c3a40b4c | ||
|
|
a3c0de935f | ||
|
|
c2bad96ce1 | ||
|
|
d8f777d707 | ||
|
|
6b0644115b | ||
|
|
14669d226b | ||
|
|
4f1708c3fb | ||
|
|
6b80410bf3 | ||
|
|
55e2eb1d6a | ||
|
|
68b41eeeea | ||
|
|
6072646899 | ||
|
|
626cd8c0cd | ||
|
|
a94ad37738 | ||
|
|
f6be077efb | ||
|
|
27af3a063b | ||
|
|
31a89e35cb | ||
|
|
8f2676c5c2 | ||
|
|
6541038e13 | ||
|
|
6ddc8b3f38 | ||
|
|
32499a19fc | ||
|
|
8d9816e193 | ||
|
|
e8c739e771 | ||
|
|
a28772b08f | ||
|
|
cffe2d0259 | ||
|
|
eca9ec775b | ||
|
|
fa1cbb9322 | ||
|
|
37e8cfadc7 | ||
|
|
fd45b74128 | ||
|
|
b3527348f3 | ||
|
|
4bc16ea6bb | ||
|
|
28493dfa95 | ||
|
|
8540c82d30 | ||
|
|
b538c2adf8 | ||
|
|
57546d49c2 | ||
|
|
1c157a2847 | ||
|
|
03299528e9 | ||
|
|
47813a88a2 | ||
|
|
4ffdadfbcc | ||
|
|
6a2d8d23da | ||
|
|
ac5134acf3 | ||
|
|
5047273f1e | ||
|
|
82ac92aed6 | ||
|
|
ccbea26390 | ||
|
|
90e468b9a3 | ||
|
|
d4c8c97e19 | ||
|
|
5e7d31a83b | ||
|
|
4ecb9f4186 | ||
|
|
6e780218ad | ||
|
|
6cd7989e9e | ||
|
|
d1cde7febe | ||
|
|
c912bae3bc | ||
|
|
9f502930ea | ||
|
|
4cd080762a | ||
|
|
74073df27c | ||
|
|
27137e75ce | ||
|
|
be87382fde | ||
|
|
7958990254 | ||
|
|
92775ceffc | ||
|
|
d348754399 | ||
|
|
b6ad68baca | ||
|
|
079ad1742e | ||
|
|
cf4f2c76b2 | ||
|
|
ed2029f863 | ||
|
|
8abc750c0e | ||
|
|
9fae221f1d | ||
|
|
b1f8f976c0 | ||
|
|
a584f32d68 | ||
|
|
c2c91e2d2e | ||
|
|
076b88429e | ||
|
|
e1e291bc12 | ||
|
|
e8811ecd28 | ||
|
|
cffacc8023 | ||
|
|
a31b5b119e | ||
|
|
5dbfea6ecc | ||
|
|
50e295e3c6 | ||
|
|
3f96cdb756 | ||
|
|
e825f27b0b | ||
|
|
4044e724c0 | ||
|
|
c6ea564600 | ||
|
|
0b8c08c7a0 | ||
|
|
a010713c42 | ||
|
|
d269a2a09d | ||
|
|
b22bf0a071 | ||
|
|
c514dc3c1b | ||
|
|
9bbf729d5e | ||
|
|
95eaff0a00 | ||
|
|
f848651b84 | ||
|
|
e1220071f0 | ||
|
|
ec9c7bdf2c | ||
|
|
cce3c963f3 | ||
|
|
babfdff78a | ||
|
|
917892db7d | ||
|
|
3dd313d35c | ||
|
|
38fdbe0c2c | ||
|
|
a6eb96ea34 | ||
|
|
d0800c46e1 | ||
|
|
921199bba7 | ||
|
|
b8b8c5c208 | ||
|
|
466495e919 | ||
|
|
421e7c9d3e | ||
|
|
fd2b141c53 | ||
|
|
da8d984ea4 | ||
|
|
16a7fb8acd | ||
|
|
dc99a450dd | ||
|
|
456cca1a28 | ||
|
|
dee0703269 | ||
|
|
2236cebe02 | ||
|
|
be93d1f839 | ||
|
|
7c587ce061 | ||
|
|
b71aecbe9e | ||
|
|
3a8265b6ee | ||
|
|
04ebe9e1a0 | ||
|
|
88fa9ef3c2 | ||
|
|
341a8535c7 | ||
|
|
efdc94b113 | ||
|
|
8a2a059887 | ||
|
|
63f6569e6f | ||
|
|
444d411b5e | ||
|
|
ad2e1b7e62 | ||
|
|
fd0bfae65a | ||
|
|
a99c58011a | ||
|
|
c27180849f | ||
|
|
68beec623f | ||
|
|
cfef750e18 | ||
|
|
031f0dcee6 | ||
|
|
95198dd34b | ||
|
|
625a7233e2 | ||
|
|
71a7a822f4 | ||
|
|
028b38d43b | ||
|
|
34b343ff80 | ||
|
|
7b64fbb800 | ||
|
|
e6702c5edc | ||
|
|
02d4852f26 | ||
|
|
851ddecda3 | ||
|
|
45b1f91807 | ||
|
|
5300bff6d9 | ||
|
|
82971ccd48 | ||
|
|
c45814a7ea | ||
|
|
9450984af8 | ||
|
|
344c49dd51 | ||
|
|
ab59e68f1e | ||
|
|
0cf5ed619d | ||
|
|
6800905123 | ||
|
|
1cda5462f9 | ||
|
|
2a33229158 | ||
|
|
081a6ef466 | ||
|
|
d90c9a6f3b | ||
|
|
a47b95a749 | ||
|
|
c3b9bd7459 | ||
|
|
a57fb9e109 | ||
|
|
c4b2c81c05 | ||
|
|
5d7956293b | ||
|
|
11d31117a8 | ||
|
|
1fad61e2f8 | ||
|
|
b8b25e8ae0 | ||
|
|
1b344597bf | ||
|
|
fdf1ce6c51 | ||
|
|
6686ba2dc7 | ||
|
|
f2321a61d3 | ||
|
|
d06ab43dd6 | ||
|
|
2524e8fb0a | ||
|
|
811e0de1be | ||
|
|
63629ad51c | ||
|
|
cbbe243bde | ||
|
|
f32bf510c0 | ||
|
|
ffaf173db1 | ||
|
|
4e387cad53 | ||
|
|
0103d400c2 | ||
|
|
d6e7f70cb4 | ||
|
|
94dccae82d | ||
|
|
22bd3e31dc | ||
|
|
c62ebc377e | ||
|
|
e2e28a7e0e | ||
|
|
28ae689615 | ||
|
|
bd79231d6b | ||
|
|
12fd115af3 | ||
|
|
77e06466db | ||
|
|
792d44d797 | ||
|
|
a92afd239f | ||
|
|
b8c8f4a032 | ||
|
|
6c9246ca3d | ||
|
|
c5e79681c5 | ||
|
|
12a6ea7beb | ||
|
|
61700fd42c | ||
|
|
3a26da76b0 | ||
|
|
fabd0a8be2 | ||
|
|
9f8ed6b0e2 | ||
|
|
e93906eaea | ||
|
|
d5ce79ac24 | ||
|
|
e32b7a41b6 | ||
|
|
57644b6817 | ||
|
|
f9d4d28f48 | ||
|
|
90a8b4effb | ||
|
|
9220e72674 | ||
|
|
76d8119150 | ||
|
|
743202241e | ||
|
|
980062f2bb | ||
|
|
6bb6f1b28a | ||
|
|
3eb90a69e6 | ||
|
|
dc1b2ed9e0 | ||
|
|
09c070a27e | ||
|
|
743d2cde7f | ||
|
|
d74cefba83 | ||
|
|
906ec5dfa3 | ||
|
|
871eda2731 | ||
|
|
a96777b6f4 | ||
|
|
903ff0ba47 | ||
|
|
67067b1b3c | ||
|
|
2a7b3cd4b9 | ||
|
|
4487042f0d | ||
|
|
95b566a3a9 | ||
|
|
8e98bff934 | ||
|
|
9039c83bc4 | ||
|
|
1748d03fb9 | ||
|
|
1f7824c083 | ||
|
|
74441fde9f | ||
|
|
40e04df096 | ||
|
|
e25f8c5d61 | ||
|
|
5e50ff47b0 | ||
|
|
92ecee8c27 | ||
|
|
77226981b6 | ||
|
|
42264aadd7 | ||
|
|
e882421ff3 | ||
|
|
2e44e78474 | ||
|
|
4a5c9ff2d2 | ||
|
|
188c39dccd | ||
|
|
1670e952ff | ||
|
|
f81eb7e6f0 | ||
|
|
01f0763ec3 | ||
|
|
f1b8190b19 | ||
|
|
7ad9f835ff | ||
|
|
d8bed4228d | ||
|
|
4667b7e471 | ||
|
|
ca5d9b5e69 | ||
|
|
099a96b1ad | ||
|
|
d80cd099ca | ||
|
|
6a7b8fcebe | ||
|
|
3eec4eb326 | ||
|
|
7a17d3dc55 | ||
|
|
9f1fa0e440 | ||
|
|
3dc8403e10 | ||
|
|
363906fda3 | ||
|
|
b35ea31e82 | ||
|
|
d5f896fe20 | ||
|
|
865958c480 | ||
|
|
2e0e010f3a | ||
|
|
c35140cbc3 | ||
|
|
6a1acd89a1 | ||
|
|
a020170ff3 | ||
|
|
5221682086 | ||
|
|
c3abdb6c57 | ||
|
|
c71ec554dc | ||
|
|
d2a9da5061 | ||
|
|
4a7a2f5e6d | ||
|
|
bfcb3864a7 | ||
|
|
0d1e31324b | ||
|
|
89fc631125 | ||
|
|
06354d5f7d | ||
|
|
32a5e88ba9 | ||
|
|
2947d147b4 | ||
|
|
b0ce532bdc | ||
|
|
9eb799d8dd | ||
|
|
b54299fffa | ||
|
|
fe5601ab9b | ||
|
|
a04b2623b0 | ||
|
|
1de28c8a72 | ||
|
|
fa4f7e07fe | ||
|
|
06096d7f77 | ||
|
|
d6de9c19c8 | ||
|
|
6c8365cc9d | ||
|
|
1b65ef38f5 | ||
|
|
4c19c725a7 | ||
|
|
684e7a063c | ||
|
|
9f7c267146 | ||
|
|
009bf4c0a3 | ||
|
|
458ea56896 | ||
|
|
574a70c315 | ||
|
|
8eb3064b2e | ||
|
|
3d578164e8 | ||
|
|
cd5c6586a4 | ||
|
|
413d3c33d7 | ||
|
|
d4056a3033 | ||
|
|
1984a31004 | ||
|
|
e0043130c7 | ||
|
|
824b2aa5f3 | ||
|
|
a66874f8f9 | ||
|
|
a9b24956a8 | ||
|
|
3501771a2e | ||
|
|
748de83d29 | ||
|
|
227f583a81 | ||
|
|
a8f83477f4 | ||
|
|
d74c49b93d | ||
|
|
6650ba6406 | ||
|
|
0368987315 | ||
|
|
f409fb6184 | ||
|
|
232f354826 | ||
|
|
9e5c919560 | ||
|
|
643b4f703e | ||
|
|
ca56242e4f | ||
|
|
2e4a02532e | ||
|
|
d35bbbd17f | ||
|
|
ac3bb6830a | ||
|
|
c0c31e89b7 | ||
|
|
a68c36e932 | ||
|
|
892e4f5b3c | ||
|
|
15dc2f2f00 | ||
|
|
55b1ec973b | ||
|
|
1c5a117552 | ||
|
|
add4dfff8e | ||
|
|
7a2c3f7188 | ||
|
|
0d56ebc702 | ||
|
|
514dbca08b | ||
|
|
a3fbb82853 | ||
|
|
11c43c3c2b | ||
|
|
042e250efa | ||
|
|
d2a7cbcaf4 | ||
|
|
0c1384b950 | ||
|
|
58f817276a | ||
|
|
de8d7e98c4 | ||
|
|
c73704ce08 | ||
|
|
b2e8a15d9f | ||
|
|
ad2169ea33 | ||
|
|
c22715ad1f | ||
|
|
803e2cdb60 | ||
|
|
70fcfebc6c | ||
|
|
8b4c681227 | ||
|
|
41255c1f18 | ||
|
|
3f4e3afab2 | ||
|
|
05f3b00f04 | ||
|
|
02c31bfd7d | ||
|
|
31ea76b58b | ||
|
|
9c2757b4e1 | ||
|
|
04e441bad2 | ||
|
|
f864c6d226 | ||
|
|
15e164aa39 | ||
|
|
02d99eaf12 | ||
|
|
a248ae047c | ||
|
|
c1c9cb2192 | ||
|
|
53dc385fc6 | ||
|
|
dc23ba3a23 | ||
|
|
c0a9f0ea51 | ||
|
|
fae9a798a0 | ||
|
|
3bd2a611bf | ||
|
|
c81c131c46 | ||
|
|
e02ebd822a | ||
|
|
866d67a78f | ||
|
|
f11cb7f17d | ||
|
|
cafdf64ca5 | ||
|
|
838212eefb | ||
|
|
8548a63d96 | ||
|
|
506ca21782 | ||
|
|
4d03c9272b | ||
|
|
daf475a96d | ||
|
|
cec28261e1 | ||
|
|
715bbfab56 | ||
|
|
5b3a7b0cff | ||
|
|
74bc35e33c | ||
|
|
3ed6503075 | ||
|
|
048f78e0c6 | ||
|
|
1fda3ce290 | ||
|
|
700f01dbf8 | ||
|
|
9e5625c842 | ||
|
|
b24c2d42bc | ||
|
|
51dc1c928a | ||
|
|
88ee081ad4 | ||
|
|
58ffb09fd4 | ||
|
|
40c1b2c471 | ||
|
|
638c5201c4 | ||
|
|
1e029ae935 | ||
|
|
224f42e291 | ||
|
|
cea7a14b25 | ||
|
|
74c600c877 | ||
|
|
6be539db83 | ||
|
|
53873ff6d8 | ||
|
|
1e66f2fbc9 | ||
|
|
1235ccd391 | ||
|
|
ef8e55ca21 | ||
|
|
02916822f7 | ||
|
|
e21d4900a1 | ||
|
|
a4f7cafdf3 | ||
|
|
48928d8efe | ||
|
|
ba192741af | ||
|
|
0602d8f8a7 | ||
|
|
3ae37e27a5 | ||
|
|
0060dfd195 | ||
|
|
4ee0cfa1ad | ||
|
|
6f3c0a8b5b | ||
|
|
038fe790dc | ||
|
|
0b0e3f7d16 | ||
|
|
2f8b7a054f | ||
|
|
74bb35d909 | ||
|
|
94bc2ed19c | ||
|
|
0a69f11526 | ||
|
|
64c756c5fc | ||
|
|
10a1e7c2d5 | ||
|
|
18b5b05fa7 | ||
|
|
4ae11f8a0f | ||
|
|
a37d18a7e4 | ||
|
|
32936ad71b | ||
|
|
8b10dc3830 | ||
|
|
4beee6c8c4 | ||
|
|
085e1e58e5 | ||
|
|
57f5cc4000 | ||
|
|
2f48c596d1 | ||
|
|
c39fc1e31b | ||
|
|
0581d81eaa | ||
|
|
c30ae752a0 | ||
|
|
922f9783fd | ||
|
|
3ec6cc5bf5 | ||
|
|
c939894711 | ||
|
|
9cc23dd09d | ||
|
|
2920c7bf91 | ||
|
|
d3e099bd06 | ||
|
|
210a394e0d | ||
|
|
00604aff59 | ||
|
|
6a631b4cc0 | ||
|
|
4ba43f7577 | ||
|
|
694a4c93c8 | ||
|
|
bcd0d2963f | ||
|
|
4e54b07076 | ||
|
|
36976d5c72 | ||
|
|
88d464ad35 | ||
|
|
6b47b14896 | ||
|
|
23c67d1581 | ||
|
|
22086e4f3c | ||
|
|
de745a4c61 | ||
|
|
efccc01911 | ||
|
|
d46189bb28 | ||
|
|
ac7ebf67dd |
7
.github/PULL_REQUEST_TEMPLATE.md
vendored
7
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -16,5 +16,10 @@
|
|||||||
These must match the expectations made by your contribution.
|
These must match the expectations made by your contribution.
|
||||||
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example `./bin/generate-samples.sh bin/configs/java*`.
|
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example `./bin/generate-samples.sh bin/configs/java*`.
|
||||||
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/).
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.1.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
- [ ] In case you are adding a new generator, run the following additional script :
|
||||||
|
```
|
||||||
|
./bin/utils/ensure-up-to-date.sh
|
||||||
|
```
|
||||||
|
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)
|
||||||
- [ ] If your PR is targeting a particular programming language, @mention the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) members, so they are more likely to review the pull request.
|
- [ ] If your PR is targeting a particular programming language, @mention the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) members, so they are more likely to review the pull request.
|
||||||
|
|||||||
@@ -91,5 +91,7 @@ jobs:
|
|||||||
git config --global core.safecrlf false
|
git config --global core.safecrlf false
|
||||||
git config --global core.autocrlf true
|
git config --global core.autocrlf true
|
||||||
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
mvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
||||||
# test with java (jersey2) client generation only as ensure-uptodate script is run in another job instead
|
# 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
|
./bin/generate-samples.sh ./bin/configs/java-jersey2-8.yaml
|
||||||
|
# test debugSupportingFiles
|
||||||
|
./bin/generate-samples.sh ./bin/configs/python.yaml -- --global-property debugSupportingFiles
|
||||||
|
|||||||
43
.github/workflows/gradle-plugin-tests.yaml
vendored
Normal file
43
.github/workflows/gradle-plugin-tests.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Gradle plugin tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- modules/openapi-generator-gradle-plugin/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- modules/openapi-generator-gradle-plugin/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Gradle plugin tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
distribution: 'temurin'
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: cache-maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2/repository
|
||||||
|
~/.gradle
|
||||||
|
!~/.gradle/caches/modules-2/modules-2.lock
|
||||||
|
!~/.gradle/caches/*/plugin-resolution/
|
||||||
|
!~/.m2/repository/org/openapitools/
|
||||||
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-test-gradle-plugin-
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
mvn --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 openApiGenerate)
|
||||||
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
||||||
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && gradle buildJavaResttemplateSdk) # not using gradle wrapper
|
||||||
13
.github/workflows/gradle-test.yaml
vendored
13
.github/workflows/gradle-test.yaml
vendored
@@ -2,17 +2,12 @@ name: Gradle tests (Java samples)
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- '[5-9]+.[0-9]+.x'
|
|
||||||
- "java*"
|
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
|
- 'samples/openapi3/client/petstore/java/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- '[5-9]+.[0-9]+.x'
|
|
||||||
paths:
|
paths:
|
||||||
|
- 'samples/client/petstore/java/**'
|
||||||
- 'samples/openapi3/client/petstore/java/**'
|
- 'samples/openapi3/client/petstore/java/**'
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 7.2
|
GRADLE_VERSION: 7.2
|
||||||
@@ -26,11 +21,11 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/java/jersey2-java8-localdatetime
|
|
||||||
- samples/client/petstore/java/jersey2-java8
|
|
||||||
- samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8
|
- samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8
|
- samples/openapi3/client/petstore/java/jersey2-java8
|
||||||
|
- samples/client/petstore/java/jersey2-java8-localdatetime
|
||||||
|
- samples/client/petstore/java/jersey2-java8
|
||||||
- samples/client/petstore/java/okhttp-gson
|
- samples/client/petstore/java/okhttp-gson
|
||||||
- samples/client/petstore/java/okhttp-gson-group-parameter
|
- samples/client/petstore/java/okhttp-gson-group-parameter
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
46
.github/workflows/java-helidon-functional-tests.yaml
vendored
Normal file
46
.github/workflows/java-helidon-functional-tests.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
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'
|
||||||
42
.github/workflows/maven-plugin-tests.yaml
vendored
Normal file
42
.github/workflows/maven-plugin-tests.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Maven plugin tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- modules/openapi-generator-maven-plugin/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- modules/openapi-generator-maven-plugin/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Maven plugin tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
java-version: 11
|
||||||
|
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 }}-test-maven-plugin-${{ env.cache-name }}-
|
||||||
|
${{ runner.os }}-test-maven-plugin-
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
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/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
32
.github/workflows/misc-test.yaml
vendored
Normal file
32
.github/workflows/misc-test.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Misc Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- '[5-9]+.[0-9]+.x'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Misc tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '2.6'
|
||||||
|
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
|
||||||
|
- name: Detect tabs
|
||||||
|
run: /bin/bash ./bin/utils/detect_tab_in_templates.sh
|
||||||
|
- name: Detect changes in test files
|
||||||
|
run: ./bin/utils/detect_test_file_changes.rb bin/utils/test_file_list.yaml
|
||||||
|
- name: Detect carriage return
|
||||||
|
run: /bin/bash ./bin/utils/detect_carriage_return.sh
|
||||||
|
- name: Detect merge conflicts
|
||||||
|
run: /bin/bash ./bin/utils/detect_merge_conflict.sh
|
||||||
|
- name: Detect tabs
|
||||||
|
run: /bin/bash ./bin/utils/detect_tab_in_java_class.sh
|
||||||
68
.github/workflows/openapi-generator.yaml
vendored
68
.github/workflows/openapi-generator.yaml
vendored
@@ -153,71 +153,3 @@ jobs:
|
|||||||
echo "Please run 'bin/generate-samples.sh' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
|
echo "Please run 'bin/generate-samples.sh' locally and commit changes (UNCOMMITTED CHANGES ERROR)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test-maven-plugin:
|
|
||||||
name: Maven plugin tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up JDK 11
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
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 }}-test-maven-plugin-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-test-maven-plugin-
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
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/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
|
||||||
|
|
||||||
test-gradle-plugin:
|
|
||||||
name: Gradle plugin tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs:
|
|
||||||
- build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up JDK 11
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: 11
|
|
||||||
distribution: 'temurin'
|
|
||||||
- name: Cache maven dependencies
|
|
||||||
uses: actions/cache@v3
|
|
||||||
env:
|
|
||||||
cache-name: cache-maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle
|
|
||||||
!~/.gradle/caches/modules-2/modules-2.lock
|
|
||||||
!~/.gradle/caches/*/plugin-resolution/
|
|
||||||
!~/.m2/repository/org/openapitools/
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-test-gradle-plugin-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-test-gradle-plugin-
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
mvn --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 openApiGenerate)
|
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && gradle buildJavaResttemplateSdk) # not using gradle wrapper
|
|
||||||
|
|||||||
34
.github/workflows/samples-cpp-qt-client.yaml
vendored
Normal file
34
.github/workflows/samples-cpp-qt-client.yaml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Samples cpp qt client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'samples/client/petstore/cpp-qt/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/cpp-qt/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 6.9
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build cpp qt client
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
qt-version:
|
||||||
|
- '5.15.2'
|
||||||
|
- '6.4.2'
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macOS-latest
|
||||||
|
- windows-latest
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: jurplel/install-qt-action@v3
|
||||||
|
with:
|
||||||
|
version: ${{ matrix.qt-version }}
|
||||||
|
- name: Build
|
||||||
|
working-directory: "samples/client/petstore/cpp-qt"
|
||||||
|
run: ./build-and-test.bash
|
||||||
2
.github/workflows/samples-dart.yaml
vendored
2
.github/workflows/samples-dart.yaml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
|
||||||
- uses: dart-lang/setup-dart@v1
|
- uses: dart-lang/setup-dart@v1
|
||||||
with:
|
with:
|
||||||
sdk: 2.14.0
|
sdk: 2.15.0
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: ./.github/actions/run-samples
|
uses: ./.github/actions/run-samples
|
||||||
with:
|
with:
|
||||||
|
|||||||
30
.github/workflows/samples-dotnet-standard.yaml
vendored
Normal file
30
.github/workflows/samples-dotnet-standard.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Samples C# .Net Standard
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/csharp-netcore/**netstandard**/'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/csharp-netcore/**netstandard**/'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-dotnet@v3.0.3
|
||||||
|
with:
|
||||||
|
dotnet-version: 3.1.*
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet test Org.OpenAPITools.sln
|
||||||
9
.github/workflows/samples-dotnet.yaml
vendored
9
.github/workflows/samples-dotnet.yaml
vendored
@@ -4,11 +4,13 @@ on:
|
|||||||
push:
|
push:
|
||||||
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/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/**'
|
||||||
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/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/**'
|
||||||
jobs:
|
jobs:
|
||||||
@@ -22,14 +24,17 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
|
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
- 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
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-dotnet@v2
|
- uses: actions/setup-dotnet@v3.0.3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
|||||||
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 }}
|
||||||
36
.github/workflows/samples-go.yaml
vendored
Normal file
36
.github/workflows/samples-go.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Samples Go
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Go
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/go-echo-server/
|
||||||
|
- samples/server/petstore/go-api-server/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '>=1.17.0'
|
||||||
|
- run: go version
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
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
|
||||||
44
.github/workflows/samples-java-client-echo-api-jdk11.yaml
vendored
Normal file
44
.github/workflows/samples-java-client-echo-api-jdk11.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Java Client (Echo API) JDK11
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/java/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/java/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Client JDK11
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/java/apache-httpclient
|
||||||
|
- samples/client/echo_api/java/native
|
||||||
|
- samples/client/echo_api/java/feign-gson
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- 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: Setup node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
||||||
48
.github/workflows/samples-java-client-echo-api-jdk8.yaml
vendored
Normal file
48
.github/workflows/samples-java-client-echo-api-jdk8.yaml
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
name: Java Client (Echo API) JDK8
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/java/apache-httpclient/**
|
||||||
|
- samples/client/echo_api/java/feign-gson/**
|
||||||
|
- samples/client/echo_api/java/okhttp-gson/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/java/apache-httpclient/**
|
||||||
|
- samples/client/echo_api/java/feign-gson/**
|
||||||
|
- samples/client/echo_api/java/okhttp-gson/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Client JDK8
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/java/apache-httpclient
|
||||||
|
- samples/client/echo_api/java/feign-gson
|
||||||
|
- samples/client/echo_api/java/okhttp-gson
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 8
|
||||||
|
- 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: Setup node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
||||||
22
.github/workflows/samples-java-client-jdk11.yaml
vendored
22
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -3,10 +3,20 @@ name: Samples Java Client JDK11
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java*/**'
|
- 'samples/client/petstore/java/**'
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client/**
|
||||||
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
|
- samples/openapi3/client/petstore/java/native**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java*/**'
|
- 'samples/client/petstore/java/**'
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client/**
|
||||||
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
|
- samples/openapi3/client/petstore/java/native**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK11
|
name: Build Java Client JDK11
|
||||||
@@ -19,6 +29,7 @@ jobs:
|
|||||||
- samples/client/petstore/jaxrs-cxf-client
|
- samples/client/petstore/jaxrs-cxf-client
|
||||||
- samples/client/petstore/java/native
|
- samples/client/petstore/java/native
|
||||||
- samples/client/petstore/java/native-async
|
- samples/client/petstore/java/native-async
|
||||||
|
- samples/client/petstore/java/native-jakarta
|
||||||
- samples/client/petstore/java/retrofit2
|
- samples/client/petstore/java/retrofit2
|
||||||
- samples/client/petstore/java/retrofit2rx2
|
- samples/client/petstore/java/retrofit2rx2
|
||||||
- samples/client/petstore/java/retrofit2rx3
|
- samples/client/petstore/java/retrofit2rx3
|
||||||
@@ -26,7 +37,7 @@ jobs:
|
|||||||
- samples/client/petstore/java/resttemplate
|
- samples/client/petstore/java/resttemplate
|
||||||
- samples/client/petstore/java/resttemplate-withXml
|
- samples/client/petstore/java/resttemplate-withXml
|
||||||
- samples/client/petstore/java/webclient
|
- samples/client/petstore/java/webclient
|
||||||
- samples/client/petstore/java/webclient-nulable-arrays
|
- samples/client/petstore/java/webclient-nullable-arrays
|
||||||
- samples/client/petstore/java/vertx
|
- samples/client/petstore/java/vertx
|
||||||
- samples/client/petstore/java/jersey2-java8-localdatetime
|
- samples/client/petstore/java/jersey2-java8-localdatetime
|
||||||
- samples/client/petstore/java/resteasy
|
- samples/client/petstore/java/resteasy
|
||||||
@@ -38,6 +49,11 @@ jobs:
|
|||||||
- samples/client/petstore/java/apache-httpclient
|
- samples/client/petstore/java/apache-httpclient
|
||||||
- samples/client/petstore/java/feign
|
- samples/client/petstore/java/feign
|
||||||
- samples/client/petstore/java/jersey1
|
- samples/client/petstore/java/jersey1
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
||||||
|
- samples/openapi3/client/petstore/java/native
|
||||||
|
- samples/client/petstore/java/okhttp-gson-swagger1/
|
||||||
|
- samples/client/petstore/java/resttemplate-swagger1/
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
39
.github/workflows/samples-java-client-jdk17.yaml
vendored
Normal file
39
.github/workflows/samples-java-client-jdk17.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Samples Java Client JDK17
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java/resttemplate-jakarta/**
|
||||||
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/java/resttemplate-jakarta/**
|
||||||
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Client JDK17
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/java/resttemplate-jakarta
|
||||||
|
- samples/client/petstore/java/webclient-jakarta
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 17
|
||||||
|
- 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
|
||||||
49
.github/workflows/samples-java-server-jdk8.yaml
vendored
Normal file
49
.github/workflows/samples-java-server-jdk8.yaml
vendored
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
name: Samples Java Server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# java-camel is tested locally for the time being
|
||||||
|
#- 'samples/server/petstore/java-camel/**'
|
||||||
|
- 'samples/server/petstore/java-vertx-web/**'
|
||||||
|
- 'samples/server/petstore/java-inflector/**'
|
||||||
|
- 'samples/server/petstore/java-pkmst/**'
|
||||||
|
- 'samples/server/petstore/java-undertow/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
#- 'samples/server/petstore/java-camel/**'
|
||||||
|
- 'samples/server/petstore/java-vertx-web/**'
|
||||||
|
- 'samples/server/petstore/java-inflector/**'
|
||||||
|
- 'samples/server/petstore/java-pkmst/**'
|
||||||
|
- 'samples/server/petstore/java-undertow/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
#- samples/server/petstore/java-camel/
|
||||||
|
- samples/server/petstore/java-vertx-web/
|
||||||
|
- samples/server/petstore/java-inflector/
|
||||||
|
- samples/server/petstore/java-pkmst/
|
||||||
|
- samples/server/petstore/java-undertow/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 8
|
||||||
|
- 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
|
||||||
28
.github/workflows/samples-jdk17.yaml
vendored
28
.github/workflows/samples-jdk17.yaml
vendored
@@ -3,15 +3,27 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3
|
- samples/openapi3/client/petstore/spring-cloud-3/**
|
||||||
|
- samples/client/petstore/java-helidon-client/mp/**
|
||||||
|
- samples/client/petstore/java-helidon-client/se/**
|
||||||
|
- samples/client/petstore/spring-http-interface-reactive/**
|
||||||
|
- samples/client/petstore/spring-http-interface/**
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3/**
|
||||||
|
- samples/server/petstore/java-helidon-server/mp/**
|
||||||
|
- samples/server/petstore/java-helidon-server/se/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3
|
- samples/openapi3/client/petstore/spring-cloud-3/**
|
||||||
|
- samples/client/petstore/java-helidon-client/mp/**
|
||||||
|
- samples/client/petstore/java-helidon-client/se/**
|
||||||
|
- samples/client/petstore/spring-http-interface-reactive/**
|
||||||
|
- samples/client/petstore/spring-http-interface/**
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3/**
|
||||||
|
- samples/server/petstore/java-helidon-server/mp/**
|
||||||
|
- samples/server/petstore/java-helidon-server/se/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build with JDK17
|
name: Build with JDK17
|
||||||
@@ -22,8 +34,16 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3
|
- samples/openapi3/client/petstore/spring-cloud-3
|
||||||
|
- samples/client/petstore/java-helidon-client/mp
|
||||||
|
- samples/client/petstore/java-helidon-client/se
|
||||||
|
- samples/client/petstore/spring-http-interface-reactive
|
||||||
|
- samples/client/petstore/spring-http-interface
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3
|
||||||
|
- samples/server/petstore/java-helidon-server/mp
|
||||||
|
- samples/server/petstore/java-helidon-server/se
|
||||||
|
- samples/client/petstore/spring-http-interface-reactive
|
||||||
|
- samples/client/petstore/spring-http-interface
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
7
.github/workflows/samples-kotlin-client.yaml
vendored
7
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Samples Kotlin cilent
|
name: Samples Kotlin client
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -51,6 +51,11 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
||||||
- samples/client/petstore/kotlin-jvm-ktor-jackson
|
- samples/client/petstore/kotlin-jvm-ktor-jackson
|
||||||
- samples/client/petstore/kotlin-jvm-ktor-gson
|
- samples/client/petstore/kotlin-jvm-ktor-gson
|
||||||
|
- samples/client/petstore/kotlin-jvm-ktor-gson
|
||||||
|
- samples/client/petstore/kotlin-jvm-vertx-gson
|
||||||
|
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
||||||
|
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
||||||
|
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
|
|||||||
46
.github/workflows/samples-kotlin-server-jdk17.yaml
vendored
Normal file
46
.github/workflows/samples-kotlin-server-jdk17.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
name: Samples Kotlin server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 7.4
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Kotlin server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# server
|
||||||
|
- samples/server/petstore/kotlin-springboot-3
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 17
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Install Gradle wrapper
|
||||||
|
uses: eskatos/gradle-command-action@v2
|
||||||
|
with:
|
||||||
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
|
build-root-directory: ${{ matrix.sample }}
|
||||||
|
arguments: wrapper
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: ./gradlew build -x test
|
||||||
4
.github/workflows/samples-php8.yaml
vendored
4
.github/workflows/samples-php8.yaml
vendored
@@ -3,10 +3,10 @@ name: Samples PHP 8.x
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build PHP projects
|
name: Build PHP projects
|
||||||
|
|||||||
38
.github/workflows/samples-python-nextgen-client-echo-api.yaml
vendored
Normal file
38
.github/workflows/samples-python-nextgen-client-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Python Client (Echo API)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/python-nextgen/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/python-nextgen/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/python-nextgen
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.7'
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r test-requirements.txt
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: python -m pytest
|
||||||
31
.github/workflows/samples-rust.yaml
vendored
Normal file
31
.github/workflows/samples-rust.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Samples Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/rust/**'
|
||||||
|
- 'samples/server/petstore/rust-server/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/rust/**'
|
||||||
|
- 'samples/server/petstore/rust-server/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Rust
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# these folders contain sub-projects of rust clients, servers
|
||||||
|
- samples/client/petstore/rust/
|
||||||
|
- samples/server/petstore/rust-server/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: cargo build
|
||||||
7
.github/workflows/samples-scala.yaml
vendored
7
.github/workflows/samples-scala.yaml
vendored
@@ -1,23 +1,26 @@
|
|||||||
name: Samples Scala
|
name: Samples Scala/sbt
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/scala**'
|
- 'samples/client/petstore/scala**'
|
||||||
- 'samples/server/petstore/scala**'
|
- 'samples/server/petstore/scala**'
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/scala**'
|
- 'samples/client/petstore/scala**'
|
||||||
- 'samples/server/petstore/scala**'
|
- 'samples/server/petstore/scala**'
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson/**'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Scala client, servers
|
name: Build sbt/Scala client, servers
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
|
- 'samples/client/petstore/java/okhttp-gson'
|
||||||
- samples/client/petstore/scalaz
|
- samples/client/petstore/scalaz
|
||||||
#- samples/client/petstore/scala-sttp # won't pass while the same tests in circleci pass
|
#- samples/client/petstore/scala-sttp # won't pass while the same tests in circleci pass
|
||||||
# servers
|
# servers
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -32,6 +32,9 @@ packages/
|
|||||||
**/.vs
|
**/.vs
|
||||||
.factorypath
|
.factorypath
|
||||||
.metals/*
|
.metals/*
|
||||||
|
nbproject/
|
||||||
|
nbactions.xml
|
||||||
|
nb-configuration.xml
|
||||||
|
|
||||||
.settings
|
.settings
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
## customise it to your individual needs - from themes to extensions, you
|
## customise it to your individual needs - from themes to extensions, you
|
||||||
## have full control.
|
## have full control.
|
||||||
##
|
##
|
||||||
## The easiest way to try out Gitpod is install the browser extenion:
|
## The easiest way to try out Gitpod is install the browser extension:
|
||||||
## 'https://www.gitpod.io/docs/browser-extension' or by prefixing
|
## 'https://www.gitpod.io/docs/browser-extension' or by prefixing
|
||||||
## 'https://gitpod.io#' to the source control URL of any project.
|
## 'https://gitpod.io#' to the source control URL of any project.
|
||||||
##
|
##
|
||||||
|
|||||||
99
.travis.yml
99
.travis.yml
@@ -50,15 +50,16 @@ before_install:
|
|||||||
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||||
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge"
|
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) edge"
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
#- sudo apt-get install -qqy --no-install-recommends google-chrome-stable
|
||||||
|
#- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
||||||
- mkdir -vp ~/.docker/cli-plugins/
|
- mkdir -vp ~/.docker/cli-plugins/
|
||||||
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.3.0/buildx-v0.3.0.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
|
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.3.0/buildx-v0.3.0.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
|
||||||
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
||||||
# to run petstore server locally via docker
|
# to run petstore server locally via docker
|
||||||
- echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin || true
|
#- echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin || true
|
||||||
- docker pull swaggerapi/petstore
|
#- docker pull swaggerapi/petstore
|
||||||
- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
#- docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
||||||
- docker ps -a
|
#- docker ps -a
|
||||||
# comment out crystal installation as the tests will run on circleci or github action instead
|
# comment out crystal installation as the tests will run on circleci or github action instead
|
||||||
# install crystal
|
# install crystal
|
||||||
#- echo 'deb http://download.opensuse.org/repositories/devel:/languages:/crystal/xUbuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/devel:languages:crystal.list
|
#- echo 'deb http://download.opensuse.org/repositories/devel:/languages:/crystal/xUbuntu_16.04/ /' | sudo tee /etc/apt/sources.list.d/devel:languages:crystal.list
|
||||||
@@ -69,11 +70,11 @@ before_install:
|
|||||||
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
|
||||||
- export PATH="$HOME/.yarn/bin:$PATH"
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
||||||
# install rust
|
# install rust
|
||||||
- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
#- curl https://sh.rustup.rs -sSf | sh -s -- -y -v
|
||||||
# required when sudo: required for the Ruby petstore tests
|
## required when sudo: required for the Ruby petstore tests
|
||||||
- gem install bundler
|
#- gem install bundler -v 2.3.26
|
||||||
# set python 3.6.3 as default
|
## set python 3.6.3 as default
|
||||||
- source ~/virtualenv/python3.6/bin/activate
|
#- source ~/virtualenv/python3.6/bin/activate
|
||||||
# -- skip bash test to shorten build time
|
# -- skip bash test to shorten build time
|
||||||
# Add bats test framework and cURL for Bash script integration tests
|
# Add bats test framework and cURL for Bash script integration tests
|
||||||
#- sudo add-apt-repository ppa:duggan/bats --yes
|
#- sudo add-apt-repository ppa:duggan/bats --yes
|
||||||
@@ -88,18 +89,18 @@ before_install:
|
|||||||
#- sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
|
#- sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
|
||||||
#- sudo apt-get update
|
#- sudo apt-get update
|
||||||
#- sudo apt-get install dart
|
#- sudo apt-get install dart
|
||||||
# switch to php7
|
# switch to php8
|
||||||
- sudo apt-get install libonig-dev libzip-dev
|
#- sudo apt-get install -f libonig-dev libzip-dev
|
||||||
- git clone https://github.com/php-build/php-build $(phpenv root)/plugins/php-build
|
#- git clone https://github.com/php-build/php-build $(phpenv root)/plugins/php-build
|
||||||
- git clone https://github.com/ngyuki/phpenv-composer.git $(phpenv root)/plugins/phpenv-composer
|
#- git clone https://github.com/ngyuki/phpenv-composer.git $(phpenv root)/plugins/phpenv-composer
|
||||||
- if [ $(ls -A "$HOME/.phpenv/versions/8.1.4" | wc -l) -eq 0 ]; then
|
#- if [ $(ls -A "$HOME/.phpenv/versions/8.1.4" | wc -l) -eq 0 ]; then
|
||||||
phpenv install 8.1.4;
|
# phpenv install 8.1.4;
|
||||||
fi;
|
# fi;
|
||||||
- phpenv rehash
|
#- phpenv rehash
|
||||||
- phpenv versions
|
#- phpenv versions
|
||||||
#- phpenv global 7.2.15
|
##- phpenv global 7.2.15
|
||||||
- phpenv global 8.1.4
|
#- phpenv global 8.1.4
|
||||||
- php -v
|
#- php -v
|
||||||
# comment out below as installation failed in travis
|
# comment out below as installation failed in travis
|
||||||
# Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests.
|
# Add rebar3 build tool and recent Erlang/OTP for Erlang petstore server tests.
|
||||||
# - Travis CI does not support rebar3 [yet](https://github.com/travis-ci/travis-ci/issues/6506#issuecomment-275189490).
|
# - Travis CI does not support rebar3 [yet](https://github.com/travis-ci/travis-ci/issues/6506#issuecomment-275189490).
|
||||||
@@ -107,15 +108,15 @@ before_install:
|
|||||||
# - . ~/otp/18.2.1/activate && erl -version
|
# - . ~/otp/18.2.1/activate && erl -version
|
||||||
#- curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
|
#- curl -f -L -o ./rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x ./rebar3 && ./rebar3 version && export PATH="${TRAVIS_BUILD_DIR}:$PATH"
|
||||||
# install C++ tools
|
# install C++ tools
|
||||||
- sudo apt install -y --no-install-recommends valgrind cmake build-essential
|
#- sudo apt install -y --no-install-recommends valgrind cmake build-essential
|
||||||
- cmake --version
|
#- cmake --version
|
||||||
# install Qt5
|
# install Qt5
|
||||||
#- sudo apt install -y --no-install-recommends qt5-default
|
#- sudo apt install -y --no-install-recommends qt5-default
|
||||||
# install boost
|
# install boost
|
||||||
- sudo apt install -y --no-install-recommends libboost-all-dev
|
#- sudo apt install -y --no-install-recommends libboost-all-dev
|
||||||
# perl dep
|
# perl dep
|
||||||
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
#- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
|
||||||
- cpanm --quiet --no-interactive Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON || echo "Ignored failure from cpanm"
|
#- cpanm --quiet --no-interactive Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON || echo "Ignored failure from cpanm"
|
||||||
# show host table to confirm petstore.swagger.io is mapped to localhost
|
# show host table to confirm petstore.swagger.io is mapped to localhost
|
||||||
- cat /etc/hosts
|
- cat /etc/hosts
|
||||||
# show java version
|
# show java version
|
||||||
@@ -127,8 +128,8 @@ before_install:
|
|||||||
fi;
|
fi;
|
||||||
- pushd .; cd website; yarn install; popd
|
- pushd .; cd website; yarn install; popd
|
||||||
# install Deno
|
# install Deno
|
||||||
- sh -s v1.6.2 < ./CI/deno_install.sh
|
#- sh -s v1.6.2 < ./CI/deno_install.sh
|
||||||
- export PATH="$HOME/.deno/bin:$PATH"
|
#- export PATH="$HOME/.deno/bin:$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Add Godeps dependencies to GOPATH and PATH
|
# Add Godeps dependencies to GOPATH and PATH
|
||||||
@@ -147,20 +148,10 @@ script:
|
|||||||
- set -e
|
- set -e
|
||||||
# show docker buildx version
|
# show docker buildx version
|
||||||
- docker buildx version
|
- docker buildx version
|
||||||
# fail if the template files contains tabs
|
|
||||||
- /bin/bash ./bin/utils/detect_tab_in_templates.sh
|
|
||||||
# fail if the test files have changes
|
|
||||||
- bin/utils/detect_test_file_changes.rb bin/utils/test_file_list.yaml
|
|
||||||
# fail if templates/generators contain carriage return '\r'
|
|
||||||
- /bin/bash ./bin/utils/detect_carriage_return.sh
|
|
||||||
# fail if generators contain merge conflicts
|
|
||||||
- /bin/bash ./bin/utils/detect_merge_conflict.sh
|
|
||||||
# fail if generators contain tab '\t'
|
|
||||||
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
|
|
||||||
# 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
|
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=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:
|
||||||
# push to maven repo
|
# push to maven repo
|
||||||
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
- if [ $SONATYPE_USERNAME ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
@@ -170,8 +161,8 @@ after_success:
|
|||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
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}" publishMavenJavaPublicationToNexusRepository closeAndReleaseRepository --no-daemon;
|
./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 publishPluginMavenPublicationToNexusRepository closeAndReleaseRepository";
|
echo "Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository";
|
||||||
popd;
|
popd;
|
||||||
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
elif [ -z $TRAVIS_TAG ] && [[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]; then
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
echo "Publishing from branch $TRAVIS_BRANCH";
|
||||||
@@ -179,15 +170,15 @@ after_success:
|
|||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToNexusRepository closeAndReleaseRepository --no-daemon;
|
./gradlew -PossrhUsername="${SONATYPE_USERNAME}" -PossrhPassword="${SONATYPE_PASSWORD}" publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository;
|
||||||
echo "Finished ./gradlew publishPluginMavenPublicationToNexusRepository closeAndReleaseRepository";
|
echo "Finished ./gradlew publishPluginMavenPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository";
|
||||||
popd;
|
popd;
|
||||||
fi;
|
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 .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET --no-daemon;
|
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/sec.gpg" publishPlugins -Dgradle.publish.key=$GRADLE_PUBLISH_KEY -Dgradle.publish.secret=$GRADLE_PUBLISH_SECRET;
|
||||||
echo "Finished ./gradlew publishPlugins (plugin portal)";
|
echo "Finished ./gradlew publishPlugins (plugin portal)";
|
||||||
popd;
|
popd;
|
||||||
fi;
|
fi;
|
||||||
@@ -224,15 +215,15 @@ after_success:
|
|||||||
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
|
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
## publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
# publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
|
||||||
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
#- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||||
cd website;
|
# cd website;
|
||||||
git config --global user.name "${GH_NAME}";
|
# git config --global user.name "${GH_NAME}";
|
||||||
git config --global user.email "${GH_EMAIL}";
|
# git config --global user.email "${GH_EMAIL}";
|
||||||
echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
# echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc;
|
||||||
yarn install;
|
# yarn install;
|
||||||
GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
# GIT_USER="${GH_NAME}" yarn run publish-gh-pages;
|
||||||
fi;
|
# fi;
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
- DOCKER_GENERATOR_IMAGE_NAME=openapitools/openapi-generator-online DOCKER_CODEGEN_CLI_IMAGE_NAME=openapitools/openapi-generator-cli NODE_ENV=test CC=gcc-5 CXX=g++-5
|
||||||
|
|||||||
@@ -35,11 +35,11 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
#sudo apt-get -y build-dep libcurl4-gnutls-dev
|
#sudo apt-get -y build-dep libcurl4-gnutls-dev
|
||||||
#sudo apt-get -y install libcurl4-gnutls-dev
|
#sudo apt-get -y install libcurl4-gnutls-dev
|
||||||
|
|
||||||
# Install golang version 1.14
|
# Install golang version 1.18
|
||||||
go version
|
go version
|
||||||
sudo mkdir /usr/local/go1.14
|
sudo mkdir /usr/local/go1.18
|
||||||
wget -c https://dl.google.com/go/go1.14.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.14
|
wget -c https://dl.google.com/go/go1.18.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.18
|
||||||
export PATH="/usr/local/go1.14/go/bin:$PATH"
|
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
||||||
go version
|
go version
|
||||||
|
|
||||||
# run integration tests
|
# run integration tests
|
||||||
@@ -53,9 +53,9 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
#./configure --enable-optimizations
|
#./configure --enable-optimizations
|
||||||
#sudo make altinstall
|
#sudo make altinstall
|
||||||
pyenv install --list
|
pyenv install --list
|
||||||
pyenv install 3.6.3
|
pyenv install 3.7.12
|
||||||
pyenv install 2.7.14
|
pyenv install 2.7.14
|
||||||
pyenv global 3.6.3
|
pyenv global 3.7.12
|
||||||
|
|
||||||
# Install node@stable (for angular 6)
|
# Install node@stable (for angular 6)
|
||||||
set +e
|
set +e
|
||||||
|
|||||||
@@ -52,15 +52,16 @@ Code change should conform to the programming style guide of the respective lang
|
|||||||
- Clojure: https://github.com/bbatsov/clojure-style-guide
|
- Clojure: https://github.com/bbatsov/clojure-style-guide
|
||||||
- Crystal: https://crystal-lang.org/reference/conventions/coding_style.html
|
- Crystal: https://crystal-lang.org/reference/conventions/coding_style.html
|
||||||
- Dart: https://www.dartlang.org/guides/language/effective-dart/style
|
- Dart: https://www.dartlang.org/guides/language/effective-dart/style
|
||||||
- Elixir: https://github.com/christopheradams/elixir_style_guide
|
|
||||||
- Eiffel: https://www.eiffel.org/doc/eiffel/Coding%20Standards
|
- Eiffel: https://www.eiffel.org/doc/eiffel/Coding%20Standards
|
||||||
|
- Elixir: https://github.com/christopheradams/elixir_style_guide
|
||||||
- Erlang: https://github.com/inaka/erlang_guidelines
|
- Erlang: https://github.com/inaka/erlang_guidelines
|
||||||
|
- Go: https://github.com/golang/go/wiki/CodeReviewComments
|
||||||
|
- Groovy: http://groovy-lang.org/style-guide.html
|
||||||
- Haskell: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
|
- Haskell: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
|
||||||
- Java: https://google.github.io/styleguide/javaguide.html
|
- Java: https://google.github.io/styleguide/javaguide.html
|
||||||
- JavaScript: https://github.com/airbnb/javascript/
|
- JavaScript: https://github.com/airbnb/javascript/
|
||||||
|
- Julia: https://docs.julialang.org/en/v1/manual/style-guide/
|
||||||
- Kotlin: https://kotlinlang.org/docs/reference/coding-conventions.html
|
- Kotlin: https://kotlinlang.org/docs/reference/coding-conventions.html
|
||||||
- Groovy: http://groovy-lang.org/style-guide.html
|
|
||||||
- Go: https://github.com/golang/go/wiki/CodeReviewComments
|
|
||||||
- ObjC: https://github.com/NYTimes/objective-c-style-guide
|
- ObjC: https://github.com/NYTimes/objective-c-style-guide
|
||||||
- Perl: http://perldoc.perl.org/perlstyle.html
|
- Perl: http://perldoc.perl.org/perlstyle.html
|
||||||
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md
|
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md
|
||||||
|
|||||||
152
README.md
152
README.md
@@ -3,18 +3,23 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22) [](./LICENSE) [](https://opencollective.com/openapi_generator) [](https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g) [](https://twitter.com/oas_generator) [](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
||||||
|
[](./LICENSE)
|
||||||
|
[](https://opencollective.com/openapi_generator)
|
||||||
|
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g)
|
||||||
|
[](https://twitter.com/oas_generator)
|
||||||
|
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
||||||
|
[](https://conan.io/center/openapi-generator)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`6.1.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`6.4.0`):
|
||||||
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
||||||
[](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)
|
||||||
[](https://github.com/OpenAPITools/openapi-generator/actions?query=workflow%3A%22Check+Supported+Java+Versions%22)
|
|
||||||
|
|
||||||
[7.0.x](https://github.com/OpenAPITools/openapi-generator/tree/7.0.x) (`7.0.x`):
|
[7.0.x](https://github.com/OpenAPITools/openapi-generator/tree/7.0.x) (`7.0.x`):
|
||||||
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
[](https://travis-ci.com/OpenAPITools/openapi-generator)
|
||||||
@@ -57,6 +62,9 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<img src="https://openapi-generator.tech/img/companies/onesignal.png" width="128" height="128">](https://www.onesignal.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/onesignal.png" width="128" height="128">](https://www.onesignal.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/virtualansoftware.png" width="128" height="128">](https://www.virtualansoftware.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/virtualansoftware.png" width="128" height="128">](https://www.virtualansoftware.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/mergedev.jpeg" width="128" height="128">](https://www.merge.dev/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/mergedev.jpeg" width="128" height="128">](https://www.merge.dev/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/burkert.jpg" width="128" height="128">](https://www.burkert.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/finbourne.png" width="128" height="128">](https://www.finbourne.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/bumpsh.png" width="128" height="128">](https://bump.sh/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
|
||||||
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS and Checkly for sponsoring the API monitoring
|
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS and Checkly for sponsoring the API monitoring
|
||||||
|
|
||||||
@@ -68,13 +76,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, 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), **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**, **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) |
|
||||||
| **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/)), **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, 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) |
|
||||||
| **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
|
||||||
|
|
||||||
@@ -113,9 +121,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/) | Feb/Mar 2023 | Major release with breaking changes (no fallback) |
|
||||||
| 6.2.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.2.0-SNAPSHOT/) | 11.11.2022 | Minor release with breaking changes (with 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.1.1 (upcoming patch release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/6.1.1-SNAPSHOT/) | 11.10.2022 | Patch release (enhancements, bug fixes, etc) |
|
| [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) |
|
||||||
| [6.1.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.1.0) (latest stable release) | 11.09.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) |
|
| [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) |
|
||||||
|
|
||||||
@@ -123,6 +130,8 @@ OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
|||||||
|
|
||||||
For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page.
|
For old releases, please refer to the [**Release**](https://github.com/OpenAPITools/openapi-generator/releases) page.
|
||||||
|
|
||||||
|
For decomissioned generators/libraries/frameworks, please refer to [the "Decommission" label](https://github.com/OpenAPITools/openapi-generator/issues?q=label%3ADecommission+is%3Amerged+) in the pull request page.
|
||||||
|
|
||||||
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
## [1.2 - Artifacts on Maven Central](#table-of-contents)
|
||||||
|
|
||||||
You can find our released artifacts on maven central:
|
You can find our released artifacts on maven central:
|
||||||
@@ -173,16 +182,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.1.0/openapi-generator-cli-6.1.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.1.0/openapi-generator-cli-6.1.0.jar -O openapi-generator-cli.jar
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
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.1.0/openapi-generator-cli-6.1.0.jar
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
||||||
@@ -407,7 +416,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.1.0
|
openapi-generator-cli version-manager set 6.3.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -431,7 +440,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.1.0/openapi-generator-cli-6.1.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.3.0/openapi-generator-cli-6.3.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`
|
||||||
@@ -583,6 +592,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Arduino](https://www.arduino.cc/)
|
- [Arduino](https://www.arduino.cc/)
|
||||||
- [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)
|
||||||
- [Banzai Cloud](https://banzaicloud.com)
|
- [Banzai Cloud](https://banzaicloud.com)
|
||||||
- [BIMData.io](https://bimdata.io)
|
- [BIMData.io](https://bimdata.io)
|
||||||
- [Bithost GmbH](https://www.bithost.ch)
|
- [Bithost GmbH](https://www.bithost.ch)
|
||||||
@@ -681,6 +691,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [TribalScale](https://www.tribalscale.com)
|
- [TribalScale](https://www.tribalscale.com)
|
||||||
- [Trifork](https://trifork.com)
|
- [Trifork](https://trifork.com)
|
||||||
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
- [TUI InfoTec GmbH](http://www.tui-infotec.com/)
|
||||||
|
- [Twilio](https://www.twilio.com/)
|
||||||
- [Twitter](https://twitter.com)
|
- [Twitter](https://twitter.com)
|
||||||
- [unblu inc.](https://www.unblu.com/)
|
- [unblu inc.](https://www.unblu.com/)
|
||||||
- [Veamly](https://www.veamly.com/)
|
- [Veamly](https://www.veamly.com/)
|
||||||
@@ -870,9 +881,20 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 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)
|
||||||
- 2022-09-03 - [OpenAPI Generator For Go Web Development](https://blog.kevinhu.me/2022/09/03/03-openapi-generator/) by [Kevin Hu](https://twitter.com/Oldgunix)
|
- 2022-09-03 - [OpenAPI Generator For Go Web Development](https://blog.kevinhu.me/2022/09/03/03-openapi-generator/) by [Kevin Hu](https://twitter.com/Oldgunix)
|
||||||
|
- 2022-10-01 - [OpenAPI Generatorをカスタマイズしたコードを生成する(Swagger Codegenとほぼ同じ)](https://nainaistar.hatenablog.com/entry/2022/10/03/120000) by [きり丸](https://twitter.com/nainaistar)
|
||||||
|
- 2022-10-21 - [Kotlin(Spring Boot)の API を OpenAPI Generator で自動生成](https://zenn.dev/msksgm/articles/20221021-kotlin-spring-openapi-generator) by [msksgm](https://zenn.dev/msksgm)
|
||||||
|
- 2022-10-26 - [Quarkus Insights #106: Quarkiverse Extension Spotlight: OpenApi Generator](https://www.youtube.com/watch?v=_s_if69t2iQ) by [Quarkusio](https://www.youtube.com/c/Quarkusio)
|
||||||
|
- 2022-11-28 - [The REST API implementation flow](https://tmsvr.com/openapi-code-generation-for-rest-apis/) by [Imre Tömösvári](https://tmsvr.com/author/imre/)
|
||||||
|
- 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-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)
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
|
What's the design philosophy or principle behind OpenAPI Generator?
|
||||||
|
|
||||||
|
We focus on developer experience. The generators should produce code, config, documentation, and more that are easily understandable and consumable by users. We focused on simple use cases to start with (bottom-up approach). Since then the project and the community have grown a lot: 300k weekly downloads via NPM CLI wrapper, 20M downloads via openapi-generator-cli docker image just to highlight a few. We've gradually supported more features (e.g. oneOf, anyOf introduced in OpenAPI 3.0) in various generators and we will continue this approach to deliver something based on our understanding of user demand and what they want, and continue to add support of new features introduced in OpenAPI specification (such as v3.1 and future versions of the OpenAPI specification).
|
||||||
|
|
||||||
### [6.1 - OpenAPI Generator Core Team](#table-of-contents)
|
### [6.1 - OpenAPI Generator Core Team](#table-of-contents)
|
||||||
|
|
||||||
OpenAPI Generator core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
|
OpenAPI Generator core team members are contributors who have been making significant contributions (review issues, fix bugs, make enhancements, etc) to the project on a regular basis.
|
||||||
@@ -935,12 +957,15 @@ Here is a list of template creators:
|
|||||||
* Java (Google APIs Client Library): @charlescapps
|
* Java (Google APIs Client Library): @charlescapps
|
||||||
* Java (Rest-assured): @viclovsky
|
* Java (Rest-assured): @viclovsky
|
||||||
* Java (Java 11 Native HTTP client): @bbdouglas
|
* Java (Java 11 Native HTTP client): @bbdouglas
|
||||||
* Java (Apache HttpClient): @harrywhite4
|
* Java (Apache HttpClient 5.x): @harrywhite4 @andrevegas
|
||||||
|
* Java (Helidon): @spericas @tjquinno @tvallin
|
||||||
* Javascript/NodeJS: @jfiala
|
* Javascript/NodeJS: @jfiala
|
||||||
* JavaScript (Apollo DataSource): @erithmetic
|
* JavaScript (Apollo DataSource): @erithmetic
|
||||||
* JavaScript (Closure-annotated Angular) @achew22
|
* JavaScript (Closure-annotated Angular) @achew22
|
||||||
* JavaScript (Flow types) @jaypea
|
* JavaScript (Flow types) @jaypea
|
||||||
|
* Jetbrains HTTP Client : @jlengrand
|
||||||
* JMeter: @davidkiss
|
* JMeter: @davidkiss
|
||||||
|
* Julia: @tanmaykm
|
||||||
* 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
|
||||||
@@ -1003,10 +1028,12 @@ Here is a list of template creators:
|
|||||||
* Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai
|
* Java PKMST: @anshu2185 @sanshuman @rkumar-pk @ninodpillai
|
||||||
* Java Vert.x: @lwlee2608
|
* Java Vert.x: @lwlee2608
|
||||||
* Java Micronaut: @andriy-dmytruk
|
* Java Micronaut: @andriy-dmytruk
|
||||||
|
* Java Helidon: @spericas @tjquinno @tvallin
|
||||||
* JAX-RS RestEasy: @chameleon82
|
* JAX-RS RestEasy: @chameleon82
|
||||||
* JAX-RS CXF: @hiveship
|
* JAX-RS CXF: @hiveship
|
||||||
* JAX-RS CXF (CDI): @nickcmaynard
|
* JAX-RS CXF (CDI): @nickcmaynard
|
||||||
* JAX-RS RestEasy (JBoss EAP): @jfiala
|
* JAX-RS RestEasy (JBoss EAP): @jfiala
|
||||||
|
* Julia: @tanmaykm
|
||||||
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Kotlin: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Kotlin (Spring Boot): @dr4ke616
|
* Kotlin (Spring Boot): @dr4ke616
|
||||||
* Kotlin (Vertx): @Wooyme
|
* Kotlin (Vertx): @Wooyme
|
||||||
@@ -1074,47 +1101,56 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
|
|
||||||
#### Members of Technical Committee
|
#### Members of Technical Committee
|
||||||
|
|
||||||
|
| Languages/Generators | Member (join date) |
|
||||||
|
|:----------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| ActionScript | |
|
||||||
|
| Ada | @stcarrez (2018/02) @michelealbano (2018/02) |
|
||||||
|
| Android | @jaz-ah (2017/09) |
|
||||||
|
| Apex | |
|
||||||
|
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
||||||
|
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) |
|
||||||
|
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) |
|
||||||
|
| C# | @mandrean (2017/08) @frankyjuang (2019/09) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) |
|
||||||
|
| Clojure | |
|
||||||
|
| Crystal | @cyangle (2021/01) |
|
||||||
|
| Dart | @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
|
||||||
|
| Eiffel | @jvelilla (2017/09) |
|
||||||
|
| Elixir | @mrmstn (2018/12) |
|
||||||
|
| Elm | @eriktim (2018/09) |
|
||||||
|
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
||||||
|
| F# | @nmfisher (2019/05) |
|
||||||
|
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) |
|
||||||
|
| GraphQL | @renepardon (2018/12) |
|
||||||
|
| Groovy | |
|
||||||
|
| Haskell | |
|
||||||
|
| Java | @bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) |
|
||||||
|
| Java Spring | @cachescrubber (2022/02) @welshm (2022/02) @MelleD (2022/02) @atextor (2022/02) @manedev79 (2022/02) @javisst (2022/02) @borsch (2022/02) @banlevente (2022/02) @Zomzog (2022/09) |
|
||||||
|
| JMeter | @kannkyo (2021/01) |
|
||||||
|
| Jetbrains HTTP Client | @jlengrand (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) |
|
||||||
|
| Lua | @daurnimator (2017/08) |
|
||||||
|
| Nim | |
|
||||||
|
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
||||||
|
| ObjC | |
|
||||||
|
| OCaml | @cgensoul (2019/08) |
|
||||||
|
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
||||||
|
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
|
||||||
|
| PowerShell | @wing328 (2020/05) |
|
||||||
|
| Python | @spacether (2019/11) [:heart:][spacether sponsorship] @krjakbrjak (2023/02) |
|
||||||
|
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
||||||
|
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
||||||
|
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) @jacob-pro (2022/10) |
|
||||||
|
| 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) |
|
||||||
|
| 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) |
|
||||||
|
|
||||||
|
|
||||||
|
Past Members of Technical Committee:
|
||||||
| Languages/Generators | Member (join date) |
|
| Languages/Generators | Member (join date) |
|
||||||
| :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| :---------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| ActionScript | |
|
| Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) @arun-nalla (2019/11) |
|
||||||
| Ada | @stcarrez (2018/02) @michelealbano (2018/02) |
|
|
||||||
| Android | @jaz-ah (2017/09) |
|
|
||||||
| Apex | |
|
|
||||||
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
|
||||||
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) |
|
|
||||||
| C++ | @ravinikam (2017/07) @stkrwork (2017/07) @etherealjoy (2018/02) @martindelille (2018/03) @muttleyxd (2019/08) |
|
|
||||||
| C# | @mandrean (2017/08) @frankyjuang (2019/09) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) |
|
|
||||||
| Clojure | |
|
|
||||||
| Crystal | @cyangle (2021/01) |
|
|
||||||
| Dart | @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
|
|
||||||
| Eiffel | @jvelilla (2017/09) |
|
|
||||||
| Elixir | @mrmstn (2018/12) |
|
|
||||||
| Elm | @eriktim (2018/09) |
|
|
||||||
| Erlang | @tsloughter (2017/11) @jfacorro (2018/10) @robertoaloi (2018/10) |
|
|
||||||
| F# | @nmfisher (2019/05) |
|
|
||||||
| Go | @antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @jirikuncar (2021/01) @ph4r5h4d (2021/04) |
|
|
||||||
| GraphQL | @renepardon (2018/12) |
|
|
||||||
| Groovy | |
|
|
||||||
| Haskell | |
|
|
||||||
| Java | @bbdouglas (2017/07) @sreeshas (2017/08) @jfiala (2017/08) @lukoyanov (2017/09) @cbornet (2017/09) @jeff9finger (2018/01) @karismann (2019/03) @Zomzog (2019/04) @lwlee2608 (2019/10) |
|
|
||||||
| Java Spring | @cachescrubber (2022/02) @welshm (2022/02) @MelleD (2022/02) @atextor (2022/02) @manedev79 (2022/02) @javisst (2022/02) @borsch (2022/02) @banlevente (2022/02) @Zomzog (2022/09) |
|
|
||||||
| JMeter | @kannkyo (2021/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) |
|
|
||||||
| Lua | @daurnimator (2017/08) |
|
|
||||||
| Nim | |
|
|
||||||
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
|
|
||||||
| ObjC | |
|
|
||||||
| OCaml | @cgensoul (2019/08) |
|
|
||||||
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
|
||||||
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
|
|
||||||
| PowerShell | @wing328 (2020/05) |
|
|
||||||
| Python | @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) @arun-nalla (2019/11) @spacether (2019/11) [:heart:][spacether sponsorship] |
|
|
||||||
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
|
||||||
| Rust | @frol (2017/07) @farcaller (2017/08) @richardwhiuk (2019/07) @paladinzh (2020/05) |
|
|
||||||
| 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) |
|
|
||||||
| 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) |
|
|
||||||
|
|
||||||
:heart: = Link to support the contributor directly
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
|
|||||||
32
appveyor.yml
32
appveyor.yml
@@ -1,5 +1,5 @@
|
|||||||
version: '{branch}-{build}'
|
version: '{branch}-{build}'
|
||||||
image: Visual Studio 2019
|
image: Visual Studio 2022
|
||||||
hosts:
|
hosts:
|
||||||
petstore.swagger.io: 127.0.0.1
|
petstore.swagger.io: 127.0.0.1
|
||||||
install:
|
install:
|
||||||
@@ -15,14 +15,14 @@ install:
|
|||||||
# install gradle
|
# install gradle
|
||||||
- ps: |
|
- ps: |
|
||||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||||
if (!(Test-Path -Path "C:\gradle\gradle-5.6.4" )) {
|
if (!(Test-Path -Path "C:\gradle\gradle-7.6" )) {
|
||||||
(new-object System.Net.WebClient).DownloadFile(
|
(new-object System.Net.WebClient).DownloadFile(
|
||||||
'https://services.gradle.org/distributions/gradle-5.6.4-bin.zip',
|
'https://services.gradle.org/distributions/gradle-7.6-bin.zip',
|
||||||
'C:\gradle-bin.zip'
|
'C:\gradle-bin.zip'
|
||||||
)
|
)
|
||||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\gradle-bin.zip", "C:\gradle")
|
[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-5.6.4\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
|
||||||
@@ -55,16 +55,18 @@ build_script:
|
|||||||
- 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)
|
||||||
|
- 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"
|
||||||
# build C# API client (with PropertyChanged)
|
## build C# API client (with PropertyChanged)
|
||||||
- nuget restore samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\Org.OpenAPITools.sln
|
#- nuget restore samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\Org.OpenAPITools.sln
|
||||||
- msbuild samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
#- msbuild samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||||
# 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"
|
||||||
@@ -84,14 +86,16 @@ test_script:
|
|||||||
- 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)
|
||||||
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net48\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net 5.0)
|
# test C# API client (.net 5.0)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net5.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net5.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API Client using conditional-serialization
|
# test C# API Client using conditional-serialization
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client
|
## test c# API client
|
||||||
- nunit3-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
#- nunit3-console samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
# test c# API client (with PropertyChanged)
|
## test c# API client (with PropertyChanged)
|
||||||
- nunit3-console samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
#- nunit3-console samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
|
|
||||||
### TODO: Execute all generators via powershell or other
|
### TODO: Execute all generators via powershell or other
|
||||||
# generate all petstore clients
|
# generate all petstore clients
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ additionalProperties:
|
|||||||
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}'
|
||||||
aspnetCoreVersion: "6.0"
|
aspnetCoreVersion: "6.0"
|
||||||
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
userSecretsGuid: 'cb87e868-8646-48ef-9bb6-344b537d0d37'
|
||||||
useSeperateModelProject: true
|
useSeparateModelProject: true
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
generatorName: c
|
generatorName: c
|
||||||
outputDir: samples/client/petstore/c
|
outputDir: samples/client/petstore/c
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/C-libcurl
|
templateDir: modules/openapi-generator/src/main/resources/C-libcurl
|
||||||
|
|||||||
@@ -3,5 +3,6 @@ outputDir: samples/client/petstore/cpp-qt
|
|||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/cpp-qt/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/cpp-qt/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/cpp-qt-client
|
templateDir: modules/openapi-generator/src/main/resources/cpp-qt-client
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
packageName: CppQtPetstoreClient
|
||||||
cppNamespace: test_namespace
|
cppNamespace: test_namespace
|
||||||
modelNamePrefix: PFX
|
modelNamePrefix: PFX
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: crystal
|
generatorName: crystal
|
||||||
outputDir: samples/client/petstore/crystal
|
outputDir: samples/client/petstore/crystal
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/crystal/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/crystal
|
templateDir: modules/openapi-generator/src/main/resources/crystal
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
shardVersion: 1.0.0
|
shardVersion: 1.0.0
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# for csharp-netcore generichost
|
||||||
|
generatorName: csharp-netcore
|
||||||
|
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
targetFramework: net7.0
|
||||||
|
nullableReferenceTypes: true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# for csharp-netcore generichost
|
||||||
|
generatorName: csharp-netcore
|
||||||
|
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
targetFramework: net7.0
|
||||||
|
nullableReferenceTypes: true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# for csharp-netcore generichost
|
||||||
|
generatorName: csharp-netcore
|
||||||
|
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
targetFramework: net7.0
|
||||||
|
nullableReferenceTypes: true
|
||||||
@@ -8,5 +8,5 @@ additionalProperties:
|
|||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
targetFramework: net6.0
|
targetFramework: net7.0
|
||||||
nullableReferenceTypes: true
|
nullableReferenceTypes: true
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ additionalProperties:
|
|||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
targetFramework: net6.0
|
targetFramework: net7.0
|
||||||
nullableReferenceTypes: false
|
nullableReferenceTypes: false
|
||||||
|
|||||||
11
bin/configs/csharp-netcore-OpenAPIClient-net48.yaml
Normal file
11
bin/configs/csharp-netcore-OpenAPIClient-net48.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp-netcore
|
||||||
|
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net48
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net48
|
||||||
@@ -8,4 +8,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: net5.0
|
targetFramework: net7.0
|
||||||
|
|||||||
@@ -2,5 +2,6 @@ generatorName: csharp-netcore-functions
|
|||||||
outputDir: samples/client/petstore/csharp-netcore-functions
|
outputDir: samples/client/petstore/csharp-netcore-functions
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore-functions
|
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore-functions
|
||||||
#additionalProperties:
|
additionalProperties:
|
||||||
# packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
userSecretsGuid: "76e9e993-9159-441c-9c5b-fe95e7f4f020"
|
||||||
|
|||||||
8
bin/configs/java-apache-httpclient-echo-api.yaml
Normal file
8
bin/configs/java-apache-httpclient-echo-api.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/echo_api/java/apache-httpclient
|
||||||
|
library: apache-httpclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: echo-api-apache-httpclient
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/apache-httpclient
|
outputDir: samples/client/petstore/java/apache-httpclient
|
||||||
library: apache-httpclient
|
library: apache-httpclient
|
||||||
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/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-apache-httpclient
|
artifactId: petstore-apache-httpclient
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ additionalProperties:
|
|||||||
library: "spring-boot"
|
library: "spring-boot"
|
||||||
withXml: true
|
withXml: true
|
||||||
jackson: true
|
jackson: true
|
||||||
camelUseDefaultValidationtErrorProcessor: true
|
camelUseDefaultValidationErrorProcessor: true
|
||||||
camelRestClientRequestValidation: true
|
camelRestClientRequestValidation: true
|
||||||
camelSecurityDefinitions: true
|
camelSecurityDefinitions: true
|
||||||
|
implicitHeaders: true
|
||||||
|
|||||||
9
bin/configs/java-feign-gson-echo-api.yaml
Normal file
9
bin/configs/java-feign-gson-echo-api.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/echo_api/java/feign-gson
|
||||||
|
library: feign
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
serializationLibrary: gson
|
||||||
|
artifactId: echo-api-feign-json
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
13
bin/configs/java-helidon-client-mp.yaml
Normal file
13
bin/configs/java-helidon-client-mp.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: java-helidon-client
|
||||||
|
library: mp
|
||||||
|
outputDir: samples/client/petstore/java-helidon-client/mp
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-helidon-client-mp
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
configureAuth: "false"
|
||||||
|
build: "all"
|
||||||
|
test: "spock"
|
||||||
|
requiredPropertiesInConstructor: "false"
|
||||||
|
visitable: "true"
|
||||||
|
fullProject: "true"
|
||||||
13
bin/configs/java-helidon-client-se.yaml
Normal file
13
bin/configs/java-helidon-client-se.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: java-helidon-client
|
||||||
|
library: se
|
||||||
|
outputDir: samples/client/petstore/java-helidon-client/se
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-helidon-client-se
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
configureAuth: "false"
|
||||||
|
build: "all"
|
||||||
|
test: "spock"
|
||||||
|
requiredPropertiesInConstructor: "false"
|
||||||
|
visitable: "true"
|
||||||
|
fullProject: "true"
|
||||||
12
bin/configs/java-helidon-server-mp.yaml
Normal file
12
bin/configs/java-helidon-server-mp.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: java-helidon-server
|
||||||
|
library: mp
|
||||||
|
outputDir: samples/server/petstore/java-helidon-server/mp
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/java-helidon/server
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-helidon-server-mp
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
build: "all"
|
||||||
|
test: "spock"
|
||||||
|
useAuth: "false"
|
||||||
|
fullProject: "true"
|
||||||
9
bin/configs/java-helidon-server-se.yaml
Normal file
9
bin/configs/java-helidon-server-se.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java-helidon-server
|
||||||
|
library: se
|
||||||
|
outputDir: samples/server/petstore/java-helidon-server/se
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/java-helidon/server
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-helidon-server-se
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
fullProject: "true"
|
||||||
14
bin/configs/java-jersey2-8-swagger1.yaml
Normal file
14
bin/configs/java-jersey2-8-swagger1.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/openapi3/client/petstore/java/jersey2-java8-swagger1
|
||||||
|
library: jersey2
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-openapi3-jersey2-java8
|
||||||
|
hideGenerationTimestamp: true
|
||||||
|
serverPort: "8082"
|
||||||
|
dateLibrary: java8
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
gradleProperties: "\n# JVM arguments\norg.gradle.jvmargs=-Xmx2024m -XX:MaxPermSize=512m\n# set timeout\norg.gradle.daemon.idletimeout=3600000\n# show all warnings\norg.gradle.warning.mode=all"
|
||||||
|
annotationLibrary: "swagger1"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/native-async
|
outputDir: samples/client/petstore/java/native-async
|
||||||
library: native
|
library: native
|
||||||
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/java/native/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-native
|
artifactId: petstore-native
|
||||||
|
|||||||
8
bin/configs/java-native-echo-api.yaml
Normal file
8
bin/configs/java-native-echo-api.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/echo_api/java/native
|
||||||
|
library: native
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: echo-api-native
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
9
bin/configs/java-native-jakarta.yaml
Normal file
9
bin/configs/java-native-jakarta.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/native-jakarta
|
||||||
|
library: native
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-native-jakarta
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useJakartaEe: "true"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/native
|
outputDir: samples/client/petstore/java/native
|
||||||
library: native
|
library: native
|
||||||
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/java/native/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-native
|
artifactId: petstore-native
|
||||||
|
|||||||
11
bin/configs/java-okhttp-gson-awsv4signature.yaml
Normal file
11
bin/configs/java-okhttp-gson-awsv4signature.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/okhttp-gson-awsv4signature
|
||||||
|
library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: okhttp-gson-awsv4signature
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
withAWSV4Signature: true
|
||||||
8
bin/configs/java-okhttp-gson-echo-api.yaml
Normal file
8
bin/configs/java-okhttp-gson-echo-api.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/echo_api/java/okhttp-gson
|
||||||
|
#library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: echo-api-okhttp-gson
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
12
bin/configs/java-okhttp-gson-swagger1.yaml
Normal file
12
bin/configs/java-okhttp-gson-swagger1.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/okhttp-gson-swagger1
|
||||||
|
library: okhttp-gson
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-okhttp-gson
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useOneOfDiscriminatorLookup: "true"
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
annotationLibrary: "swagger1"
|
||||||
|
|
||||||
10
bin/configs/java-resttemplate-jakarta.yaml
Normal file
10
bin/configs/java-resttemplate-jakarta.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/resttemplate-jakarta
|
||||||
|
library: resttemplate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-resttemplate
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
java8: true
|
||||||
|
useJakartaEe: true
|
||||||
10
bin/configs/java-resttemplate-swagger1.yaml
Normal file
10
bin/configs/java-resttemplate-swagger1.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/resttemplate-swagger1
|
||||||
|
library: resttemplate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-resttemplate
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
annotationLibrary: "swagger1"
|
||||||
|
java8: true
|
||||||
@@ -7,3 +7,4 @@ additionalProperties:
|
|||||||
artifactId: petstore-resttemplate
|
artifactId: petstore-resttemplate
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
java8: true
|
java8: true
|
||||||
|
containerDefaultToNull: true
|
||||||
|
|||||||
9
bin/configs/java-webclient-jakarta.yaml
Normal file
9
bin/configs/java-webclient-jakarta.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/webclient-jakarta
|
||||||
|
library: webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-webclient
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useJakartaEe: true
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
generatorName: java
|
generatorName: java
|
||||||
outputDir: samples/client/petstore/java/webclient-nulable-arrays
|
outputDir: samples/client/petstore/java/webclient-nullable-arrays
|
||||||
library: webclient
|
library: webclient
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/schema-with-nullable-arrays.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/schema-with-nullable-arrays.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ templateDir: modules/openapi-generator/src/main/resources/Java
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: petstore-webclient
|
artifactId: petstore-webclient
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
containerDefaultToNull: "true"
|
||||||
|
|||||||
11
bin/configs/jaxrs-spec-jakarta.yaml
Normal file
11
bin/configs/jaxrs-spec-jakarta.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-jakarta
|
||||||
|
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-jakarta
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
|
useJakartaEe: "true"
|
||||||
6
bin/configs/jetbrains-http-client-petstore-new.yaml
Normal file
6
bin/configs/jetbrains-http-client-petstore-new.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: jetbrains-http-client
|
||||||
|
outputDir: samples/client/petstore/jetbrains/http/client
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
7
bin/configs/julia-client-petstore-new.yaml
Normal file
7
bin/configs/julia-client-petstore-new.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: julia-client
|
||||||
|
outputDir: samples/client/petstore/julia
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/julia-client
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: PetStoreClient
|
||||||
7
bin/configs/julia-server-petstore-new.yaml
Normal file
7
bin/configs/julia-server-petstore-new.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: julia-server
|
||||||
|
outputDir: samples/server/petstore/julia
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/julia-server
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: PetStoreServer
|
||||||
8
bin/configs/kotlin-jvm-vertx-gson.yaml
Normal file
8
bin/configs/kotlin-jvm-vertx-gson.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-vertx-gson
|
||||||
|
library: jvm-vertx
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-jvm-vertx
|
||||||
|
serializationLibrary: "gson"
|
||||||
9
bin/configs/kotlin-jvm-vertx-jackson-coroutines.yaml
Normal file
9
bin/configs/kotlin-jvm-vertx-jackson-coroutines.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
||||||
|
library: jvm-vertx
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-jvm-vertx
|
||||||
|
serializationLibrary: "jackson"
|
||||||
|
useCoroutines: "true"
|
||||||
8
bin/configs/kotlin-jvm-vertx-jackson.yaml
Normal file
8
bin/configs/kotlin-jvm-vertx-jackson.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-vertx-jackson
|
||||||
|
library: jvm-vertx
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-jvm-vertx
|
||||||
|
serializationLibrary: "jackson"
|
||||||
8
bin/configs/kotlin-jvm-vertx-moshi.yaml
Normal file
8
bin/configs/kotlin-jvm-vertx-moshi.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-jvm-vertx-moshi
|
||||||
|
library: jvm-vertx
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-jvm-vertx
|
||||||
|
serializationLibrary: "moshi"
|
||||||
13
bin/configs/kotlin-spring-boot-3.yaml
Normal file
13
bin/configs/kotlin-spring-boot-3.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-3
|
||||||
|
library: spring-boot
|
||||||
|
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"
|
||||||
|
serviceImplementation: "true"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
useSpringBoot3: "true"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: php-symfony
|
generatorName: php-symfony
|
||||||
outputDir: samples/server/petstore/php-symfony/SymfonyBundle-php
|
outputDir: samples/server/petstore/php-symfony/SymfonyBundle-php
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/php-symfony/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/php-symfony
|
templateDir: modules/openapi-generator/src/main/resources/php-symfony
|
||||||
gitUserId: openapitools
|
gitUserId: openapitools
|
||||||
gitRepoId: petstore
|
gitRepoId: petstore
|
||||||
|
|||||||
8
bin/configs/python-nextgen-aiohttp.yaml
Normal file
8
bin/configs/python-nextgen-aiohttp.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
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
|
||||||
7
bin/configs/python-nextgen-echo-api.yaml
Normal file
7
bin/configs/python-nextgen-echo-api.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
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
|
||||||
8
bin/configs/python-nextgen.yaml
Normal file
8
bin/configs/python-nextgen.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
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
|
||||||
11
bin/configs/rust-reqwest-petstore-async-middleware.yaml
Normal file
11
bin/configs/rust-reqwest-petstore-async-middleware.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/petstore/rust/reqwest/petstore-async-middleware
|
||||||
|
library: reqwest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: true
|
||||||
|
supportMiddleware: true
|
||||||
|
supportMultipleResponses: true
|
||||||
|
packageName: petstore-reqwest-async-middleware
|
||||||
|
useSingleRequestParameter: true
|
||||||
@@ -8,3 +8,4 @@ additionalProperties:
|
|||||||
artifactId: springboot
|
artifactId: springboot
|
||||||
snapshotVersion: "true"
|
snapshotVersion: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
requestMappingMode: api_interface
|
||||||
|
|||||||
@@ -7,3 +7,5 @@ additionalProperties:
|
|||||||
artifactId: springboot
|
artifactId: springboot
|
||||||
snapshotVersion: "true"
|
snapshotVersion: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
camelCaseDollarSign: "true"
|
||||||
|
modelNameSuffix: 'Dto'
|
||||||
|
|||||||
11
bin/configs/spring-http-interface-reactive.yaml
Normal file
11
bin/configs/spring-http-interface-reactive.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: spring
|
||||||
|
library: spring-http-interface
|
||||||
|
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
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: spring-http-interface-reactive
|
||||||
|
snapshotVersion: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
reactive: "true"
|
||||||
|
|
||||||
10
bin/configs/spring-http-interface.yaml
Normal file
10
bin/configs/spring-http-interface.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: spring
|
||||||
|
library: 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
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: spring-http-interface
|
||||||
|
snapshotVersion: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
modelNameSuffix: 'Dto'
|
||||||
@@ -4,6 +4,7 @@ library: alamofire
|
|||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/swift5
|
templateDir: modules/openapi-generator/src/main/resources/swift5
|
||||||
generateAliasAsModel: true
|
generateAliasAsModel: true
|
||||||
|
useCustomDateWithoutTime: true
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
podAuthors: ""
|
podAuthors: ""
|
||||||
podSummary: PetstoreClient
|
podSummary: PetstoreClient
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: swift5
|
generatorName: swift5
|
||||||
outputDir: samples/client/petstore/swift5/deprecated
|
outputDir: samples/client/petstore/swift5/deprecated
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-deprecated-fields.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/swift5
|
templateDir: modules/openapi-generator/src/main/resources/swift5
|
||||||
generateAliasAsModel: true
|
generateAliasAsModel: true
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
|||||||
10
bin/configs/swift5-validation.yaml
Normal file
10
bin/configs/swift5-validation.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: swift5
|
||||||
|
outputDir: samples/client/petstore/swift5/validation
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/validation.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/swift5
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
podAuthors: ""
|
||||||
|
podSummary: PetstoreClient
|
||||||
|
projectName: PetstoreClient
|
||||||
|
podHomepage: https://github.com/openapitools/openapi-generator
|
||||||
7
bin/configs/typescript-angular-v15-provided-in-root.yaml
Normal file
7
bin/configs/typescript-angular-v15-provided-in-root.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: typescript-angular
|
||||||
|
outputDir: samples/client/petstore/typescript-angular-v15-provided-in-root/builds/default
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
|
||||||
|
additionalProperties:
|
||||||
|
ngVersion: 15.0.3
|
||||||
|
supportsES6: true
|
||||||
4
bin/configs/typescript-fetch-allOf-nullable.yaml
Normal file
4
bin/configs/typescript-fetch-allOf-nullable.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
generatorName: typescript-fetch
|
||||||
|
outputDir: samples/client/petstore/typescript-fetch/builds/allOf-nullable
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf-nullable.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/typescript-fetch
|
||||||
4
bin/configs/typescript-rxjs-allOf-composition.yaml
Normal file
4
bin/configs/typescript-rxjs-allOf-composition.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
generatorName: typescript-rxjs
|
||||||
|
outputDir: samples/client/others/typescript-rxjs/allOf-composition
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf_composition.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/typescript-rxjs
|
||||||
@@ -6,11 +6,11 @@
|
|||||||
## declare an array of folders
|
## declare an array of folders
|
||||||
declare -a samples=("modules/openapi-generator/src/main/resources/kotlin-server"
|
declare -a samples=("modules/openapi-generator/src/main/resources/kotlin-server"
|
||||||
"modules/openapi-generator/src/main/resources/kotlin-spring"
|
"modules/openapi-generator/src/main/resources/kotlin-spring"
|
||||||
"modules/openapi-generator/src/main/resources/dart-dio"
|
|
||||||
"modules/openapi-generator/src/main/resources/dart"
|
"modules/openapi-generator/src/main/resources/dart"
|
||||||
"modules/openapi-generator/src/main/resources/dart2"
|
"modules/openapi-generator/src/main/resources/dart2"
|
||||||
"modules/openapi-generator/src/main/resources/aspnetcore"
|
"modules/openapi-generator/src/main/resources/aspnetcore"
|
||||||
"modules/openapi-generator/src/main/resources/powershell"
|
"modules/openapi-generator/src/main/resources/powershell"
|
||||||
|
"modules/openapi-generator/src/main/resources/r"
|
||||||
)
|
)
|
||||||
|
|
||||||
## now loop through the above array
|
## now loop through the above array
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
---
|
---
|
||||||
# csharp-netcore test files and image for upload
|
# csharp-netcore test files and image for upload
|
||||||
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs"
|
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs"
|
||||||
sha256: 64024927bc08a520ff11ba7083f83be960909a19ef273f63c1eaaef1cc6f34a2
|
sha256: 054adb6efaff70f492e471cb3e4d628d22cda814906808fd3fcce36ce710b7ee
|
||||||
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/PetApiTests.cs"
|
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Api/PetApiTests.cs"
|
||||||
sha256: dae985015ba461297927d544a78267f2def35e07c3f14ca66468fd61e1fd1c26
|
sha256: ff6a5fccd4c026d85fe7232911cda445f5065dcefd03abe258e19af5b28d05c5
|
||||||
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/linux-logo.png"
|
- filename: "samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/linux-logo.png"
|
||||||
sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230
|
sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230
|
||||||
|
# java okhttp gson test files
|
||||||
|
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
|
||||||
|
sha256: db505f7801fef62c13a08a8e9ca1fc4c5c947ab46b46f12943139d353feacf17
|
||||||
|
|||||||
13
bitrise.yml
13
bitrise.yml
@@ -10,18 +10,18 @@ trigger_map:
|
|||||||
workflows:
|
workflows:
|
||||||
primary:
|
primary:
|
||||||
steps:
|
steps:
|
||||||
- git-clone@4.0.17: {}
|
- git-clone@6.2.1: {}
|
||||||
- brew-install@0.11.0:
|
- brew-install@0.12.1:
|
||||||
inputs:
|
inputs:
|
||||||
- packages: maven
|
- packages: maven
|
||||||
- script@1.1.6:
|
- script@1.2.0:
|
||||||
title: Install Cocoapods
|
title: Install Cocoapods
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
sudo gem install cocoapods
|
sudo gem install cocoapods
|
||||||
- script@1.1.6:
|
- script@1.2.0:
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
@@ -30,7 +30,7 @@ workflows:
|
|||||||
|
|
||||||
mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
title: Build openapi-generator
|
title: Build openapi-generator
|
||||||
- script@1.1.6:
|
- script@1.2.0:
|
||||||
title: Run Swift5 tests
|
title: Run Swift5 tests
|
||||||
inputs:
|
inputs:
|
||||||
- content: |
|
- content: |
|
||||||
@@ -40,3 +40,6 @@ workflows:
|
|||||||
|
|
||||||
./samples/client/petstore/swift5/swift5_test_all.sh
|
./samples/client/petstore/swift5/swift5_test_all.sh
|
||||||
|
|
||||||
|
meta:
|
||||||
|
bitrise.io:
|
||||||
|
stack: osx-xcode-14.1.x
|
||||||
|
|||||||
@@ -56,15 +56,16 @@ Code change should conform to the programming style guide of the respective lang
|
|||||||
- Clojure: https://github.com/bbatsov/clojure-style-guide
|
- Clojure: https://github.com/bbatsov/clojure-style-guide
|
||||||
- Crystal: https://crystal-lang.org/reference/conventions/coding_style.html
|
- Crystal: https://crystal-lang.org/reference/conventions/coding_style.html
|
||||||
- Dart: https://www.dartlang.org/guides/language/effective-dart/style
|
- Dart: https://www.dartlang.org/guides/language/effective-dart/style
|
||||||
- Elixir: https://github.com/christopheradams/elixir_style_guide
|
|
||||||
- Eiffel: https://www.eiffel.org/doc/eiffel/Coding%20Standards
|
- Eiffel: https://www.eiffel.org/doc/eiffel/Coding%20Standards
|
||||||
|
- Elixir: https://github.com/christopheradams/elixir_style_guide
|
||||||
- Erlang: https://github.com/inaka/erlang_guidelines
|
- Erlang: https://github.com/inaka/erlang_guidelines
|
||||||
|
- Go: https://github.com/golang/go/wiki/CodeReviewComments
|
||||||
|
- Groovy: http://groovy-lang.org/style-guide.html
|
||||||
- Haskell: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
|
- Haskell: https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md
|
||||||
- Java: https://google.github.io/styleguide/javaguide.html
|
- Java: https://google.github.io/styleguide/javaguide.html
|
||||||
- JavaScript: https://github.com/airbnb/javascript/
|
- JavaScript: https://github.com/airbnb/javascript/
|
||||||
|
- Julia: https://docs.julialang.org/en/v1/manual/style-guide/
|
||||||
- Kotlin: https://kotlinlang.org/docs/reference/coding-conventions.html
|
- Kotlin: https://kotlinlang.org/docs/reference/coding-conventions.html
|
||||||
- Groovy: http://groovy-lang.org/style-guide.html
|
|
||||||
- Go: https://github.com/golang/go/wiki/CodeReviewComments
|
|
||||||
- ObjC: https://github.com/NYTimes/objective-c-style-guide
|
- ObjC: https://github.com/NYTimes/objective-c-style-guide
|
||||||
- Perl: http://perldoc.perl.org/perlstyle.html
|
- Perl: http://perldoc.perl.org/perlstyle.html
|
||||||
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md
|
- PHP: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-12-extended-coding-style-guide.md
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ The above configuration will do the following:
|
|||||||
* Compile a user-provided `my_custom_templates/api_interfaces.mustache` following our usual API template compilation logic. That is, one file will be created per API; APIs are generated defined according to tags in your spec documentation. The destination filename of `Interface.kt` will act as a suffix for the filename. So, a tag of `Equipment` will output a corresponding `EquipmentInterface.kt`.
|
* Compile a user-provided `my_custom_templates/api_interfaces.mustache` following our usual API template compilation logic. That is, one file will be created per API; APIs are generated defined according to tags in your spec documentation. The destination filename of `Interface.kt` will act as a suffix for the filename. So, a tag of `Equipment` will output a corresponding `EquipmentInterface.kt`.
|
||||||
* Because `api.mustache` is the same mustache filename as used in your target generator (`kotlin` in this example), we support the following:
|
* Because `api.mustache` is the same mustache filename as used in your target generator (`kotlin` in this example), we support the following:
|
||||||
- The destination filename provides a suffix for the generated output. APIs generate per tag in your specification. So, a tag of `Equipment` will output a corresponding `EquipmentImpl.kt`. This option will be used whether `api.mustache` targets a user customized template or a built-in template.
|
- The destination filename provides a suffix for the generated output. APIs generate per tag in your specification. So, a tag of `Equipment` will output a corresponding `EquipmentImpl.kt`. This option will be used whether `api.mustache` targets a user customized template or a built-in template.
|
||||||
- The built-in template will be used if you haven't provided an customized template. The kotlin generator defines the suffix as simply `.kt`, so this scenario would modify only the generated file suffixes according to the previous bullet point.
|
- The built-in template will be used if you haven't provided a customized template. The kotlin generator defines the suffix as simply `.kt`, so this scenario would modify only the generated file suffixes according to the previous bullet point.
|
||||||
- Your `api.mustache` will be used if it exists in your custom template directory. For generators with library options, such as `jvm-okhttp3` in the kotlin generator, your file must exist in the same relative location as the embedded template. For kotlin using the `jvm-okhttp3` library option, this file would need to be located at `my_custom_templates/libraries/jvm-okhttp/api.mustache`. See [templating](./templating.md) for more details.
|
- Your `api.mustache` will be used if it exists in your custom template directory. For generators with library options, such as `jvm-okhttp3` in the kotlin generator, your file must exist in the same relative location as the embedded template. For kotlin using the `jvm-okhttp3` library option, this file would need to be located at `my_custom_templates/libraries/jvm-okhttp/api.mustache`. See [templating](./templating.md) for more details.
|
||||||
* Compile `my_custom_templates/other/check.mustache` with the supporting files bundle, and output to `scripts/check.sh` in your output directory. Note that we don't currently support setting file flags on output, so scripts such as these will either have to be sourced rather than executed, or have file flags set separately after generation (external to our tooling).
|
* Compile `my_custom_templates/other/check.mustache` with the supporting files bundle, and output to `scripts/check.sh` in your output directory. Note that we don't currently support setting file flags on output, so scripts such as these will either have to be sourced rather than executed, or have file flags set separately after generation (external to our tooling).
|
||||||
|
|
||||||
@@ -169,7 +169,7 @@ If you publish your artifact to a distant maven repository, do not forget to add
|
|||||||
|
|
||||||
You may not want to generate *all* models in your project. Likewise, you may want just one or two apis to be written. If that's the case, you can use system properties or [global properties](./global-properties.md) to control the output.
|
You may not want to generate *all* models in your project. Likewise, you may want just one or two apis to be written. If that's the case, you can use system properties or [global properties](./global-properties.md) to control the output.
|
||||||
|
|
||||||
The default is generate *everything* supported by the specific library. Once you enable a feature, it will restrict the contents generated:
|
The default is to generate *everything* supported by the specific library. Once you enable a feature, it will restrict the contents generated:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# generate only models
|
# generate only models
|
||||||
@@ -397,7 +397,7 @@ or
|
|||||||
|
|
||||||
## Schema Mapping
|
## Schema Mapping
|
||||||
|
|
||||||
One can map the schema to someting else (e.g. external objects/models outside of the package) using the `schemaMappings` option, e.g. in CLI
|
One can map the schema to something else (e.g. external objects/models outside of the package) using the `schemaMappings` option, e.g. in CLI
|
||||||
```sh
|
```sh
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/type-alias.yaml -o /tmp/java2/ --schema-mapping TypeAlias=foo.bar.TypeAlias
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/type-alias.yaml -o /tmp/java2/ --schema-mapping TypeAlias=foo.bar.TypeAlias
|
||||||
```
|
```
|
||||||
@@ -430,15 +430,78 @@ paths:
|
|||||||
|
|
||||||
## Inline Schema Naming
|
## Inline Schema Naming
|
||||||
|
|
||||||
Inline schemas are created as separate schemas automatically and the auto-generated schema name may not look good to everyone. One can customize the name using the `title` field or the `inlineSchemaNameMapping` option, e.g. in CLI
|
Inline schemas are created as separate schemas automatically and the auto-generated schema name may not look good to everyone. One can customize the name using the `title` field or the `inlineSchemaNameMapping` option. For exmaple, run the following,
|
||||||
|
|
||||||
```
|
```
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/inline_model_resolver.yaml -o /tmp/java3/ --skip-validate-spec --inline-schema-name-mappings inline_object_2=SomethingMapped,inline_object_4=nothing_new
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/inline_model_resolver.yaml -o /tmp/java3/ --skip-validate-spec --inline-schema-name-mappings inline_object_2=SomethingMapped,inline_object_4=nothing_new
|
||||||
```
|
```
|
||||||
|
will show the following in the console:
|
||||||
|
```
|
||||||
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as arbitraryObjectRequestBodyProperty_request. To have complete control of the model name, set the `title` field or use the inlineSchemaNameMapping option (--inline-schema-name-mappings in CLI).
|
||||||
|
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as meta_200_response. To have complete control of the model name, set the `title` field or use the inlineSchemaNameMapping option (--inline-schema-name-mappings in CLI).
|
||||||
|
```
|
||||||
|
For example, to name the inline schema `meta_200_response` as `MetaObject`, use the `--inline-schema-name-mappings` option as follows:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/inline_model_resolver.yaml -o /tmp/java3/ --skip-validate-spec --inline-schema-name-mappings meta_200_response=MetaObject,arbitraryObjectRequestBodyProperty_request=ArbitraryRequest
|
||||||
|
```
|
||||||
|
|
||||||
Another useful option is `inlineSchemaNameDefaults`, which allows you to customize the suffix of the auto-generated inline schema name, e.g. in CLI
|
Another useful option is `inlineSchemaNameDefaults`, which allows you to customize the suffix of the auto-generated inline schema name, e.g. in CLI
|
||||||
```
|
```
|
||||||
--inline-schema-name-defaults arrayItemSuffix=_array_item
|
--inline-schema-name-defaults arrayItemSuffix=_array_item,mapItemSuffix=_map_item
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: Only arrayItemSuffix, mapItemSuffix are supported at the moment.
|
Note: Only arrayItemSuffix, mapItemSuffix are supported at the moment. `SKIP_SCHEMA_REUSE=true` is a special value to skip reusing inline schemas.
|
||||||
|
|
||||||
|
## OpenAPI Normalizer
|
||||||
|
|
||||||
|
OpenAPI Normalizer (off by default) transforms the input OpenAPI doc/spec (which may not perfectly conform to the specification) to make it workable with OpenAPI Generator. Here is a list of rules supported:
|
||||||
|
|
||||||
|
- `REF_AS_PARENT_IN_ALLOF`: when set to `true`, child schemas in `allOf` is considered a parent if it's a `$ref` (instead of inline schema).
|
||||||
|
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/allOf_extension_parent.yaml -o /tmp/java-okhttp/ --openapi-normalizer REF_AS_PARENT_IN_ALLOF=true
|
||||||
|
```
|
||||||
|
|
||||||
|
- `REMOVE_ANYOF_ONEOF_AND_KEEP_PROPERTIES_ONLY`: when set to `true`, oneOf/anyOf schema with only required properies only in a schema with properties will be removed. [(example)](modules/openapi-generator/src/test/resources/3_0/removeAnyOfOneOfAndKeepPropertiesOnly_test.yaml)
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/removeAnyOfOneOfAndKeepPropertiesOnly_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer REMOVE_ANYOF_ONEOF_AND_KEEP_PROPERTIES_ONLY=true
|
||||||
|
```
|
||||||
|
|
||||||
|
- `SIMPLIFY_ANYOF_STRING_AND_ENUM_STRING`: when set to `true`, simplify anyOf schema with string and enum of string to just `string`
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/simplifyAnyOfStringAndEnumString_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer SIMPLIFY_ANYOF_STRING_AND_ENUM_STRING=true
|
||||||
|
```
|
||||||
|
|
||||||
|
- `SIMPLIFY_BOOLEAN_ENUM`: when set to `true`, convert boolean enum to just enum.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/simplifyBooleanEnum_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer SIMPLIFY_BOOLEAN_ENUM=true
|
||||||
|
```
|
||||||
|
|
||||||
|
- `SIMPLIFY_ONEOF_ANYOF`: when set to `true`, simplify oneOf/anyOf by 1) removing null (sub-schema) and setting nullable to true instead, and 2) simplifying oneOf/anyOf with a single sub-schema to just the sub-schema itself.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/simplifyOneOfAnyOf_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer SIMPLIFY_ONEOF_ANYOF=true
|
||||||
|
```
|
||||||
|
|
||||||
|
- `KEEP_ONLY_FIRST_TAG_IN_OPERATION`: when set to `true`, only keep the first tag in operation if there are more than one tag defined.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/enableKeepOnlyFirstTagInOperation_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer KEEP_ONLY_FIRST_TAG_IN_OPERATION=true
|
||||||
|
```
|
||||||
|
|
||||||
|
- `SET_TAGS_FOR_ALL_OPERATIONS`: when set to a string value, tags in all operatinos will reset to the string value provided.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/enableKeepOnlyFirstTagInOperation_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=true
|
||||||
|
```
|
||||||
|
|||||||
@@ -32,13 +32,16 @@ The following generators are available:
|
|||||||
* [groovy](generators/groovy.md)
|
* [groovy](generators/groovy.md)
|
||||||
* [haskell-http-client](generators/haskell-http-client.md)
|
* [haskell-http-client](generators/haskell-http-client.md)
|
||||||
* [java](generators/java.md)
|
* [java](generators/java.md)
|
||||||
|
* [java-helidon-client (beta)](generators/java-helidon-client.md)
|
||||||
* [java-micronaut-client (beta)](generators/java-micronaut-client.md)
|
* [java-micronaut-client (beta)](generators/java-micronaut-client.md)
|
||||||
* [javascript](generators/javascript.md)
|
* [javascript](generators/javascript.md)
|
||||||
* [javascript-apollo-deprecated (deprecated)](generators/javascript-apollo-deprecated.md)
|
* [javascript-apollo-deprecated (deprecated)](generators/javascript-apollo-deprecated.md)
|
||||||
* [javascript-closure-angular](generators/javascript-closure-angular.md)
|
* [javascript-closure-angular](generators/javascript-closure-angular.md)
|
||||||
* [javascript-flowtyped](generators/javascript-flowtyped.md)
|
* [javascript-flowtyped](generators/javascript-flowtyped.md)
|
||||||
* [jaxrs-cxf-client](generators/jaxrs-cxf-client.md)
|
* [jaxrs-cxf-client](generators/jaxrs-cxf-client.md)
|
||||||
|
* [jetbrains-http-client (experimental)](generators/jetbrains-http-client.md)
|
||||||
* [jmeter](generators/jmeter.md)
|
* [jmeter](generators/jmeter.md)
|
||||||
|
* [julia-client (beta)](generators/julia-client.md)
|
||||||
* [k6 (beta)](generators/k6.md)
|
* [k6 (beta)](generators/k6.md)
|
||||||
* [kotlin](generators/kotlin.md)
|
* [kotlin](generators/kotlin.md)
|
||||||
* [lua (beta)](generators/lua.md)
|
* [lua (beta)](generators/lua.md)
|
||||||
@@ -51,6 +54,7 @@ The following generators are available:
|
|||||||
* [powershell (beta)](generators/powershell.md)
|
* [powershell (beta)](generators/powershell.md)
|
||||||
* [python](generators/python.md)
|
* [python](generators/python.md)
|
||||||
* [python-legacy](generators/python-legacy.md)
|
* [python-legacy](generators/python-legacy.md)
|
||||||
|
* [python-nextgen (beta)](generators/python-nextgen.md)
|
||||||
* [python-prior](generators/python-prior.md)
|
* [python-prior](generators/python-prior.md)
|
||||||
* [r](generators/r.md)
|
* [r](generators/r.md)
|
||||||
* [ruby](generators/ruby.md)
|
* [ruby](generators/ruby.md)
|
||||||
@@ -92,6 +96,7 @@ The following generators are available:
|
|||||||
* [haskell](generators/haskell.md)
|
* [haskell](generators/haskell.md)
|
||||||
* [haskell-yesod (beta)](generators/haskell-yesod.md)
|
* [haskell-yesod (beta)](generators/haskell-yesod.md)
|
||||||
* [java-camel](generators/java-camel.md)
|
* [java-camel](generators/java-camel.md)
|
||||||
|
* [java-helidon-server (beta)](generators/java-helidon-server.md)
|
||||||
* [java-inflector](generators/java-inflector.md)
|
* [java-inflector](generators/java-inflector.md)
|
||||||
* [java-micronaut-server (beta)](generators/java-micronaut-server.md)
|
* [java-micronaut-server (beta)](generators/java-micronaut-server.md)
|
||||||
* [java-msf4j](generators/java-msf4j.md)
|
* [java-msf4j](generators/java-msf4j.md)
|
||||||
@@ -107,6 +112,7 @@ The following generators are available:
|
|||||||
* [jaxrs-resteasy](generators/jaxrs-resteasy.md)
|
* [jaxrs-resteasy](generators/jaxrs-resteasy.md)
|
||||||
* [jaxrs-resteasy-eap](generators/jaxrs-resteasy-eap.md)
|
* [jaxrs-resteasy-eap](generators/jaxrs-resteasy-eap.md)
|
||||||
* [jaxrs-spec](generators/jaxrs-spec.md)
|
* [jaxrs-spec](generators/jaxrs-spec.md)
|
||||||
|
* [julia-server (beta)](generators/julia-server.md)
|
||||||
* [kotlin-server](generators/kotlin-server.md)
|
* [kotlin-server](generators/kotlin-server.md)
|
||||||
* [kotlin-spring](generators/kotlin-spring.md)
|
* [kotlin-spring](generators/kotlin-spring.md)
|
||||||
* [kotlin-vertx (beta)](generators/kotlin-vertx.md)
|
* [kotlin-vertx (beta)](generators/kotlin-vertx.md)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|useDefaultRouting|Use default routing for the ASP.NET Core version.| |true|
|
|useDefaultRouting|Use default routing for the ASP.NET Core version.| |true|
|
||||||
|useFrameworkReference|Use frameworkReference for ASP.NET Core 3.0+ and PackageReference ASP.NET Core 2.2 or earlier.| |false|
|
|useFrameworkReference|Use frameworkReference for ASP.NET Core 3.0+ and PackageReference ASP.NET Core 2.2 or earlier.| |false|
|
||||||
|useNewtonsoft|Uses the Newtonsoft JSON library.| |true|
|
|useNewtonsoft|Uses the Newtonsoft JSON library.| |true|
|
||||||
|useSeperateModelProject|Create a seperate project for models| |false|
|
|useSeparateModelProject|Create a separate project for models| |false|
|
||||||
|useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |true|
|
|useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |true|
|
||||||
|
|
||||||
## IMPORT MAPPING
|
## IMPORT MAPPING
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
||||||
|modelNamePrefix|Prefix that will be prepended to all model names.| |OAI|
|
|modelNamePrefix|Prefix that will be prepended to all model names.| |OAI|
|
||||||
|optionalProjectFile|Generate client.pri.| |true|
|
|optionalProjectFile|Generate client.pri.| |true|
|
||||||
|
|packageName|C++ package (library) name.| |QtOpenAPIClient|
|
||||||
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
||||||
|reservedWordPrefix|Prefix to prepend to reserved words in order to avoid conflicts| |r_|
|
|reservedWordPrefix|Prefix to prepend to reserved words in order to avoid conflicts| |r_|
|
||||||
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
|sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|
||||||
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|
|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|
|
||||||
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
|legacyDiscriminatorBehavior|Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).|<dl><dt>**true**</dt><dd>The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.</dd><dt>**false**</dt><dd>The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.</dd></dl>|true|
|
||||||
|
|moduleName|module name (e.g. TwitterClient| |OpenAPIClient|
|
||||||
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
||||||
|shardAuthor|shard author (only one is supported).| |null|
|
|shardAuthor|shard author (only one is supported).| |null|
|
||||||
|shardAuthorEmail|shard author email (only one is supported).| |null|
|
|shardAuthorEmail|shard author email (only one is supported).| |null|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user