mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
Compare commits
499 Commits
go-server-
...
additonal-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
587d4b0679 | ||
|
|
4260c7aaf0 | ||
|
|
781ccae722 | ||
|
|
5b4d97016a | ||
|
|
9c4f6c46f7 | ||
|
|
a5f79a7bdc | ||
|
|
70543126f2 | ||
|
|
d6695056fe | ||
|
|
196c2b1642 | ||
|
|
c6d355e8d4 | ||
|
|
ad589c7700 | ||
|
|
cd0fde41f1 | ||
|
|
8b15d4820e | ||
|
|
1901bf23ea | ||
|
|
78f3b19b58 | ||
|
|
5ee18156db | ||
|
|
14cfca7b06 | ||
|
|
c354bf86ff | ||
|
|
4e15e1a813 | ||
|
|
18df6ed85f | ||
|
|
128d9da8a1 | ||
|
|
75c2e934da | ||
|
|
c614b9d9b1 | ||
|
|
026fa514c3 | ||
|
|
6ea8ff3a17 | ||
|
|
005566c6e3 | ||
|
|
dee536f7f7 | ||
|
|
fbff32c5d7 | ||
|
|
d1808405ca | ||
|
|
3817e40f47 | ||
|
|
270238e060 | ||
|
|
75ac4a2f58 | ||
|
|
acb798b58b | ||
|
|
b1ec110aa3 | ||
|
|
b34a10aee7 | ||
|
|
0192baed42 | ||
|
|
ecb56f1e88 | ||
|
|
1b32088c2d | ||
|
|
4b7a808a9f | ||
|
|
065b48177b | ||
|
|
8608103c9f | ||
|
|
a9301a6c16 | ||
|
|
29f0d22713 | ||
|
|
f3eb07408d | ||
|
|
4418b59b47 | ||
|
|
616e8df8d0 | ||
|
|
74cd73bd6c | ||
|
|
c510ea4b3d | ||
|
|
09704951f0 | ||
|
|
47a85e880b | ||
|
|
b59719a6ea | ||
|
|
dad677f63d | ||
|
|
6434c86afd | ||
|
|
ebc9bcda44 | ||
|
|
69c3f567ce | ||
|
|
8c2de11ac2 | ||
|
|
a2177570b3 | ||
|
|
40731ed52d | ||
|
|
c0abeceb85 | ||
|
|
c74ed98282 | ||
|
|
71b33db7ee | ||
|
|
07a5920b2f | ||
|
|
72da3b2c76 | ||
|
|
5954daea18 | ||
|
|
4a1c70f2f1 | ||
|
|
e73143d777 | ||
|
|
a0350c6533 | ||
|
|
bceae5695e | ||
|
|
9cc5513a1c | ||
|
|
20692aa891 | ||
|
|
35f5852cc0 | ||
|
|
134dc98a71 | ||
|
|
8386a6eaaf | ||
|
|
611a60411b | ||
|
|
b1564d8002 | ||
|
|
b14f99df92 | ||
|
|
5ab1badbef | ||
|
|
9b6e6b3e49 | ||
|
|
b5867ebf2b | ||
|
|
020415facc | ||
|
|
b457c3de70 | ||
|
|
1a654eba5c | ||
|
|
56105fbbe6 | ||
|
|
55252f4b25 | ||
|
|
21cbd1ab71 | ||
|
|
6310ecdb0f | ||
|
|
0dcd8b42b0 | ||
|
|
ec835fbd94 | ||
|
|
0f8f18e727 | ||
|
|
80121aa88f | ||
|
|
c7100b9e61 | ||
|
|
c37fa8a4e8 | ||
|
|
ad7ce7cba6 | ||
|
|
26899ee59b | ||
|
|
9cda7b0965 | ||
|
|
35f6eec71d | ||
|
|
91fc151451 | ||
|
|
7e67e3aafb | ||
|
|
da411b3f3f | ||
|
|
6146129bdc | ||
|
|
3e95001939 | ||
|
|
00de163655 | ||
|
|
646ec8ba41 | ||
|
|
bb507d5e6c | ||
|
|
85d7b38084 | ||
|
|
9c9c45a73e | ||
|
|
32fe92fee9 | ||
|
|
1a458d3e0b | ||
|
|
656d2c2263 | ||
|
|
d9423a4edb | ||
|
|
2815e6a538 | ||
|
|
7f7717498f | ||
|
|
a600ef0ded | ||
|
|
e1b1b7d0c7 | ||
|
|
4140b387fb | ||
|
|
a55453b5f7 | ||
|
|
141b3d4e0b | ||
|
|
ff19825610 | ||
|
|
b006b1b128 | ||
|
|
778a53a406 | ||
|
|
e69c58623f | ||
|
|
a9a4aa4bf8 | ||
|
|
c3c0188bf4 | ||
|
|
2e17653ae8 | ||
|
|
4f6a25f4b5 | ||
|
|
76bb8a40d8 | ||
|
|
35fec8da0e | ||
|
|
c3c7a547b7 | ||
|
|
bcd934d15a | ||
|
|
f1bacd23e7 | ||
|
|
931197a1cd | ||
|
|
47020f10b7 | ||
|
|
ef9520f989 | ||
|
|
83af019603 | ||
|
|
2ef888845d | ||
|
|
604239abba | ||
|
|
057bc8e626 | ||
|
|
1878c45be5 | ||
|
|
f4dfd99566 | ||
|
|
8f9e6432f5 | ||
|
|
2635b52b42 | ||
|
|
8885701648 | ||
|
|
9d100d8f6b | ||
|
|
a33c353a26 | ||
|
|
cc496ff2eb | ||
|
|
590430c774 | ||
|
|
3ad3cf7dd9 | ||
|
|
e8160d8d7d | ||
|
|
fd12bb3508 | ||
|
|
7a7309edb8 | ||
|
|
36cb3ce6b9 | ||
|
|
9f051ec640 | ||
|
|
d955ff6988 | ||
|
|
84d619b883 | ||
|
|
75b04bb965 | ||
|
|
6a8039c672 | ||
|
|
d9001b8a6f | ||
|
|
a3d14c87c4 | ||
|
|
3f8bce6695 | ||
|
|
3ed59cd593 | ||
|
|
3d064c6115 | ||
|
|
f3b930c48c | ||
|
|
7703560e73 | ||
|
|
c377a11c57 | ||
|
|
de8f846666 | ||
|
|
362b596fce | ||
|
|
29c5d6109a | ||
|
|
a9cfa1f391 | ||
|
|
50ee574d1f | ||
|
|
2b44d4ed93 | ||
|
|
4e5bd8a30a | ||
|
|
6a3f0ffb37 | ||
|
|
097385bde6 | ||
|
|
f6ac603e15 | ||
|
|
9322c2fc29 | ||
|
|
350ec2a763 | ||
|
|
17194f3ff0 | ||
|
|
5b2ceac93d | ||
|
|
1d4a6d713f | ||
|
|
f0b100a9ad | ||
|
|
e299382a42 | ||
|
|
d9e32a79a5 | ||
|
|
6f05655101 | ||
|
|
d1f23ef663 | ||
|
|
f6fb83878b | ||
|
|
c080660cc1 | ||
|
|
82516c75d2 | ||
|
|
cb56e50e0c | ||
|
|
45d8027bb4 | ||
|
|
81c398e530 | ||
|
|
1d39902930 | ||
|
|
d67f5ddeff | ||
|
|
0ce1fef016 | ||
|
|
4602f18ca8 | ||
|
|
3278eea9a4 | ||
|
|
77311c3d76 | ||
|
|
c6a100cce2 | ||
|
|
bf181906e0 | ||
|
|
f3b3de2a29 | ||
|
|
243b5569ef | ||
|
|
526ca78e79 | ||
|
|
48ff57b4f6 | ||
|
|
d41fe12c1f | ||
|
|
d9fc039dcf | ||
|
|
e411b2ac0a | ||
|
|
adac3b127f | ||
|
|
7ca84e5c88 | ||
|
|
5d2e80977b | ||
|
|
954d41b9aa | ||
|
|
184dfd2edd | ||
|
|
86cf4f1eb1 | ||
|
|
f6a819686d | ||
|
|
d7311cd5cd | ||
|
|
90eacb685c | ||
|
|
30c38ed7ad | ||
|
|
596487aa6c | ||
|
|
7d6e7e4e75 | ||
|
|
a1558e3861 | ||
|
|
7ad8f6ef29 | ||
|
|
f32be9df0b | ||
|
|
9aa15d9f09 | ||
|
|
24656156ed | ||
|
|
54d996732f | ||
|
|
66155d622c | ||
|
|
584f8448ee | ||
|
|
0a02860b50 | ||
|
|
20d1743a36 | ||
|
|
c71b48fe1a | ||
|
|
f590ef1bcf | ||
|
|
056475f0a4 | ||
|
|
476c1a9397 | ||
|
|
b7346d09eb | ||
|
|
3c5b119252 | ||
|
|
b468e4bb15 | ||
|
|
7a7ecc832d | ||
|
|
fb2c866dfc | ||
|
|
d000f90759 | ||
|
|
ce4a6a37c6 | ||
|
|
76989db77a | ||
|
|
bd76c1b102 | ||
|
|
7252d1a698 | ||
|
|
f6fefd9268 | ||
|
|
de0bffb99d | ||
|
|
4ece8e992a | ||
|
|
ddc2b3e560 | ||
|
|
7dee666826 | ||
|
|
35ca486e1c | ||
|
|
0d002d381e | ||
|
|
a729cb4e09 | ||
|
|
bfcd646356 | ||
|
|
aed6a0661a | ||
|
|
178b8a7737 | ||
|
|
28e822d870 | ||
|
|
e722c42756 | ||
|
|
b2eb14b3a5 | ||
|
|
067b17252e | ||
|
|
f8e19b4ebc | ||
|
|
6983a3acf3 | ||
|
|
b107ff96ac | ||
|
|
6299af176d | ||
|
|
598c27ddb0 | ||
|
|
7258b3c171 | ||
|
|
80e2c05bad | ||
|
|
b7e7314d8e | ||
|
|
6a263565e7 | ||
|
|
1531ad48d0 | ||
|
|
7f480cb936 | ||
|
|
e77f9ea783 | ||
|
|
c6f6ef92d0 | ||
|
|
16c149a91e | ||
|
|
3678085017 | ||
|
|
c595a02b61 | ||
|
|
ec6381295a | ||
|
|
7cbdc861c7 | ||
|
|
9aa6e25886 | ||
|
|
3325edc5c5 | ||
|
|
0a6671044f | ||
|
|
7b3681af47 | ||
|
|
f31c2a4b17 | ||
|
|
ceb48d3af4 | ||
|
|
9362b49173 | ||
|
|
91a55fc6b6 | ||
|
|
cc47f45eac | ||
|
|
fe78be405e | ||
|
|
aa1e9097ea | ||
|
|
ac1f5f1e81 | ||
|
|
852eb956db | ||
|
|
75067b2581 | ||
|
|
f34e42b249 | ||
|
|
94d76ff5d4 | ||
|
|
f0084b39ac | ||
|
|
9baf4988f3 | ||
|
|
f63ef71432 | ||
|
|
c6877947ac | ||
|
|
1d470c3866 | ||
|
|
2c5f8b30b4 | ||
|
|
52dd41159f | ||
|
|
aaf9ce637a | ||
|
|
08c3f8973e | ||
|
|
83a12779fa | ||
|
|
f7edbbc572 | ||
|
|
5bae27cbbf | ||
|
|
2aa75802dc | ||
|
|
30d6a2ff80 | ||
|
|
a5f1c01548 | ||
|
|
315fbff680 | ||
|
|
9170306ffa | ||
|
|
a2d0b0c5b8 | ||
|
|
ba5c5f478e | ||
|
|
ba1c600830 | ||
|
|
a16a315fee | ||
|
|
635f7952ce | ||
|
|
6b62f2b05a | ||
|
|
965eb2a02f | ||
|
|
bf80ccb24c | ||
|
|
8d625986c6 | ||
|
|
5479e57bee | ||
|
|
85df55b20e | ||
|
|
0bb9088f3e | ||
|
|
4f5738f493 | ||
|
|
a42f90b0e8 | ||
|
|
b465d88880 | ||
|
|
ba0c73e164 | ||
|
|
117e5118b1 | ||
|
|
cfc14565ae | ||
|
|
00fcaa15c0 | ||
|
|
e2f5997592 | ||
|
|
3224e86377 | ||
|
|
22e1e4e450 | ||
|
|
7572e73b8e | ||
|
|
50d8e7820b | ||
|
|
a22a7c0d83 | ||
|
|
48f242fe58 | ||
|
|
34c491b115 | ||
|
|
179d0bcb9c | ||
|
|
780d1fb3e2 | ||
|
|
a89fe4ab28 | ||
|
|
ebcd1d7a32 | ||
|
|
4dc7ffd2f3 | ||
|
|
4eaa358476 | ||
|
|
42b496c003 | ||
|
|
71528f69e8 | ||
|
|
d6538e3327 | ||
|
|
30c685ea67 | ||
|
|
cdac1366d4 | ||
|
|
9a968c3104 | ||
|
|
9ee5fcc5c6 | ||
|
|
f43111b46a | ||
|
|
63b2c79565 | ||
|
|
8add9119df | ||
|
|
15b3addd40 | ||
|
|
d5c53b9812 | ||
|
|
e9d98666a1 | ||
|
|
b2280e23f7 | ||
|
|
b1b8acee48 | ||
|
|
8fe4d780ed | ||
|
|
fac04cfa9d | ||
|
|
7a73f75f70 | ||
|
|
dcc53c0d53 | ||
|
|
3627e57a4c | ||
|
|
faa5da51e5 | ||
|
|
debf92fd7d | ||
|
|
e8fc4d159e | ||
|
|
4bec09f7b9 | ||
|
|
33e120a14d | ||
|
|
47f2f5f3e7 | ||
|
|
ea2c6860d3 | ||
|
|
c23560afb9 | ||
|
|
7c67f731bc | ||
|
|
af048ec62f | ||
|
|
17c2401abd | ||
|
|
5d6b769b5b | ||
|
|
b4eb9a40c6 | ||
|
|
ae8da31772 | ||
|
|
9f3d9a5e8f | ||
|
|
d160b827de | ||
|
|
33aa5b07f3 | ||
|
|
7e89e1ea81 | ||
|
|
8b26d81163 | ||
|
|
14fc61a293 | ||
|
|
396c6753b1 | ||
|
|
6b1a9ba602 | ||
|
|
09b182572a | ||
|
|
3dd93beac2 | ||
|
|
e0d89c3846 | ||
|
|
5555137b79 | ||
|
|
389270334a | ||
|
|
0a651e1b0a | ||
|
|
504744a390 | ||
|
|
730b946537 | ||
|
|
03cef639e4 | ||
|
|
6cb3414611 | ||
|
|
95cefaeecd | ||
|
|
747d9d9b51 | ||
|
|
0e212f53f2 | ||
|
|
882b9a8c50 | ||
|
|
bdeb4ff5a4 | ||
|
|
bca80c0d3d | ||
|
|
8c1f4b1a62 | ||
|
|
b42234eb3c | ||
|
|
afca85acf5 | ||
|
|
522368160a | ||
|
|
7812dd525c | ||
|
|
175876a105 | ||
|
|
6a1626c8e7 | ||
|
|
3b832c9fd4 | ||
|
|
9fe5cc0b01 | ||
|
|
37d8a0d3ff | ||
|
|
96b3488a07 | ||
|
|
0504c21209 | ||
|
|
43b1ce2c89 | ||
|
|
e5a9081456 | ||
|
|
3ea09c2855 | ||
|
|
89056986b6 | ||
|
|
9a3e6c7e38 | ||
|
|
d2e10a7229 | ||
|
|
ca80fcd03e | ||
|
|
170a2f44fa | ||
|
|
9b305318b4 | ||
|
|
5b0c021f26 | ||
|
|
6788f43af0 | ||
|
|
21748e024a | ||
|
|
fe2dde3708 | ||
|
|
f240ed4e4e | ||
|
|
1fb0ab997f | ||
|
|
fc474eab5f | ||
|
|
586626498d | ||
|
|
5cf7ed928b | ||
|
|
9d274cffca | ||
|
|
acc8274528 | ||
|
|
5a7be59967 | ||
|
|
113cf9db40 | ||
|
|
02790f987e | ||
|
|
d27fa00cf5 | ||
|
|
3d6f501710 | ||
|
|
17f1d351bf | ||
|
|
b7f2b723aa | ||
|
|
fbe768bb9c | ||
|
|
87be942247 | ||
|
|
658c6eb567 | ||
|
|
59ba00e1f3 | ||
|
|
79c2e87890 | ||
|
|
366e71adf9 | ||
|
|
d7226a6813 | ||
|
|
b5d766de4b | ||
|
|
d3a2e0e43e | ||
|
|
e439476e16 | ||
|
|
bc7bdca87f | ||
|
|
d2446013d1 | ||
|
|
0d9ca8a2d5 | ||
|
|
9bf752454e | ||
|
|
db3ef134b8 | ||
|
|
4604bf016f | ||
|
|
e06e2cce69 | ||
|
|
3cff040fe8 | ||
|
|
e5531c1135 | ||
|
|
fbb0d6d935 | ||
|
|
7295c97089 | ||
|
|
961b83104e | ||
|
|
0943e5063a | ||
|
|
2b9d94cb0a | ||
|
|
fad23df09c | ||
|
|
7ab636d268 | ||
|
|
2cc3e7865c | ||
|
|
a9536d6d7f | ||
|
|
5e6e99b277 | ||
|
|
eb0fe1bd1f | ||
|
|
a953eb750f | ||
|
|
65bee03e21 | ||
|
|
05b9a899e4 | ||
|
|
2db7b0b177 | ||
|
|
f0a624a135 | ||
|
|
421bcd1787 | ||
|
|
7466d06b89 | ||
|
|
f331cb0695 | ||
|
|
eb41941872 | ||
|
|
0d4e399718 | ||
|
|
9c611b826b | ||
|
|
fc76944e19 | ||
|
|
3943e97e14 | ||
|
|
6504eafddb | ||
|
|
e593591401 | ||
|
|
c2f635a330 | ||
|
|
f769070fa3 | ||
|
|
63a311a2e6 | ||
|
|
5fae4f5d93 | ||
|
|
3ee2eeedba | ||
|
|
c8a1607b9f | ||
|
|
4d4477e368 | ||
|
|
1ad8316a9d | ||
|
|
1561c33966 | ||
|
|
ff414dd6da | ||
|
|
0bcf9d8bde | ||
|
|
1e1e786a72 | ||
|
|
d7d57e2ea3 | ||
|
|
10c270fda6 | ||
|
|
1d5b1b0a8f | ||
|
|
8a0f374a45 | ||
|
|
8bad27e0ab |
@@ -38,9 +38,18 @@ commands: # a reusable command with parameters
|
|||||||
- run:
|
- run:
|
||||||
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; '
|
||||||
- run:
|
- run:
|
||||||
command: |-
|
command: |
|
||||||
printf '127.0.0.1 petstore.swagger.io
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 path.v1.test.openapi-generator.tech"
|
||||||
' | sudo tee -a /etc/hosts
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 path.v2.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.111 path.v3.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 operation.v1.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 operation.v2.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.111 operation.v3.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 server.v1.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 server.v2.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.111 server.v3.test.openapi-generator.tech"
|
||||||
|
sudo tee -a /etc/hosts \<<< "127.0.0.1 petstore.swagger.io"
|
||||||
|
cat /etc/hosts
|
||||||
# - run: docker pull openapitools/openapi-petstore
|
# - run: docker pull openapitools/openapi-petstore
|
||||||
# - run: docker run -d -e OPENAPI_BASE_PATH=/v3 -e DISABLE_API_KEY=1 -e DISABLE_OAUTH=1 -p 80:8080 openapitools/openapi-petstore
|
# - run: docker run -d -e OPENAPI_BASE_PATH=/v3 -e DISABLE_API_KEY=1 -e DISABLE_OAUTH=1 -p 80:8080 openapitools/openapi-petstore
|
||||||
- run: docker pull swaggerapi/petstore
|
- run: docker pull swaggerapi/petstore
|
||||||
@@ -49,7 +58,7 @@ commands: # a reusable command with parameters
|
|||||||
- run: sleep 30
|
- run: sleep 30
|
||||||
- run: cat /etc/hosts
|
- run: cat /etc/hosts
|
||||||
# Test
|
# Test
|
||||||
- run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
- run: ./mvnw --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
- run:
|
- run:
|
||||||
name: "Setup custom environment variables"
|
name: "Setup custom environment variables"
|
||||||
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV
|
command: echo 'export CIRCLE_NODE_INDEX="<<parameters.nodeNo>>"' >> $BASH_ENV
|
||||||
@@ -195,8 +204,8 @@ jobs:
|
|||||||
- command_build_and_test:
|
- command_build_and_test:
|
||||||
nodeNo: "3"
|
nodeNo: "3"
|
||||||
node4:
|
node4:
|
||||||
docker:
|
machine:
|
||||||
- image: fkrull/multi-python
|
image: ubuntu-2004:202201-02
|
||||||
working_directory: ~/OpenAPITools/openapi-generator
|
working_directory: ~/OpenAPITools/openapi-generator
|
||||||
shell: /bin/bash --login
|
shell: /bin/bash --login
|
||||||
environment:
|
environment:
|
||||||
@@ -206,7 +215,7 @@ jobs:
|
|||||||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli
|
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- command_docker_build_and_test:
|
- command_build_and_test:
|
||||||
nodeNo: "4"
|
nodeNo: "4"
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|||||||
6
.github/.test/samples.json
vendored
6
.github/.test/samples.json
vendored
@@ -800,12 +800,6 @@
|
|||||||
"Client: Python"
|
"Client: Python"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"input": "python-server-flask-petstore-python2.sh",
|
|
||||||
"matches": [
|
|
||||||
"Server: Python"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"input": "python-server-flask-petstore.sh",
|
"input": "python-server-flask-petstore.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
|
|||||||
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -21,5 +21,5 @@
|
|||||||
./bin/utils/ensure-up-to-date
|
./bin/utils/ensure-up-to-date
|
||||||
```
|
```
|
||||||
Commit all changed files.
|
Commit all changed files.
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (7.0.1 - patch release), `7.1.x` (minor release - breaking changes with fallbacks), `8.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.
|
||||||
|
|||||||
2
.github/actions/run-samples/action.yaml
vendored
2
.github/actions/run-samples/action.yaml
vendored
@@ -15,5 +15,5 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: mvn clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
- run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet ${{ inputs.goal }} -P${{ inputs.name }} -Dintegration-test -Dmaven.javadoc.skip=true ${{ inputs.args }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
6
.github/dependabot.yml
vendored
6
.github/dependabot.yml
vendored
@@ -4,3 +4,9 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
- package-ecosystem: "maven"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
allow:
|
||||||
|
- dependency-name: "com.gradle.*"
|
||||||
|
|||||||
8
.github/workflows/docker.yaml
vendored
8
.github/workflows/docker.yaml
vendored
@@ -7,20 +7,21 @@ on:
|
|||||||
- run-in-docker.sh
|
- run-in-docker.sh
|
||||||
- pom.xml
|
- pom.xml
|
||||||
- modules/openapi-generator-online/pom.xml
|
- modules/openapi-generator-online/pom.xml
|
||||||
|
- modules/openapi-generator-online/Dockerfile
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- Dockerfile
|
- Dockerfile
|
||||||
- run-in-docker.sh
|
- run-in-docker.sh
|
||||||
- pom.xml
|
- pom.xml
|
||||||
- modules/openapi-generator-online/pom.xml
|
- modules/openapi-generator-online/pom.xml
|
||||||
|
- modules/openapi-generator-online/Dockerfile
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: 'Build: Docker'
|
name: 'Build: Docker'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Test run-in-docker.sh
|
- name: Test run-in-docker.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -34,4 +35,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Build modules/openapi-generator-online
|
- name: Build modules/openapi-generator-online
|
||||||
shell: bash
|
shell: bash
|
||||||
run: docker build modules/openapi-generator-online/
|
run: |
|
||||||
|
docker build modules/openapi-generator-online/ -t test
|
||||||
|
|||||||
4
.github/workflows/gradle-plugin-tests.yaml
vendored
4
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
name: Gradle plugin tests
|
name: Gradle plugin tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk) # using gradle-6.8.3 via wrapper
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
|
||||||
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
(cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildDotnetSdk)
|
||||||
|
|||||||
3
.github/workflows/gradle-test.yaml
vendored
3
.github/workflows/gradle-test.yaml
vendored
@@ -28,8 +28,9 @@ jobs:
|
|||||||
- samples/client/petstore/java/jersey2-java8
|
- 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
|
||||||
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
16
.github/workflows/linux.yaml
vendored
16
.github/workflows/linux.yaml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
@@ -45,14 +45,14 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.7.0
|
uses: s4u/setup-maven-action@v1.9.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.9.0
|
maven-version: 3.8.8
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
shell: bash
|
shell: bash
|
||||||
run: mvn clean -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress install --file pom.xml
|
run: ./mvnw clean -nsu -B --quiet -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress install --file pom.xml
|
||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
|
||||||
@@ -85,12 +85,12 @@ jobs:
|
|||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.7.0
|
uses: s4u/setup-maven-action@v1.9.0
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
maven-version: 3.9.0
|
maven-version: 3.8.8
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
@@ -101,7 +101,7 @@ jobs:
|
|||||||
git config --global core.fileMode false
|
git config --global core.fileMode false
|
||||||
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
|
./mvnw clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
||||||
# test with java (jersey2) client generation only as ensure-up-to-date script is run in another job instead
|
# 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
|
# test debugSupportingFiles
|
||||||
|
|||||||
12
.github/workflows/maven-plugin-tests.yaml
vendored
12
.github/workflows/maven-plugin-tests.yaml
vendored
@@ -13,7 +13,7 @@ jobs:
|
|||||||
name: Maven plugin tests
|
name: Maven plugin tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -37,8 +37,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
run: |
|
run: |
|
||||||
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
|
./mvnw 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
|
./mvnw --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
|
./mvnw --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
|
./mvnw --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
|
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|||||||
2
.github/workflows/misc-test.yaml
vendored
2
.github/workflows/misc-test.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Misc tests
|
name: Misc tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.6'
|
ruby-version: '2.6'
|
||||||
|
|||||||
12
.github/workflows/openapi-generator.yaml
vendored
12
.github/workflows/openapi-generator.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Run maven
|
- name: Run maven
|
||||||
run: mvn clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet install -DskipTests -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- run: ls -la modules/openapi-generator-cli/target
|
- run: ls -la modules/openapi-generator-cli/target
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: mvn clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet --fail-at-end test -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- name: Publish unit test reports
|
- name: Publish unit test reports
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -129,7 +129,7 @@ jobs:
|
|||||||
- build
|
- build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
27
.github/workflows/samples-c-libcurl-client.yaml
vendored
Normal file
27
.github/workflows/samples-c-libcurl-client.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Samples c libcurl client
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/c/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/c/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build c libcurl client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y libssl-dev libcurl4-openssl-dev
|
||||||
|
- name: Build
|
||||||
|
working-directory: "samples/client/petstore/c"
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
2
.github/workflows/samples-cpp-qt-client.yaml
vendored
2
.github/workflows/samples-cpp-qt-client.yaml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
tools: 'tools_openssl_x64'
|
tools: 'tools_openssl_x64'
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: jurplel/install-qt-action@v3
|
- uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt-version }}
|
version: ${{ matrix.qt-version }}
|
||||||
|
|||||||
14
.github/workflows/samples-dart.yaml
vendored
14
.github/workflows/samples-dart.yaml
vendored
@@ -17,27 +17,19 @@ jobs:
|
|||||||
name: Tests Dart
|
name: Tests Dart
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
cache: maven
|
||||||
uses: actions/cache@v3
|
|
||||||
env:
|
|
||||||
cache-name: maven-repository
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.m2/repository
|
|
||||||
~/.gradle
|
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
|
||||||
- name: Cache test dependencies
|
- name: Cache test dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
cache-name: pub-cache
|
cache-name: pub-cache
|
||||||
with:
|
with:
|
||||||
path: $PUB_CACHE
|
path: $PUB_CACHE
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.yaml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('samples/**/pubspec.*') }}
|
||||||
- uses: dart-lang/setup-dart@v1
|
- uses: dart-lang/setup-dart@v1
|
||||||
with:
|
with:
|
||||||
sdk: 2.15.0
|
sdk: 2.15.0
|
||||||
|
|||||||
10
.github/workflows/samples-dotnet-standard.yaml
vendored
10
.github/workflows/samples-dotnet-standard.yaml
vendored
@@ -3,10 +3,10 @@ name: Samples C# .Net Standard
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**netstandard**/'
|
- 'samples/client/petstore/csharp/**netstandard**/'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**netstandard**/'
|
- 'samples/client/petstore/csharp/**netstandard**/'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
@@ -16,10 +16,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3.1.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
26
.github/workflows/samples-dotnet.yaml
vendored
26
.github/workflows/samples-dotnet.yaml
vendored
@@ -3,16 +3,17 @@ name: Samples C# .Net 7
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
- 'samples/client/petstore/csharp/**net6.0**/'
|
||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
||||||
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useNewtonsoft/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp-netcore/**net6.0**/'
|
- 'samples/client/petstore/csharp/**net6.0**/'
|
||||||
- 'samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore**/'
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
||||||
|
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
||||||
- '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/**'
|
||||||
@@ -28,11 +29,12 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-allOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-oneOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netcore-latest-anyOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
|
||||||
- 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
|
||||||
@@ -40,8 +42,8 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3.1.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
31
.github/workflows/samples-dotnet6-client-echo-api.yaml
vendored
Normal file
31
.github/workflows/samples-dotnet6-client-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Samples C# .Net 6
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/csharp-restsharp/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/csharp-restsharp/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/csharp-restsharp/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '6.0.x'
|
||||||
|
- 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: dotnet build Org.OpenAPITools.sln
|
||||||
64
.github/workflows/samples-dotnet6-client.yaml
vendored
64
.github/workflows/samples-dotnet6-client.yaml
vendored
@@ -4,41 +4,45 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
# build C# API client (multiple frameworks)
|
# build C# API client (multiple frameworks)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/**
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
# build C# API client (httpclient)
|
# build C# API client (httpclient)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/**
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
# build C# API client (generichost)
|
# build C# API client (generichost)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/**
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
# build C# API client (netcore)
|
# build C# API client (netcore)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient/**
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/**
|
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
||||||
# build C# API client (.net framework 4.7)
|
# build C# API client (.net framework 4.7)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/**
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
# build C# API client (.net framework 4.8)
|
# build C# API client (.net framework 4.8)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/**
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
# build C# API client (.net 5.0)
|
# build C# API client (.net 5.0)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/**
|
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/**
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
# build C# API client (multiple frameworks)
|
# build C# API client (multiple frameworks)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/**
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
# build C# API client (httpclient)
|
# build C# API client (httpclient)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/**
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
# build C# API client (generichost)
|
# build C# API client (generichost)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/**
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
# build C# API client (netcore)
|
# build C# API client (netcore)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient/**
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/**
|
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
||||||
# build C# API client (.net framework 4.7)
|
# build C# API client (.net framework 4.7)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/**
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
# build C# API client (.net framework 4.8)
|
# build C# API client (.net framework 4.8)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/**
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
# build C# API client (.net 5.0)
|
# build C# API client (.net 5.0)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/**
|
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/**
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net clients
|
name: Build .Net clients
|
||||||
@@ -49,25 +53,27 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
# build C# API client (multiple frameworks)
|
# build C# API client (multiple frameworks)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47/
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
|
||||||
# build C# API client (httpclient)
|
# build C# API client (httpclient)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
# build C# API client (generichost)
|
# build C# API client (generichost)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0/
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
|
||||||
# build C# API client (netcore)
|
# build C# API client (netcore)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient/
|
- samples/client/petstore/csharp/OpenAPIClient/
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClientCore/
|
- samples/client/petstore/csharp/OpenAPIClientCore/
|
||||||
# build C# API client (.net framework 4.7)
|
# build C# API client (.net framework 4.7)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net47/
|
- samples/client/petstore/csharp/OpenAPIClient-net47/
|
||||||
# build C# API client (.net framework 4.8)
|
# build C# API client (.net framework 4.8)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net48/
|
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
||||||
# build C# API client (.net 5.0)
|
# build C# API client (.net 5.0)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0/
|
- samples/client/petstore/csharp/OpenAPIClient-net5.0/
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
# build C# API client (.net 5.0 with ConditionalSerialization)
|
||||||
- samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization/
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3.1.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ on:
|
|||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useNewtonsoft/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- 'samples/server/petstore/aspnetcore-6.0/**'
|
||||||
@@ -30,8 +29,8 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3.1.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
2
.github/workflows/samples-elm.yaml
vendored
2
.github/workflows/samples-elm.yaml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- samples/client/petstore/elm
|
- samples/client/petstore/elm
|
||||||
- samples/openapi3/client/elm
|
- samples/openapi3/client/elm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: jorelali/setup-elm@v5
|
- uses: jorelali/setup-elm@v5
|
||||||
with:
|
with:
|
||||||
elm-version: 0.19.1
|
elm-version: 0.19.1
|
||||||
|
|||||||
2
.github/workflows/samples-erlang.yaml
vendored
2
.github/workflows/samples-erlang.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/client/petstore/erlang-client/
|
- samples/client/petstore/erlang-client/
|
||||||
- samples/client/petstore/erlang-proper/
|
- samples/client/petstore/erlang-proper/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: erlef/setup-beam@v1
|
- uses: erlef/setup-beam@v1
|
||||||
with:
|
with:
|
||||||
otp-version: '22.2'
|
otp-version: '22.2'
|
||||||
|
|||||||
2
.github/workflows/samples-go.yaml
vendored
2
.github/workflows/samples-go.yaml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- samples/server/petstore/go-api-server/
|
- samples/server/petstore/go-api-server/
|
||||||
- samples/server/petstore/go-chi-server/
|
- samples/server/petstore/go-chi-server/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: "stable"
|
go-version: "stable"
|
||||||
|
|||||||
2
.github/workflows/samples-groovy.yaml
vendored
2
.github/workflows/samples-groovy.yaml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/groovy
|
- samples/client/petstore/groovy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
36
.github/workflows/samples-haskell.yaml
vendored
Normal file
36
.github/workflows/samples-haskell.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Samples Haskell
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/haskell-yesod/**
|
||||||
|
- samples/server/petstore/haskell-servant/**
|
||||||
|
- samples/client/petstore/haskell-http-client/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/haskell-yesod/**
|
||||||
|
- samples/server/petstore/haskell-servant/**
|
||||||
|
- samples/client/petstore/haskell-http-client/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build stack projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/haskell-yesod/
|
||||||
|
- samples/server/petstore/haskell-servant/
|
||||||
|
- samples/client/petstore/haskell-http-client/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: haskell/actions/setup@v2
|
||||||
|
with:
|
||||||
|
# ghc-version: '8.8.4' # Exact version of ghc to use
|
||||||
|
# cabal-version: 'latest'. Omitted, but defaults to 'latest'
|
||||||
|
enable-stack: true
|
||||||
|
stack-version: 'latest'
|
||||||
|
- name: stack test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: stack test
|
||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- samples/client/echo_api/java/native
|
- samples/client/echo_api/java/native
|
||||||
- samples/client/echo_api/java/feign-gson
|
- samples/client/echo_api/java/feign-gson
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- samples/client/echo_api/java/feign-gson
|
- samples/client/echo_api/java/feign-gson
|
||||||
- samples/client/echo_api/java/okhttp-gson
|
- samples/client/echo_api/java/okhttp-gson
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
11
.github/workflows/samples-java-client-jdk11.yaml
vendored
11
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -8,6 +8,7 @@ on:
|
|||||||
- samples/client/petstore/java-micronaut-client/**
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
- 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-swagger1/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
@@ -16,6 +17,7 @@ on:
|
|||||||
- samples/client/petstore/java-micronaut-client/**
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
- 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-swagger1/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -38,14 +40,16 @@ jobs:
|
|||||||
- 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-nullable-arrays
|
- samples/client/petstore/java/webclient-nullable-arrays
|
||||||
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
- 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/google-api-client
|
- samples/client/petstore/java/google-api-client
|
||||||
- samples/client/petstore/java/rest-assured
|
- samples/client/petstore/java/rest-assured
|
||||||
- samples/client/petstore/java/rest-assured-jackson
|
- samples/client/petstore/java/rest-assured-jackson
|
||||||
- samples/client/petstore/java/microprofile-rest-client
|
- samples/client/petstore/java/microprofile-rest-client
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0
|
- samples/client/petstore/java/microprofile-rest-client-3.0
|
||||||
|
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson
|
||||||
|
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
|
||||||
- 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
|
||||||
@@ -54,8 +58,11 @@ jobs:
|
|||||||
- samples/client/petstore/java/okhttp-gson-swagger1/
|
- samples/client/petstore/java/okhttp-gson-swagger1/
|
||||||
- samples/client/petstore/java/resttemplate-swagger1/
|
- samples/client/petstore/java/resttemplate-swagger1/
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/
|
||||||
|
- samples/client/petstore/java/okhttp-gson-swagger2/
|
||||||
|
- samples/client/petstore/java/resttemplate-swagger2/
|
||||||
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ jobs:
|
|||||||
- samples/client/petstore/java/resttemplate-jakarta
|
- samples/client/petstore/java/resttemplate-jakarta
|
||||||
- samples/client/petstore/java/webclient-jakarta
|
- samples/client/petstore/java/webclient-jakarta
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
2
.github/workflows/samples-java-helidon.yaml
vendored
2
.github/workflows/samples-java-helidon.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
- samples/server/petstore/java-helidon-server/se
|
- samples/server/petstore/java-helidon-server/se
|
||||||
version: [17]
|
version: [17]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- samples/server/petstore/java-play-framework-no-swagger-ui
|
- samples/server/petstore/java-play-framework-no-swagger-ui
|
||||||
- samples/server/petstore/java-play-framework-no-wrap-calls
|
- samples/server/petstore/java-play-framework-no-wrap-calls
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- samples/server/petstore/java-pkmst/
|
- samples/server/petstore/java-pkmst/
|
||||||
- samples/server/petstore/java-undertow/
|
- samples/server/petstore/java-undertow/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
2
.github/workflows/samples-jaxrs.yaml
vendored
2
.github/workflows/samples-jaxrs.yaml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
||||||
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
2
.github/workflows/samples-jdk17.yaml
vendored
2
.github/workflows/samples-jdk17.yaml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
- samples/client/petstore/spring-http-interface-reactive
|
- samples/client/petstore/spring-http-interface-reactive
|
||||||
- samples/client/petstore/spring-http-interface
|
- samples/client/petstore/spring-http-interface
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
41
.github/workflows/samples-julia.yaml
vendored
Normal file
41
.github/workflows/samples-julia.yaml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Samples Julia
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/julia/**'
|
||||||
|
- 'samples/server/petstore/julia/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/julia/**'
|
||||||
|
- 'samples/server/petstore/julia/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests-julia:
|
||||||
|
name: Tests Julia
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: julia-actions/setup-julia@v1
|
||||||
|
with:
|
||||||
|
version: 1.8
|
||||||
|
arch: x64
|
||||||
|
- name: Test
|
||||||
|
shell: bash
|
||||||
|
working-directory: 'samples'
|
||||||
|
run: |
|
||||||
|
currdir=`pwd`
|
||||||
|
# Using a specific version of OpenAPI.jl helps avoid introducing version inter-dependencies
|
||||||
|
# and allows breaking changes to be done in either repos independently
|
||||||
|
# Using develop mode to install package so that it is easier to modify the package test files
|
||||||
|
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
|
||||||
|
cd ~/.julia/dev/OpenAPI
|
||||||
|
git checkout v0.1.14
|
||||||
|
cd $currdir
|
||||||
|
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
||||||
|
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
||||||
|
cp -r client/petstore/julia ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
||||||
|
cp -r server/petstore/julia ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
||||||
|
# setting this env runs only the tests relevant to the openapi-generator repo
|
||||||
|
export OPENAPI_GENERATOR=true
|
||||||
|
julia -e "using Pkg; Pkg.test(\"OpenAPI\");"
|
||||||
9
.github/workflows/samples-kotlin-client.yaml
vendored
9
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -4,9 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'samples/client/petstore/kotlin*/**'
|
- 'samples/client/petstore/kotlin*/**'
|
||||||
|
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/kotlin*/**'
|
- 'samples/client/petstore/kotlin*/**'
|
||||||
|
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 6.9
|
GRADLE_VERSION: 6.9
|
||||||
@@ -49,9 +51,10 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
||||||
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
|
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
|
||||||
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
||||||
|
- samples/client/petstore/kotlin-jvm-jackson
|
||||||
- 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-ktor-kotlinx_serialization
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-gson
|
- samples/client/petstore/kotlin-jvm-vertx-gson
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
- samples/client/petstore/kotlin-jvm-vertx-jackson
|
||||||
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
- samples/client/petstore/kotlin-jvm-vertx-jackson-coroutines
|
||||||
@@ -59,8 +62,10 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-jvm-spring-2-webclient
|
- samples/client/petstore/kotlin-jvm-spring-2-webclient
|
||||||
- samples/client/petstore/kotlin-jvm-spring-3-webclient
|
- samples/client/petstore/kotlin-jvm-spring-3-webclient
|
||||||
- samples/client/petstore/kotlin-spring-cloud
|
- samples/client/petstore/kotlin-spring-cloud
|
||||||
|
- samples/client/petstore/kotlin-name-parameter-mappings
|
||||||
|
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
@@ -4,9 +4,13 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
|
# comment out due to gradle build failure
|
||||||
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
|
# comment out due to gradle build failure
|
||||||
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 7.4
|
GRADLE_VERSION: 7.4
|
||||||
@@ -21,8 +25,10 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-springboot-3
|
- samples/server/petstore/kotlin-springboot-3
|
||||||
|
# comment out due to gradle build failure
|
||||||
|
# - samples/server/petstore/kotlin-spring-default/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
12
.github/workflows/samples-kotlin-server.yaml
vendored
12
.github/workflows/samples-kotlin-server.yaml
vendored
@@ -3,10 +3,16 @@ name: Samples Kotlin server
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
- samples/server/others/kotlin-server/jaxrs-spec/**
|
||||||
- 'samples/server/petstore/kotlin*/**'
|
- 'samples/server/petstore/kotlin*/**'
|
||||||
|
# comment out due to gradle build failure
|
||||||
|
#- samples/server/petstore/kotlin-spring-default/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- samples/server/others/kotlin-server/jaxrs-spec/**
|
||||||
- 'samples/server/petstore/kotlin*/**'
|
- 'samples/server/petstore/kotlin*/**'
|
||||||
|
# comment out due to gradle build failure
|
||||||
|
# - samples/server/petstore/kotlin-spring-default/**
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GRADLE_VERSION: 6.9
|
GRADLE_VERSION: 6.9
|
||||||
@@ -29,11 +35,15 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-springboot-springfox
|
- samples/server/petstore/kotlin-springboot-springfox
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
|
- samples/server/petstore/kotlin-server/jaxrs-spec-mutiny
|
||||||
- samples/server/petstore/kotlin-server-modelMutable
|
- samples/server/petstore/kotlin-server-modelMutable
|
||||||
|
- samples/server/others/kotlin-server/jaxrs-spec
|
||||||
|
# comment out due to gradle build failure
|
||||||
|
#- samples/server/petstore/kotlin-spring-default
|
||||||
# no build.gradle file
|
# no build.gradle file
|
||||||
#- samples/server/petstore/kotlin-vertx-modelMutable
|
#- samples/server/petstore/kotlin-vertx-modelMutable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
2
.github/workflows/samples-php7.yaml
vendored
2
.github/workflows/samples-php7.yaml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/php-laravel/lib/
|
- samples/server/petstore/php-laravel/lib/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Setup PHP with tools
|
- name: Setup PHP with tools
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-php8.yaml
vendored
2
.github/workflows/samples-php8.yaml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Setup PHP with tools
|
- name: Setup PHP with tools
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/python
|
- samples/client/echo_api/python
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
|
|||||||
2
.github/workflows/samples-python-server.yaml
vendored
2
.github/workflows/samples-python-server.yaml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/python-aiohttp/
|
- samples/server/petstore/python-aiohttp/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
|
|||||||
13
.github/workflows/samples-rust.yaml
vendored
13
.github/workflows/samples-rust.yaml
vendored
@@ -3,12 +3,14 @@ name: Samples Rust
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/rust/**'
|
- "samples/client/others/rust/**"
|
||||||
- 'samples/server/petstore/rust-server/**'
|
- "samples/server/petstore/rust-server/**"
|
||||||
|
- "samples/client/petstore/rust-server/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/rust/**'
|
- "samples/client/others/rust/**"
|
||||||
- 'samples/server/petstore/rust-server/**'
|
- "samples/client/petstore/rust/**"
|
||||||
|
- "samples/server/petstore/rust-server/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -19,10 +21,11 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# these folders contain sub-projects of rust clients, servers
|
# these folders contain sub-projects of rust clients, servers
|
||||||
|
- samples/client/others/rust/
|
||||||
- samples/client/petstore/rust/
|
- samples/client/petstore/rust/
|
||||||
- samples/server/petstore/rust-server/
|
- samples/server/petstore/rust-server/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|||||||
3
.github/workflows/samples-scala.yaml
vendored
3
.github/workflows/samples-scala.yaml
vendored
@@ -27,10 +27,11 @@ jobs:
|
|||||||
- samples/server/petstore/scala-lagom-server
|
- samples/server/petstore/scala-lagom-server
|
||||||
- samples/server/petstore/scala-play-server
|
- samples/server/petstore/scala-play-server
|
||||||
- samples/server/petstore/scala-akka-http-server
|
- samples/server/petstore/scala-akka-http-server
|
||||||
|
- samples/server/petstore/scala-pekko-http-server
|
||||||
- samples/server/petstore/scalatra
|
- samples/server/petstore/scalatra
|
||||||
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
36
.github/workflows/samples-spring-jdk17.yaml
vendored
Normal file
36
.github/workflows/samples-spring-jdk17.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Samples Java Spring (JDK17)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Spring (JDK17)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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
|
||||||
11
.github/workflows/samples-spring.yaml
vendored
11
.github/workflows/samples-spring.yaml
vendored
@@ -3,10 +3,16 @@ name: Samples Java Spring
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
|
# clients
|
||||||
|
- 'samples/client/petstore/spring*/**'
|
||||||
|
# servers
|
||||||
- 'samples/server/petstore/spring*/**'
|
- 'samples/server/petstore/spring*/**'
|
||||||
- 'samples/openapi3/server/petstore/spring*/**'
|
- 'samples/openapi3/server/petstore/spring*/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
# clients
|
||||||
|
- 'samples/client/petstore/spring*/**'
|
||||||
|
# servers
|
||||||
- 'samples/server/petstore/spring*/**'
|
- 'samples/server/petstore/spring*/**'
|
||||||
- 'samples/openapi3/server/petstore/spring*/**'
|
- 'samples/openapi3/server/petstore/spring*/**'
|
||||||
jobs:
|
jobs:
|
||||||
@@ -26,12 +32,15 @@ jobs:
|
|||||||
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
- samples/openapi3/client/petstore/spring-stubs-skip-default-interface
|
||||||
- samples/openapi3/client/petstore/spring-cloud-async
|
- samples/openapi3/client/petstore/spring-cloud-async
|
||||||
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
- samples/openapi3/client/petstore/spring-cloud-spring-pageable
|
||||||
|
- samples/client/petstore/spring-cloud-tags
|
||||||
|
- samples/client/petstore/spring-cloud-deprecated
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
- samples/openapi3/server/petstore/springboot
|
- samples/openapi3/server/petstore/springboot
|
||||||
- samples/server/petstore/springboot-beanvalidation
|
- samples/server/petstore/springboot-beanvalidation
|
||||||
- samples/server/petstore/springboot-useoptional
|
- samples/server/petstore/springboot-useoptional
|
||||||
- samples/server/petstore/springboot-reactive
|
- samples/server/petstore/springboot-reactive
|
||||||
|
- samples/server/petstore/springboot-reactive-noResponseEntity
|
||||||
- samples/server/petstore/springboot-implicitHeaders
|
- samples/server/petstore/springboot-implicitHeaders
|
||||||
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
- samples/openapi3/server/petstore/springboot-implicitHeaders
|
||||||
- samples/server/petstore/springboot-delegate
|
- samples/server/petstore/springboot-delegate
|
||||||
@@ -47,7 +56,7 @@ jobs:
|
|||||||
- samples/server/petstore/springboot-spring-pageable-without-j8
|
- samples/server/petstore/springboot-spring-pageable-without-j8
|
||||||
- samples/server/petstore/springboot-spring-pageable
|
- samples/server/petstore/springboot-spring-pageable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|||||||
50
.github/workflows/samples-swift.yaml
vendored
Normal file
50
.github/workflows/samples-swift.yaml
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
name: Samples Swift
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/swift5/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/swift5/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest]
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/swift5/alamofireLibrary
|
||||||
|
- samples/client/petstore/swift5/anycodableLibrary
|
||||||
|
- samples/client/petstore/swift5/asyncAwaitLibrary
|
||||||
|
- samples/client/petstore/swift5/combineLibrary
|
||||||
|
- samples/client/petstore/swift5/default
|
||||||
|
- samples/client/petstore/swift5/deprecated
|
||||||
|
- samples/client/petstore/swift5/frozenEnums
|
||||||
|
- samples/client/petstore/swift5/nonPublicApi
|
||||||
|
- samples/client/petstore/swift5/objcCompatible
|
||||||
|
- samples/client/petstore/swift5/oneOf
|
||||||
|
- samples/client/petstore/swift5/promisekitLibrary
|
||||||
|
- samples/client/petstore/swift5/readonlyProperties
|
||||||
|
- samples/client/petstore/swift5/resultLibrary
|
||||||
|
- samples/client/petstore/swift5/rxswiftLibrary
|
||||||
|
- samples/client/petstore/swift5/urlsessionLibrary
|
||||||
|
- samples/client/petstore/swift5/validation
|
||||||
|
# NOTE: disabled as vaporLibrary doesnt build when adding this CI config
|
||||||
|
#- samples/client/petstore/swift5/vaporLibrary
|
||||||
|
- samples/client/petstore/swift5/x-swift-hashable
|
||||||
|
include:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
sample: samples/client/petstore/swift5/alamofireLibrary
|
||||||
|
name: Build Swift samples
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: swift-actions/setup-swift@v1
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
with:
|
||||||
|
swift-version: '5'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: swift build
|
||||||
30
.github/workflows/samples-zapier.yaml
vendored
Normal file
30
.github/workflows/samples-zapier.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Samples Zapier
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'samples/client/petstore/zapier/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/zapier/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
validate:
|
||||||
|
name: Test zapier generation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/zapier
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
- name: Install dependencies
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
- name: Validate
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: node index.js
|
||||||
8
.github/workflows/sonar.yml
vendored
8
.github/workflows/sonar.yml
vendored
@@ -12,15 +12,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.repository_owner == 'OpenAPITools' }}
|
if: ${{ github.repository_owner == 'OpenAPITools' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Compile with Maven
|
- name: Compile with Maven
|
||||||
run: mvn -B -q clean install jacoco:report
|
run: ./mvnw -B -q clean install jacoco:report
|
||||||
- name: Jacoco Aggregate
|
- name: Jacoco Aggregate
|
||||||
run: mvn jacoco:report-aggregate
|
run: ./mvnw jacoco:report-aggregate
|
||||||
- name: Publish to Sonar
|
- name: Publish to Sonar
|
||||||
run: mvn -B -q -nsu sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}
|
run: ./mvnw -B -q -nsu sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}
|
||||||
|
|||||||
13
.github/workflows/windows.yaml
vendored
13
.github/workflows/windows.yaml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
java: [11, 17]
|
java: [11, 17]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
@@ -39,14 +39,19 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.7.0
|
uses: s4u/setup-maven-action@v1.9.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.9.0
|
maven-version: 3.8.8
|
||||||
- name: Run maven
|
- name: Run maven
|
||||||
run: mvn clean --no-snapshot-updates --batch-mode --quiet install
|
run: ./mvnw clean --no-snapshot-updates --batch-mode --quiet install
|
||||||
env:
|
env:
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
- name: Test Template Retrieval
|
||||||
|
run: |
|
||||||
|
cd modules/openapi-generator-cli/target
|
||||||
|
# generator names containing "-" caused problems in the past, see https://github.com/OpenAPITools/openapi-generator/issues/9528
|
||||||
|
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v2
|
||||||
- name: Gradle tests
|
- name: Gradle tests
|
||||||
|
|||||||
8
.gitignore
vendored
8
.gitignore
vendored
@@ -89,6 +89,7 @@ samples/client/petstore/cpp-restsdk/cmake_install.cmake
|
|||||||
**/.gradle
|
**/.gradle
|
||||||
samples/client/petstore/java/hello.txt
|
samples/client/petstore/java/hello.txt
|
||||||
samples/client/petstore/java/okhttp-gson/hello.txt
|
samples/client/petstore/java/okhttp-gson/hello.txt
|
||||||
|
samples/client/petstore/java/okhttp-gson-3.1/hello.txt
|
||||||
samples/client/petstore/java/jersey1/hello.txt
|
samples/client/petstore/java/jersey1/hello.txt
|
||||||
samples/client/petstore/java/jersey2-java8/hello.txt
|
samples/client/petstore/java/jersey2-java8/hello.txt
|
||||||
samples/client/petstore/java/jersey2/hello.txt
|
samples/client/petstore/java/jersey2/hello.txt
|
||||||
@@ -173,17 +174,17 @@ samples/client/petstore/csharp-refactor/OpenAPIClient/nuget.exe
|
|||||||
# Python
|
# Python
|
||||||
*.pyc
|
*.pyc
|
||||||
__pycache__
|
__pycache__
|
||||||
|
.venv/
|
||||||
samples/client/petstore/python/dev-requirements.txt.log
|
samples/client/petstore/python/dev-requirements.txt.log
|
||||||
samples/client/petstore/python/swagger_client.egg-info/SOURCES.txt
|
samples/client/petstore/python/swagger_client.egg-info/SOURCES.txt
|
||||||
samples/client/petstore/python/.coverage
|
samples/client/petstore/python/.coverage
|
||||||
samples/client/petstore/python/.projectile
|
samples/client/petstore/python/.projectile
|
||||||
samples/client/petstore/python/.venv/
|
|
||||||
samples/client/petstore/python-asyncio/.venv/
|
|
||||||
samples/client/petstore/python-asyncio/.pytest_cache/
|
samples/client/petstore/python-asyncio/.pytest_cache/
|
||||||
samples/client/petstore/python-tornado/.venv/
|
|
||||||
|
|
||||||
# PHP
|
# PHP
|
||||||
samples/client/petstore/php/OpenAPIClient-php/composer.lock
|
samples/client/petstore/php/OpenAPIClient-php/composer.lock
|
||||||
|
samples/client/petstore/php-nextgen/OpenAPIClient-php/composer.lock
|
||||||
samples/client/petstore/php-dt/composer.lock
|
samples/client/petstore/php-dt/composer.lock
|
||||||
samples/client/petstore/php-dt-modern/composer.lock
|
samples/client/petstore/php-dt-modern/composer.lock
|
||||||
samples/openapi3/server/petstore/php-symfony/SymfonyBundle-php/composer.lock
|
samples/openapi3/server/petstore/php-symfony/SymfonyBundle-php/composer.lock
|
||||||
@@ -211,6 +212,7 @@ samples/server/petstore/kotlin-server/ktor/build
|
|||||||
samples/server/petstore/kotlin-springboot/build
|
samples/server/petstore/kotlin-springboot/build
|
||||||
samples/client/petstore/kotlin*/src/main/kotlin/test/
|
samples/client/petstore/kotlin*/src/main/kotlin/test/
|
||||||
samples/client/petstore/kotlin*/build/
|
samples/client/petstore/kotlin*/build/
|
||||||
|
samples/server/others/kotlin-server/jaxrs-spec/build/
|
||||||
|
|
||||||
# haskell
|
# haskell
|
||||||
.stack-work
|
.stack-work
|
||||||
|
|||||||
117
.mvn/wrapper/MavenWrapperDownloader.java
vendored
117
.mvn/wrapper/MavenWrapperDownloader.java
vendored
@@ -1,117 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2007-present the original author or authors.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
import java.net.*;
|
|
||||||
import java.io.*;
|
|
||||||
import java.nio.channels.*;
|
|
||||||
import java.util.Properties;
|
|
||||||
|
|
||||||
public class MavenWrapperDownloader {
|
|
||||||
|
|
||||||
private static final String WRAPPER_VERSION = "0.5.6";
|
|
||||||
/**
|
|
||||||
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
|
|
||||||
*/
|
|
||||||
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
|
|
||||||
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
|
|
||||||
* use instead of the default one.
|
|
||||||
*/
|
|
||||||
private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
|
|
||||||
".mvn/wrapper/maven-wrapper.properties";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Path where the maven-wrapper.jar will be saved to.
|
|
||||||
*/
|
|
||||||
private static final String MAVEN_WRAPPER_JAR_PATH =
|
|
||||||
".mvn/wrapper/maven-wrapper.jar";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name of the property which should be used to override the default download url for the wrapper.
|
|
||||||
*/
|
|
||||||
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
|
|
||||||
|
|
||||||
public static void main(String args[]) {
|
|
||||||
System.out.println("- Downloader started");
|
|
||||||
File baseDirectory = new File(args[0]);
|
|
||||||
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
|
|
||||||
|
|
||||||
// If the maven-wrapper.properties exists, read it and check if it contains a custom
|
|
||||||
// wrapperUrl parameter.
|
|
||||||
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
|
|
||||||
String url = DEFAULT_DOWNLOAD_URL;
|
|
||||||
if(mavenWrapperPropertyFile.exists()) {
|
|
||||||
FileInputStream mavenWrapperPropertyFileInputStream = null;
|
|
||||||
try {
|
|
||||||
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
|
|
||||||
Properties mavenWrapperProperties = new Properties();
|
|
||||||
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
|
|
||||||
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
|
|
||||||
} catch (IOException e) {
|
|
||||||
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
|
|
||||||
} finally {
|
|
||||||
try {
|
|
||||||
if(mavenWrapperPropertyFileInputStream != null) {
|
|
||||||
mavenWrapperPropertyFileInputStream.close();
|
|
||||||
}
|
|
||||||
} catch (IOException e) {
|
|
||||||
// Ignore ...
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
System.out.println("- Downloading from: " + url);
|
|
||||||
|
|
||||||
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
|
|
||||||
if(!outputFile.getParentFile().exists()) {
|
|
||||||
if(!outputFile.getParentFile().mkdirs()) {
|
|
||||||
System.out.println(
|
|
||||||
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
|
|
||||||
try {
|
|
||||||
downloadFileFromURL(url, outputFile);
|
|
||||||
System.out.println("Done");
|
|
||||||
System.exit(0);
|
|
||||||
} catch (Throwable e) {
|
|
||||||
System.out.println("- Error downloading");
|
|
||||||
e.printStackTrace();
|
|
||||||
System.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void downloadFileFromURL(String urlString, File destination) throws Exception {
|
|
||||||
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
|
|
||||||
String username = System.getenv("MVNW_USERNAME");
|
|
||||||
char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
|
|
||||||
Authenticator.setDefault(new Authenticator() {
|
|
||||||
@Override
|
|
||||||
protected PasswordAuthentication getPasswordAuthentication() {
|
|
||||||
return new PasswordAuthentication(username, password);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
URL website = new URL(urlString);
|
|
||||||
ReadableByteChannel rbc;
|
|
||||||
rbc = Channels.newChannel(website.openStream());
|
|
||||||
FileOutputStream fos = new FileOutputStream(destination);
|
|
||||||
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
|
|
||||||
fos.close();
|
|
||||||
rbc.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
BIN
.mvn/wrapper/maven-wrapper.jar
vendored
BIN
.mvn/wrapper/maven-wrapper.jar
vendored
Binary file not shown.
8
.mvn/wrapper/maven-wrapper.properties
vendored
8
.mvn/wrapper/maven-wrapper.properties
vendored
@@ -5,14 +5,14 @@
|
|||||||
# to you under the Apache License, Version 2.0 (the
|
# to you under the Apache License, Version 2.0 (the
|
||||||
# "License"); you may not use this file except in compliance
|
# "License"); you may not use this file except in compliance
|
||||||
# with the License. You may obtain a copy of the License at
|
# with the License. You may obtain a copy of the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing,
|
# Unless required by applicable law or agreed to in writing,
|
||||||
# software distributed under the License is distributed on an
|
# software distributed under the License is distributed on an
|
||||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
|
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.8/apache-maven-3.8.8-bin.zip
|
||||||
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
|
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
|
||||||
|
|||||||
22
.travis.yml
22
.travis.yml
@@ -127,21 +127,6 @@ before_install:
|
|||||||
gpg --check-trustdb ;
|
gpg --check-trustdb ;
|
||||||
fi;
|
fi;
|
||||||
- pushd .; cd website; yarn install; popd
|
- pushd .; cd website; yarn install; popd
|
||||||
# install Deno
|
|
||||||
#- sh -s v1.6.2 < ./CI/deno_install.sh
|
|
||||||
#- export PATH="$HOME/.deno/bin:$PATH"
|
|
||||||
|
|
||||||
install:
|
|
||||||
# Add Godeps dependencies to GOPATH and PATH
|
|
||||||
#- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.4 bash)"
|
|
||||||
#- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
|
|
||||||
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$HOME/.cargo/bin:$PATH:/usr/lib/dart/bin"
|
|
||||||
#- go version
|
|
||||||
- gcc -v
|
|
||||||
- echo $CC
|
|
||||||
- echo $CXX
|
|
||||||
#- pub version
|
|
||||||
#- dart --version
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# fail fast
|
# fail fast
|
||||||
@@ -151,14 +136,13 @@ script:
|
|||||||
# 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.
|
||||||
# show "error" only to reduce the log size
|
# show "error" only to reduce the log size
|
||||||
- mvn -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -DskipTests -Dmaven.javadoc.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error 2>&1 | grep -i error
|
- ./mvnw -e --no-snapshot-updates --quiet --batch-mode --show-version clean install -DskipTests -Dmaven.javadoc.skip=true -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
|
||||||
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ]; then
|
||||||
echo "Publishing from branch $TRAVIS_BRANCH";
|
echo "Publishing from branch $TRAVIS_BRANCH";
|
||||||
mvn clean deploy --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
./mvnw clean deploy --quiet -DskipTests=true -B -U -P release --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
||||||
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
|
||||||
pushd .;
|
pushd .;
|
||||||
cd modules/openapi-generator-gradle-plugin;
|
cd modules/openapi-generator-gradle-plugin;
|
||||||
@@ -167,7 +151,7 @@ after_success:
|
|||||||
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";
|
||||||
mvn clean deploy --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
./mvnw clean deploy --quiet --settings CI/settings.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error;
|
||||||
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;
|
||||||
|
|||||||
@@ -9,20 +9,11 @@ set -e
|
|||||||
|
|
||||||
export NODE_ENV=test
|
export NODE_ENV=test
|
||||||
|
|
||||||
function cleanup {
|
|
||||||
# Show logs of 'petstore.swagger' container to troubleshoot Unit Test failures, if any.
|
|
||||||
if [ "$NODE_INDEX" != "4" ]; then
|
|
||||||
docker logs petstore.swagger # container name specified in circle.yml
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
|
|
||||||
if [ "$NODE_INDEX" = "1" ]; then
|
if [ "$NODE_INDEX" = "1" ]; then
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test Go"
|
echo "Running node $NODE_INDEX to test Go"
|
||||||
@@ -43,7 +34,7 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
go version
|
go version
|
||||||
|
|
||||||
# run integration tests
|
# run integration tests
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
elif [ "$NODE_INDEX" = "3" ]; then
|
elif [ "$NODE_INDEX" = "3" ]; then
|
||||||
|
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.node3' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.node3' defined in pom.xml ..."
|
||||||
@@ -72,7 +63,7 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
||||||
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
|
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "4" ]; then
|
elif [ "$NODE_INDEX" = "4" ]; then
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.node4' defined in pom.xml ..."
|
||||||
@@ -87,8 +78,8 @@ else
|
|||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
mvn --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
mvn --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
./mvnw --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
95
README.md
95
README.md
@@ -10,12 +10,12 @@
|
|||||||
[](https://twitter.com/oas_generator)
|
[](https://twitter.com/oas_generator)
|
||||||
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
[](https://gitpod.io/#https://github.com/OpenAPITools/openapi-generator)
|
||||||
[](https://conan.io/center/openapi-generator)
|
[](https://conan.io/center/openapi-generator)
|
||||||
|
[](https://ge.openapi-generator.tech/scans)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.0.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.0.1`):
|
||||||
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
[](https://app.travis-ci.com/github/OpenAPITools/openapi-generator/builds)
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||||
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
[](https://ci.appveyor.com/project/WilliamCheng/openapi-generator)
|
||||||
@@ -59,6 +59,7 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<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/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/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)
|
[<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)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/bileto.png" width="128" height="128">](https://www.bileto.com/?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
|
||||||
|
|
||||||
@@ -72,7 +73,7 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (2.x - 15.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo** |
|
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (9.x - 16.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo**, **Zapier** |
|
||||||
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
||||||
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
||||||
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
||||||
@@ -114,13 +115,16 @@ 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/) | May/Jun 2023 | Major release with breaking changes (no fallback) |
|
| 7.0.1 (upcoming patch release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.0.1-SNAPSHOT/) | 08.09.2023 | Patch release (enhancements, bug fixes, etc) |
|
||||||
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) (latest stable release) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
| [7.0.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.0.0) (latest stable release) | 25.08.2023 | Major release with breaking changes (no fallback) |
|
||||||
|
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
||||||
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
||||||
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
||||||
|
|
||||||
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
OpenAPI Spec compatibility: 1.0, 1.1, 1.2, 2.0, 3.0
|
||||||
|
|
||||||
|
(We do not publish daily/nightly build. Please use SNAPSHOT instead)
|
||||||
|
|
||||||
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.
|
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.
|
||||||
@@ -173,27 +177,28 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
|
|||||||
|
|
||||||
### [1.3 - Download JAR](#table-of-contents)
|
### [1.3 - Download JAR](#table-of-contents)
|
||||||
<!-- 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 11 runtime at a minimum):
|
||||||
|
|
||||||
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.0.0/openapi-generator-cli-7.0.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.0.0/openapi-generator-cli-7.0.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.6.0/openapi-generator-cli-6.6.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.0.0/openapi-generator-cli-7.0.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.
|
||||||
|
|
||||||
For Mac users, please make sure Java 8 is installed (Tips: run `java -version` to check the version), and export `JAVA_HOME` in order to use the supported Java version:
|
For Mac users, please make sure Java 11 is installed (Tips: run `java -version` to check the version), and export `JAVA_HOME` in order to use the supported Java version:
|
||||||
```sh
|
```sh
|
||||||
export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
|
export JAVA_HOME=`/usr/libexec/java_home -v 1.11`
|
||||||
export PATH=${JAVA_HOME}/bin:$PATH
|
export PATH=${JAVA_HOME}/bin:$PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
### Launcher Script
|
### Launcher Script
|
||||||
|
|
||||||
@@ -242,19 +247,14 @@ openapi-generator-cli version # is always 4.0.2, unless any of the above overrid
|
|||||||
|
|
||||||
To build from source, you need the following installed and available in your `$PATH:`
|
To build from source, you need the following installed and available in your `$PATH:`
|
||||||
|
|
||||||
* [Java 8](https://www.oracle.com/technetwork/java/index.html)
|
* [Java 11](https://adoptium.net/)
|
||||||
|
|
||||||
* [Apache Maven 3.3.4 or greater](https://maven.apache.org/)
|
* [Apache Maven 3.3.4 or greater](https://maven.apache.org/) (optional)
|
||||||
|
|
||||||
After cloning the project, you can build it from source with this command:
|
After cloning the project, you can build it from source using [maven wrapper](https://github.com/takari/maven-wrapper):
|
||||||
```sh
|
|
||||||
mvn clean install
|
|
||||||
```
|
|
||||||
|
|
||||||
If you don't have maven installed, you may directly use the included [maven wrapper](https://github.com/takari/maven-wrapper), and build with the command:
|
- Linux: `./mvnw clean install`
|
||||||
```sh
|
- Windows: `mvnw.cmd clean install`
|
||||||
./mvnw clean install
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Nix users
|
#### Nix users
|
||||||
|
|
||||||
@@ -262,7 +262,7 @@ If you're a nix user, you can enter OpenAPI Generator shell, by typing:
|
|||||||
```sh
|
```sh
|
||||||
nix develop
|
nix develop
|
||||||
```
|
```
|
||||||
It will enter a shell with Java 8 and Maven installed.
|
It will enter a shell with Java 11 installed.
|
||||||
|
|
||||||
Direnv supports automatically loading of the nix developer shell, so if you're using direnv too, type:
|
Direnv supports automatically loading of the nix developer shell, so if you're using direnv too, type:
|
||||||
```sh
|
```sh
|
||||||
@@ -272,9 +272,8 @@ and have `java` and `mvn` set up with correct versions each time you enter proje
|
|||||||
|
|
||||||
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
The default build contains minimal static analysis (via CheckStyle). To run your build with PMD and Spotbugs, use the `static-analysis` profile:
|
||||||
|
|
||||||
```sh
|
- Linux: `./mvnw -Pstatic-analysis clean install`
|
||||||
mvn -Pstatic-analysis clean install
|
- Windows: `mvnw.cmd -Pstatic-analysis clean install`
|
||||||
```
|
|
||||||
|
|
||||||
### [1.5 - Homebrew](#table-of-contents)
|
### [1.5 - Homebrew](#table-of-contents)
|
||||||
|
|
||||||
@@ -290,11 +289,13 @@ To reinstall with the latest master, run `brew uninstall openapi-generator && br
|
|||||||
To install OpenJDK (pre-requisites), please run
|
To install OpenJDK (pre-requisites), please run
|
||||||
```sh
|
```sh
|
||||||
brew tap AdoptOpenJDK/openjdk
|
brew tap AdoptOpenJDK/openjdk
|
||||||
brew install --cask adoptopenjdk12
|
brew install --cask adoptopenjdk11
|
||||||
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home/
|
export JAVA_HOME=`/usr/libexec/java_home -v 1.11`
|
||||||
```
|
```
|
||||||
|
|
||||||
To install Maven, please run
|
or download installer via https://adoptium.net/
|
||||||
|
|
||||||
|
To install Maven (optional), please run
|
||||||
```sh
|
```sh
|
||||||
brew install maven
|
brew install maven
|
||||||
```
|
```
|
||||||
@@ -377,19 +378,18 @@ Once built, `run-in-docker.sh` will act as an executable for openapi-generator-c
|
|||||||
```sh
|
```sh
|
||||||
./run-in-docker.sh help # Executes 'help' command for openapi-generator-cli
|
./run-in-docker.sh help # Executes 'help' command for openapi-generator-cli
|
||||||
./run-in-docker.sh list # Executes 'list' command for openapi-generator-cli
|
./run-in-docker.sh list # Executes 'list' command for openapi-generator-cli
|
||||||
./run-in-docker.sh /gen/bin/go-petstore.sh # Builds the Go client
|
|
||||||
./run-in-docker.sh generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
./run-in-docker.sh generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
||||||
-g go -o /gen/out/go-petstore -p packageName=petstore # generates go client, outputs locally to ./out/go-petstore
|
-g go -o /gen/out/go-petstore -p packageName=petstore # generates go client, outputs locally to ./out/go-petstore
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Troubleshooting
|
##### Troubleshooting
|
||||||
|
|
||||||
If an error like this occurs, just execute the **mvn clean install -U** command:
|
If an error like this occurs, just execute the **./mvnw clean install -U** command:
|
||||||
|
|
||||||
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project openapi-generator: A type incompatibility occurred while executing org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test: java.lang.ExceptionInInitializerError cannot be cast to java.io.IOException
|
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project openapi-generator: A type incompatibility occurred while executing org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test: java.lang.ExceptionInInitializerError cannot be cast to java.io.IOException
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./run-in-docker.sh mvn clean install -U
|
./run-in-docker.sh ./mvnw clean install -U
|
||||||
```
|
```
|
||||||
|
|
||||||
> Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project openapi-generator-gradle-plugin-mvn-wrapper: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.7-bin.zip'
|
> Failed to execute goal org.fortasoft:gradle-maven-plugin:1.0.8:invoke (default) on project openapi-generator-gradle-plugin-mvn-wrapper: org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.7-bin.zip'
|
||||||
@@ -404,7 +404,7 @@ cd openapi-generator
|
|||||||
vagrant up
|
vagrant up
|
||||||
vagrant ssh
|
vagrant ssh
|
||||||
cd /vagrant
|
cd /vagrant
|
||||||
./run-in-docker.sh mvn package
|
./run-in-docker.sh ./mvnw package
|
||||||
```
|
```
|
||||||
|
|
||||||
### [1.7 - NPM](#table-of-contents)
|
### [1.7 - NPM](#table-of-contents)
|
||||||
@@ -423,7 +423,7 @@ openapi-generator-cli version
|
|||||||
To use a specific version of "openapi-generator-cli"
|
To use a specific version of "openapi-generator-cli"
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
openapi-generator-cli version-manager set 6.6.0
|
openapi-generator-cli version-manager set 7.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -438,7 +438,7 @@ To generate a PHP client for [petstore.yaml](https://raw.githubusercontent.com/o
|
|||||||
```sh
|
```sh
|
||||||
git clone https://github.com/openapitools/openapi-generator
|
git clone https://github.com/openapitools/openapi-generator
|
||||||
cd openapi-generator
|
cd openapi-generator
|
||||||
mvn clean package
|
./mvnw clean package
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
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 \
|
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
||||||
-g php \
|
-g php \
|
||||||
@@ -447,7 +447,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
|
|||||||
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
||||||
|
|
||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar)
|
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.0.0/openapi-generator-cli-7.0.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`
|
||||||
@@ -591,6 +591,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Adyen](https://www.adyen.com/)
|
- [Adyen](https://www.adyen.com/)
|
||||||
- [Agoda](https://www.agoda.com/)
|
- [Agoda](https://www.agoda.com/)
|
||||||
- [Airthings](https://www.airthings.com/)
|
- [Airthings](https://www.airthings.com/)
|
||||||
|
- [Aleri Solutions Gmbh](https://www.aleri.de/)
|
||||||
- [Allianz](https://www.allianz.com)
|
- [Allianz](https://www.allianz.com)
|
||||||
- [Angular.Schule](https://angular.schule/)
|
- [Angular.Schule](https://angular.schule/)
|
||||||
- [Aqovia](https://aqovia.com/)
|
- [Aqovia](https://aqovia.com/)
|
||||||
@@ -650,6 +651,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Klarna](https://www.klarna.com/)
|
- [Klarna](https://www.klarna.com/)
|
||||||
- [Kronsoft Development](https://www.kronsoft.ro/home/)
|
- [Kronsoft Development](https://www.kronsoft.ro/home/)
|
||||||
- [Kubernetes](https://kubernetes.io)
|
- [Kubernetes](https://kubernetes.io)
|
||||||
|
- [Landeshauptstadt München - it@M](https://muenchen.digital/it-at-m/)
|
||||||
- [Linode](https://www.linode.com/)
|
- [Linode](https://www.linode.com/)
|
||||||
- [Logicdrop](https://www.logicdrop.com)
|
- [Logicdrop](https://www.logicdrop.com)
|
||||||
- [Lumeris](https://www.lumeris.com)
|
- [Lumeris](https://www.lumeris.com)
|
||||||
@@ -903,6 +905,12 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2023-03-19 - [EXOGEM: Extending OpenAPI Generator for Monitoring of RESTful APIs](https://link.springer.com/chapter/10.1007/978-3-031-26507-5_10) by Daniel Friis Holtebo, Jannik Lucas Sommer, Magnus Mølgaard Lund, Alessandro Tibo, Junior Dongo & Michele Albano at "ICSOC 2022: Service-Oriented Computing – ICSOC 2022 Workshops"
|
- 2023-03-19 - [EXOGEM: Extending OpenAPI Generator for Monitoring of RESTful APIs](https://link.springer.com/chapter/10.1007/978-3-031-26507-5_10) by Daniel Friis Holtebo, Jannik Lucas Sommer, Magnus Mølgaard Lund, Alessandro Tibo, Junior Dongo & Michele Albano at "ICSOC 2022: Service-Oriented Computing – ICSOC 2022 Workshops"
|
||||||
- 2023-03-28 - [API-First Design with OpenAPI Generator](https://www.linkedin.com/pulse/api-first-design-openapi-generator-jonathan-manera/) by [Jonathan Manera](https://www.linkedin.com/in/manerajona/)
|
- 2023-03-28 - [API-First Design with OpenAPI Generator](https://www.linkedin.com/pulse/api-first-design-openapi-generator-jonathan-manera/) by [Jonathan Manera](https://www.linkedin.com/in/manerajona/)
|
||||||
- 2023-03-28 - [ハンズオンで学ぶサーバーサイド Kotlin(Spring Boot&Arrow&OpenAPI Generator)v1.0.1](https://zenn.dev/msksgm/books/implementing-server-side-kotlin-development) by [msk](https://zenn.dev/msksgm)
|
- 2023-03-28 - [ハンズオンで学ぶサーバーサイド Kotlin(Spring Boot&Arrow&OpenAPI Generator)v1.0.1](https://zenn.dev/msksgm/books/implementing-server-side-kotlin-development) by [msk](https://zenn.dev/msksgm)
|
||||||
|
- 2023-04-01 - [OpenAPI Client Code Generation](https://testingboss.com/blog/openapi-client-generation/) by Kwo Ding
|
||||||
|
- 2023-04-27 - [Create an Angular Client using OpenAPI Specifications](Create an Angular Client using OpenAPI Specifications) by [Patric](https://pguso.medium.com/)
|
||||||
|
- 2023-05-16 - [Adyen for Java developers](https://www.adyen.com/blog/adyen-java-library) by [Beppe Catanese, Developer Advocate, Adyen](https://github.com/gcatanese)
|
||||||
|
- 2023-05-18 - [如何基于 Swagger 使用 OpenAPI Generator 生成 JMeter 脚本?](https://blog.51cto.com/u_15181572/6294974) by [高楼(Zee)](https://blog.51cto.com/u_15181572)
|
||||||
|
- 2023-06-28 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
||||||
|
- 2023-06-30 - [Generate Client SDKs with OpenApi Generator in Springboot](https://medium.com/@ramavathvinayak/generate-client-sdks-with-openapi-generator-in-springboot-f9f012e73c0b) by [Vinayak Ramavath](https://medium.com/@ramavathvinayak)
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@@ -1003,10 +1011,12 @@ Here is a list of template creators:
|
|||||||
* Scala (scalaz & http4s): @tbrown1979
|
* Scala (scalaz & http4s): @tbrown1979
|
||||||
* Scala (Akka): @cchafer
|
* Scala (Akka): @cchafer
|
||||||
* Scala (sttp): @chameleon82
|
* Scala (sttp): @chameleon82
|
||||||
|
* Scala (sttp4): @flsh86
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
* Swift 3: @hexelon
|
* Swift 3: @hexelon
|
||||||
* Swift 4: @ehyche
|
* Swift 4: @ehyche
|
||||||
* Swift 5: @4brunu
|
* Swift 5: @4brunu
|
||||||
|
* Swift Combine: @dydus0x14
|
||||||
* TypeScript (Angular1): @mhardorf
|
* TypeScript (Angular1): @mhardorf
|
||||||
* TypeScript (Angular2): @roni-frantchi
|
* TypeScript (Angular2): @roni-frantchi
|
||||||
* TypeScript (Angular6): @akehir
|
* TypeScript (Angular6): @akehir
|
||||||
@@ -1020,6 +1030,7 @@ Here is a list of template creators:
|
|||||||
* TypeScript (Rxjs): @denyo
|
* TypeScript (Rxjs): @denyo
|
||||||
* TypeScript (redux-query): @petejohansonxo
|
* TypeScript (redux-query): @petejohansonxo
|
||||||
* Xojo: @Topheee
|
* Xojo: @Topheee
|
||||||
|
* Zapier: @valmoz, @emajo
|
||||||
* Server Stubs
|
* Server Stubs
|
||||||
* Ada: @stcarrez
|
* Ada: @stcarrez
|
||||||
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* C# ASP.NET 5: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
@@ -1129,7 +1140,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
| Bash | @frol (2017/07) @bkryza (2017/08) @kenjones-cisco (2017/09) |
|
||||||
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) |
|
| 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++ | @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) |
|
| C# | @mandrean (2017/08) @shibayan (2020/02) @Blackclaws (2021/03) @lucamazzanti (2021/05) @iBicha (2023/07) |
|
||||||
| Clojure | |
|
| Clojure | |
|
||||||
| Crystal | @cyangle (2021/01) |
|
| 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) |
|
| Dart | @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12) @ahmednfwela (2021/08) |
|
||||||
@@ -1142,12 +1153,12 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| GraphQL | @renepardon (2018/12) |
|
| GraphQL | @renepardon (2018/12) |
|
||||||
| Groovy | |
|
| Groovy | |
|
||||||
| Haskell | |
|
| 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 | @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) @martin-mfg (2023/08) |
|
||||||
| 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) |
|
| 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) @martin-mfg (2023/08) |
|
||||||
| JMeter | @kannkyo (2021/01) |
|
| JMeter | @kannkyo (2021/01) |
|
||||||
| Jetbrains HTTP Client | @jlengrand (2023/01) |
|
| Jetbrains HTTP Client | @jlengrand (2023/01) |
|
||||||
| Julia | @tanmaykm (2023/01) |
|
| Julia | @tanmaykm (2023/01) |
|
||||||
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) |
|
| Kotlin | @jimschubert (2017/09) [:heart:](https://www.patreon.com/jimschubert), @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03) @stefankoppier (2022/06) |
|
||||||
| Lua | @daurnimator (2017/08) |
|
| Lua | @daurnimator (2017/08) |
|
||||||
| N4JS | @mmews-n4 (2023/03) |
|
| N4JS | @mmews-n4 (2023/03) |
|
||||||
| Nim | |
|
| Nim | |
|
||||||
@@ -1157,12 +1168,12 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
|
| 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) |
|
| 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) |
|
| PowerShell | @wing328 (2020/05) |
|
||||||
| Python | @spacether (2019/11) [:heart:][spacether sponsorship] @krjakbrjak (2023/02) |
|
| Python | @krjakbrjak (2023/02) |
|
||||||
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
| R | @Ramanth (2019/07) @saigiridhar21 (2019/07) |
|
||||||
| Ruby | @cliffano (2017/07) @zlx (2017/09) @autopp (2019/02) |
|
| 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) |
|
| 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) |
|
| 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) @fish86 (2023/06) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) |
|
||||||
| Xojo | @Topheee (2023/04) |
|
| Xojo | @Topheee (2023/04) |
|
||||||
|
|
||||||
|
|||||||
49
appveyor.yml
49
appveyor.yml
@@ -25,54 +25,41 @@ build_script:
|
|||||||
## build C# aspnetcore 2.2 server
|
## build C# aspnetcore 2.2 server
|
||||||
#- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
#- dotnet build samples\server\petstore\aspnetcore\Org.OpenAPITools.sln
|
||||||
## build C# API client (multiple frameworks)
|
## build C# API client (multiple frameworks)
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClientCoreAndNet47\Org.OpenAPITools.sln
|
||||||
## build C# API client (httpclient)
|
## build C# API client (httpclient)
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-httpclient\Org.OpenAPITools.sln
|
||||||
## build C# API client (generichost)
|
## build C# API client (generichost)
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-generichost-netstandard2.0\Org.OpenAPITools.sln
|
||||||
## build C# API client (netcore)
|
## build C# API client (netcore)
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient\Org.OpenAPITools.sln
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClientCore\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\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\OpenAPIClient-net47\Org.OpenAPITools.sln
|
||||||
## build C# API client (.net framework 4.8)
|
## build C# API client (.net framework 4.8)
|
||||||
#- dotnet build samples\client\petstore\csharp-netcore\OpenAPIClient-net48\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\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\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\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
||||||
|
|
||||||
## build C# API client
|
|
||||||
#- 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"
|
|
||||||
## build C# API client (with PropertyChanged)
|
|
||||||
#- 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"
|
|
||||||
# build C# .net standard 1.3+ API client
|
|
||||||
#- 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"
|
|
||||||
test_script:
|
test_script:
|
||||||
# test c# API client (multiple frameworks)
|
# test c# API client (multiple frameworks)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClientCoreAndNet47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (httpclient)
|
# test c# API client (httpclient)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-httpclient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-httpclient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (generichost)
|
# test c# API client (generichost)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-generichost-netstandard2.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test c# API client (netcore)
|
# test c# API client (netcore)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
#- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
#- dotnet test samples\client\petstore\csharp\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\OpenAPIClient-net47\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
# test C# API client (.net framework 4.8)
|
# test C# API client (.net framework 4.8)
|
||||||
- dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient-net48\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\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\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\OpenAPIClient-ConditionalSerialization\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
## 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
|
|
||||||
## 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
|
|
||||||
|
|
||||||
### TODO: Execute all generators via powershell or other
|
### TODO: Execute all generators via powershell or other
|
||||||
# generate all petstore clients
|
# generate all petstore clients
|
||||||
|
|||||||
15
bin/configs/ada.yaml
Normal file
15
bin/configs/ada.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
generatorName: ada
|
||||||
|
outputDir: samples/client/petstore/ada
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/ada/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Ada
|
||||||
|
nameMappings:
|
||||||
|
_type: P_UnderscoreType
|
||||||
|
type_: P_TypeWithUnderscore
|
||||||
|
http_debug_operation: P_HTTPDebugOperation
|
||||||
|
parameterNameMappings:
|
||||||
|
_type: UnderscoreType
|
||||||
|
type_: TypeWithUnderscore
|
||||||
|
http_debug_operation: HttpDebugOperation
|
||||||
|
additionalProperties:
|
||||||
|
modelPackage: Samples.Petstore
|
||||||
|
projectName: Petstore
|
||||||
@@ -2,3 +2,6 @@ generatorName: c
|
|||||||
outputDir: samples/client/petstore/c
|
outputDir: samples/client/petstore/c
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/c/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
|
||||||
|
modelNameMappings:
|
||||||
|
another_model: MappedModel
|
||||||
|
another_property: mappedProperty
|
||||||
|
|||||||
@@ -7,3 +7,12 @@ additionalProperties:
|
|||||||
moduleName: Petstore
|
moduleName: Petstore
|
||||||
shardName: petstore
|
shardName: petstore
|
||||||
strictSpecBehavior: false
|
strictSpecBehavior: false
|
||||||
|
modelNameMappings:
|
||||||
|
PropertyNameMapping: AnotherPropertyNameMapping
|
||||||
|
nameMappings:
|
||||||
|
_type: underscore_type
|
||||||
|
type_: type_with_underscore
|
||||||
|
type-: type_with_dash
|
||||||
|
parameterNameMappings:
|
||||||
|
_type: underscore_type
|
||||||
|
type_: type_with_underscore
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: csharp
|
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
7
bin/configs/csharp-functions-latest.yaml
Normal file
7
bin/configs/csharp-functions-latest.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: csharp-functions
|
||||||
|
outputDir: samples/client/petstore/csharp-functions
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp-functions
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
userSecretsGuid: "76e9e993-9159-441c-9c5b-fe95e7f4f020"
|
||||||
11
bin/configs/csharp-generichost-latest-allOf.yaml
Normal file
11
bin/configs/csharp-generichost-latest-allOf.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
11
bin/configs/csharp-generichost-latest-anyOf.yaml
Normal file
11
bin/configs/csharp-generichost-latest-anyOf.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useSourceGeneration: true
|
||||||
|
packageName: UseSourceGeneration
|
||||||
11
bin/configs/csharp-generichost-latest-nrt.yaml
Normal file
11
bin/configs/csharp-generichost-latest-nrt.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
11
bin/configs/csharp-generichost-latest-oneOf.yaml
Normal file
11
bin/configs/csharp-generichost-latest-oneOf.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
11
bin/configs/csharp-generichost-latest.yaml
Normal file
11
bin/configs/csharp-generichost-latest.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: false
|
||||||
11
bin/configs/csharp-generichost-netstandard2.0.yaml
Normal file
11
bin/configs/csharp-generichost-netstandard2.0.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
targetFramework: netstandard2.0
|
||||||
12
bin/configs/csharp-httpclient-netstandard2.0.yaml
Normal file
12
bin/configs/csharp-httpclient-netstandard2.0.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# for .net standard httpclient
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-httpclient
|
||||||
|
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
|
||||||
|
library: httpclient
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: netstandard2.0
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0-nrt
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.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
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-net6.0
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.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: false
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# for csharp-netcore generichost
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-generichost-netstandard2.0
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
library: generichost
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
targetFramework: netstandard2.0
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# for .net standard httpclient
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
library: httpclient
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: netstandard2.0
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net47
|
|
||||||
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: net47
|
|
||||||
skipOneOfAnyOfGetter: true
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-net5.0
|
|
||||||
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: net7.0
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# for .net Unity
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-unityWebRequest
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
library: unityWebRequest
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient
|
|
||||||
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
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCore
|
|
||||||
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}'
|
|
||||||
targetFramework: net7.0
|
|
||||||
useCompareNetObjects: "true"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCoreAndNet47
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
targetFramework: netstandard2.1;net47
|
|
||||||
useCompareNetObjects: "true"
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
# for .net standard
|
|
||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient-ConditionalSerialization
|
|
||||||
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: '{fa96c953-af24-457d-8a01-f2fd2a7547a9}'
|
|
||||||
useCompareNetObjects: true
|
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
|
||||||
useOneOfDiscriminatorLookup: true
|
|
||||||
targetFramework: netstandard2.0
|
|
||||||
conditionalSerialization: true
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
generatorName: csharp-netcore
|
|
||||||
outputDir: samples/client/others/csharp-netcore-complex-files
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/form-multipart-binary-array.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
targetFramework: netstandard2.0
|
|
||||||
useCompareNetObjects: "true"
|
|
||||||
globalProperties:
|
|
||||||
skipFormModel: "false"
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
generatorName: csharp-netcore-functions
|
|
||||||
outputDir: samples/client/petstore/csharp-netcore-functions
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp-netcore-functions
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
userSecretsGuid: "76e9e993-9159-441c-9c5b-fe95e7f4f020"
|
|
||||||
9
bin/configs/csharp-restsharp-echo-api.yaml
Normal file
9
bin/configs/csharp-restsharp-echo-api.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/echo_api/csharp-restsharp
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{322C8CAF-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
targetFramework: net6.0
|
||||||
|
setCompareNetObjects: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClientCoreAndNet47
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
targetFramework: netstandard2.1;net47
|
||||||
|
useCompareNetObjects: "true"
|
||||||
12
bin/configs/csharp-restsharp-net4.7.yaml
Normal file
12
bin/configs/csharp-restsharp-net4.7.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net47
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net47
|
||||||
|
skipOneOfAnyOfGetter: true
|
||||||
11
bin/configs/csharp-restsharp-net4.8.yaml
Normal file
11
bin/configs/csharp-restsharp-net4.8.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net48
|
||||||
18
bin/configs/csharp-restsharp-net6.0-name-mappings.yaml
Normal file
18
bin/configs/csharp-restsharp-net6.0-name-mappings.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/name-parameter-mappings.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
nameMappings:
|
||||||
|
_type: UnderscoreType
|
||||||
|
type_: TypeWithUnderscore
|
||||||
|
http_debug_operation: HttpDebugOperation
|
||||||
|
parameterNameMappings:
|
||||||
|
_type: UnderscoreType
|
||||||
|
type_: TypeWithUnderscore
|
||||||
|
http_debug_operation: HttpDebugOperation
|
||||||
|
modelNameMappings:
|
||||||
|
Environment: Env
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
targetFramework: net6.0
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClientCore
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
targetFramework: net7.0
|
||||||
|
useCompareNetObjects: "true"
|
||||||
11
bin/configs/csharp-restsharp-net7.0.yaml
Normal file
11
bin/configs/csharp-restsharp-net7.0.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net5.0
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net7.0
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/others/csharp-complex-files
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/form-multipart-binary-array.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
targetFramework: netstandard2.0
|
||||||
|
useCompareNetObjects: "true"
|
||||||
|
globalProperties:
|
||||||
|
skipFormModel: "false"
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{fa96c953-af24-457d-8a01-f2fd2a7547a9}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: netstandard2.0
|
||||||
|
conditionalSerialization: true
|
||||||
11
bin/configs/csharp-restsharp-netstandard2.0.yaml
Normal file
11
bin/configs/csharp-restsharp-netstandard2.0.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: netstandard2.0
|
||||||
8
bin/configs/csharp-unityWebRequest-netstandard2.0.yaml
Normal file
8
bin/configs/csharp-unityWebRequest-netstandard2.0.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# for .net Unity
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-unityWebRequest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
library: unityWebRequest
|
||||||
|
additionalProperties:
|
||||||
|
targetFramework: netstandard2.0
|
||||||
@@ -4,3 +4,10 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-e
|
|||||||
templateDir: modules/openapi-generator/src/main/resources/elixir
|
templateDir: modules/openapi-generator/src/main/resources/elixir
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
invokerPackage: OpenapiPetstore
|
invokerPackage: OpenapiPetstore
|
||||||
|
modelNameMappings:
|
||||||
|
DeprecatedObject: DeprecatedModel
|
||||||
|
# the following options have no effect on elixir client gen which uses baseName
|
||||||
|
nameMappings:
|
||||||
|
deprecatedRef: deprecatedReference
|
||||||
|
parameterNameMapping:
|
||||||
|
ioutils: ioutils_parameter
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user