mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-04 12:06:11 +00:00
Compare commits
430 Commits
better-ap
...
csharp-net
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f702631649 | ||
|
|
178f4fbad8 | ||
|
|
bae20c1887 | ||
|
|
d9920a5b81 | ||
|
|
37451fa569 | ||
|
|
e47e7041f7 | ||
|
|
69fcfeff38 | ||
|
|
dd4143b75e | ||
|
|
a460b7ea87 | ||
|
|
61fde48501 | ||
|
|
6be4d2e082 | ||
|
|
2ca958642b | ||
|
|
2c25443260 | ||
|
|
d1b148a7d3 | ||
|
|
8860d967c0 | ||
|
|
322afeacd4 | ||
|
|
c8b3da7388 | ||
|
|
91ac75ff05 | ||
|
|
6da264b0f8 | ||
|
|
53289263d9 | ||
|
|
e2a62ace74 | ||
|
|
c9f7af752f | ||
|
|
ec3c484ce9 | ||
|
|
7e529926a6 | ||
|
|
2f655f1a9c | ||
|
|
5693eee4e0 | ||
|
|
f83e4ffb9b | ||
|
|
c377fdf62d | ||
|
|
372894dd1d | ||
|
|
6917aad760 | ||
|
|
2b9ee8c5f6 | ||
|
|
40b1d37368 | ||
|
|
09060c6c22 | ||
|
|
279a92c2ed | ||
|
|
c48cddd640 | ||
|
|
92daacd6a2 | ||
|
|
f35b132068 | ||
|
|
ced31f49b3 | ||
|
|
166ebc50b0 | ||
|
|
291ce353ce | ||
|
|
e9507077fc | ||
|
|
ced9660123 | ||
|
|
d945499073 | ||
|
|
74163f0ac8 | ||
|
|
ba8546189a | ||
|
|
c301004b7e | ||
|
|
a31b38b223 | ||
|
|
849cf88ba7 | ||
|
|
8e98671ba6 | ||
|
|
65ccf0492c | ||
|
|
0673897746 | ||
|
|
74363a3eb8 | ||
|
|
49208144e1 | ||
|
|
339596aeec | ||
|
|
588e2598f6 | ||
|
|
a853adb4b0 | ||
|
|
de8599906e | ||
|
|
db9fd9a094 | ||
|
|
5d03c4ac82 | ||
|
|
482c759a10 | ||
|
|
5e8e301869 | ||
|
|
f83cb60f27 | ||
|
|
61629ae8ed | ||
|
|
c4b18f206d | ||
|
|
171cc67caa | ||
|
|
fe547dd0b5 | ||
|
|
1092593841 | ||
|
|
7b8a515dcb | ||
|
|
39347ec37b | ||
|
|
e4cfd626c8 | ||
|
|
fbbfa12096 | ||
|
|
832947c895 | ||
|
|
5c5ec36500 | ||
|
|
83822d269a | ||
|
|
6425fbe3ed | ||
|
|
4402635d49 | ||
|
|
4302d37f52 | ||
|
|
a4267ee630 | ||
|
|
8893c7136a | ||
|
|
8d76ab9511 | ||
|
|
c2a4163bdb | ||
|
|
739390a682 | ||
|
|
bfe6157d07 | ||
|
|
6cd73eba2b | ||
|
|
08d518319e | ||
|
|
8827da8012 | ||
|
|
3422ef1e64 | ||
|
|
c1c6237eec | ||
|
|
5a5ee163dc | ||
|
|
677b6e64c1 | ||
|
|
244a3b4c13 | ||
|
|
05b796aadc | ||
|
|
58f058f3e9 | ||
|
|
d671b83a5f | ||
|
|
fbd02554f5 | ||
|
|
eb5b781e20 | ||
|
|
eae2051d37 | ||
|
|
b13a1a05ef | ||
|
|
091cff60c3 | ||
|
|
0aff1a6504 | ||
|
|
cb85358aa5 | ||
|
|
cdbb73aa55 | ||
|
|
ae590c4712 | ||
|
|
f16744a2bb | ||
|
|
bf9fae641e | ||
|
|
5f71bb9afa | ||
|
|
7347daec61 | ||
|
|
77687a8ea5 | ||
|
|
d6421411c9 | ||
|
|
8feef52d6b | ||
|
|
e0738a6e42 | ||
|
|
1dd9590064 | ||
|
|
d1fa38e286 | ||
|
|
2f214ee6c6 | ||
|
|
8bb473316e | ||
|
|
b6db4f73f1 | ||
|
|
438bf25a47 | ||
|
|
769990d654 | ||
|
|
694f5a05a1 | ||
|
|
c5d6884c63 | ||
|
|
8db9af9873 | ||
|
|
1fc0cec75f | ||
|
|
b4f9d8103f | ||
|
|
3bc4f67333 | ||
|
|
571aefa3da | ||
|
|
ba367e60e8 | ||
|
|
75ce5968bf | ||
|
|
1dfdeaff59 | ||
|
|
34265e52b1 | ||
|
|
2cfce7cd2d | ||
|
|
e3958cba75 | ||
|
|
fe55938363 | ||
|
|
015f000f70 | ||
|
|
384ff941ae | ||
|
|
2b6b3b0883 | ||
|
|
bbf9ccd0c0 | ||
|
|
f180aa0eec | ||
|
|
7af459396c | ||
|
|
1bbbb73690 | ||
|
|
f03cbea971 | ||
|
|
9e07f85eb5 | ||
|
|
7bb75f4bb4 | ||
|
|
87f9d53c3a | ||
|
|
494ee489ad | ||
|
|
594308f821 | ||
|
|
4a17c22905 | ||
|
|
3e9dba01ee | ||
|
|
23c5db602f | ||
|
|
e3db882ed4 | ||
|
|
48f454cf72 | ||
|
|
5fb6fcf9ef | ||
|
|
f5680019b2 | ||
|
|
893154d766 | ||
|
|
050e463872 | ||
|
|
effbe8caad | ||
|
|
6722f1300d | ||
|
|
c306ca3cf2 | ||
|
|
822568b664 | ||
|
|
4a0ab21ba4 | ||
|
|
a1d00e4785 | ||
|
|
7087b332f0 | ||
|
|
f5f9a7e091 | ||
|
|
11771a8ccf | ||
|
|
4075a52dce | ||
|
|
baf33f0537 | ||
|
|
9fd4cc1e63 | ||
|
|
97ee910a2c | ||
|
|
cec5b8965a | ||
|
|
bd1caf69cb | ||
|
|
ee5d9f6ad3 | ||
|
|
2eca00f87d | ||
|
|
039c1698b0 | ||
|
|
03781d3a93 | ||
|
|
56bc383dc1 | ||
|
|
ce4b2fe7bd | ||
|
|
3fcf5584c6 | ||
|
|
c6e9a4e1ae | ||
|
|
e2f249ba35 | ||
|
|
67b129fda9 | ||
|
|
3c4561ece2 | ||
|
|
04fa53b692 | ||
|
|
af352df10f | ||
|
|
bb3096c99c | ||
|
|
beb67aa74d | ||
|
|
4f8d61c05c | ||
|
|
fdd179e60a | ||
|
|
fce2dcbb37 | ||
|
|
6c1a937663 | ||
|
|
1cff462d90 | ||
|
|
077744a7af | ||
|
|
3b95f701e5 | ||
|
|
d58e68f8c0 | ||
|
|
d165b8879f | ||
|
|
7d60a46bc7 | ||
|
|
e892d50075 | ||
|
|
2ca99bdf8e | ||
|
|
f99002a974 | ||
|
|
19d8dbc7d5 | ||
|
|
7d154c988c | ||
|
|
a68eba649f | ||
|
|
55c580579e | ||
|
|
0f2a27d3c5 | ||
|
|
1a4b574a48 | ||
|
|
e5a29b6328 | ||
|
|
29033bf62a | ||
|
|
1bcf79236f | ||
|
|
8f8fd85fd6 | ||
|
|
254b359a56 | ||
|
|
9b39887eba | ||
|
|
16c6cff28f | ||
|
|
25b67dd6bf | ||
|
|
f530496f21 | ||
|
|
a2f6b8eae5 | ||
|
|
69bc994ba7 | ||
|
|
df994b77f2 | ||
|
|
bab67e44e4 | ||
|
|
5e8e2d7f6d | ||
|
|
5b720ded0c | ||
|
|
875c3ecd3c | ||
|
|
352182a7b9 | ||
|
|
8c8be7482b | ||
|
|
7d86adccc4 | ||
|
|
5f0d7053e4 | ||
|
|
70bffffc5a | ||
|
|
4b87606665 | ||
|
|
d671fe24ee | ||
|
|
e75e5a2c57 | ||
|
|
ec59334904 | ||
|
|
82e3590eed | ||
|
|
353507ef23 | ||
|
|
9170e1030f | ||
|
|
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 |
@@ -57,54 +57,43 @@ commands: # a reusable command with parameters
|
|||||||
- run: docker ps -a
|
- run: docker ps -a
|
||||||
- run: sleep 30
|
- run: sleep 30
|
||||||
- run: cat /etc/hosts
|
- run: cat /etc/hosts
|
||||||
# Test
|
- run: export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
|
||||||
- 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
|
||||||
- run: ./CI/circle_parallel.sh
|
- run: ./CI/circle_parallel.sh
|
||||||
# Save dependency cache
|
# Save dependency cache
|
||||||
- save_cache:
|
#- save_cache:
|
||||||
key: source-v2-{{ .Branch }}-{{ .Revision }}
|
# key: source-v2-{{ .Branch }}-{{ .Revision }}
|
||||||
paths:
|
# paths:
|
||||||
# This is a broad list of cache paths to include many possible development environments
|
# # This is a broad list of cache paths to include many possible development environments
|
||||||
# You can probably delete some of these entries
|
# # You can probably delete some of these entries
|
||||||
- vendor/bundle
|
# - ~/.m2
|
||||||
- ~/.nvm
|
# - ~/.ivy2
|
||||||
- ~/.pyenv
|
# - ~/.sbt
|
||||||
- ~/virtualenvs
|
# - ~/.bundle
|
||||||
- ~/.m2
|
# - ~/.go_workspace
|
||||||
- ~/.ivy2
|
# - ~/.gradle
|
||||||
- ~/.sbt
|
# - ".git"
|
||||||
- ~/.bundle
|
# - ~/.stack
|
||||||
- ~/.go_workspace
|
# - ~/R
|
||||||
- ~/.gradle
|
## save "default" cache using the key "source-v2-"
|
||||||
- ~/.cache/bower
|
#- save_cache:
|
||||||
- ".git"
|
# key: source-v2-
|
||||||
- ~/.stack
|
# paths:
|
||||||
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
|
# # This is a broad list of cache paths to include many possible development environments
|
||||||
- ~/R
|
# # You can probably delete some of these entries
|
||||||
# save "default" cache using the key "source-v2-"
|
# - vendor/bundle
|
||||||
- save_cache:
|
# - ~/.m2
|
||||||
key: source-v2-
|
# - ~/.ivy2
|
||||||
paths:
|
# - ~/.sbt
|
||||||
# This is a broad list of cache paths to include many possible development environments
|
# - ~/.bundle
|
||||||
# You can probably delete some of these entries
|
# - ~/.go_workspace
|
||||||
- vendor/bundle
|
# - ~/.gradle
|
||||||
- ~/.nvm
|
# - ~/.cache/bower
|
||||||
- ~/.pyenv
|
# - ".git"
|
||||||
- ~/virtualenvs
|
# - ~/.stack
|
||||||
- ~/.m2
|
# - ~/R
|
||||||
- ~/.ivy2
|
|
||||||
- ~/.sbt
|
|
||||||
- ~/.bundle
|
|
||||||
- ~/.go_workspace
|
|
||||||
- ~/.gradle
|
|
||||||
- ~/.cache/bower
|
|
||||||
- ".git"
|
|
||||||
- ~/.stack
|
|
||||||
- /home/circleci/OpenAPITools/openapi-generator/samples/client/petstore/haskell-http-client/.stack-work
|
|
||||||
- ~/R
|
|
||||||
# Teardown
|
# Teardown
|
||||||
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
|
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
|
||||||
# Save test results
|
# Save test results
|
||||||
@@ -204,8 +193,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:
|
||||||
@@ -215,7 +204,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
|
||||||
|
|||||||
24
.github/.test/samples.json
vendored
24
.github/.test/samples.json
vendored
@@ -319,12 +319,6 @@
|
|||||||
"Client: Java"
|
"Client: Java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"input": "java-petstore-jersey1.sh",
|
|
||||||
"matches": [
|
|
||||||
"Client: Java"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"input": "java-petstore-jersey2-java6.sh",
|
"input": "java-petstore-jersey2-java6.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
@@ -584,18 +578,6 @@
|
|||||||
"Server: Java"
|
"Server: Java"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"input": "jaxrs-jersey1-petstore-server.sh",
|
|
||||||
"matches": [
|
|
||||||
"Server: Java"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"input": "jaxrs-jersey1-usetags-petstore-server.sh",
|
|
||||||
"matches": [
|
|
||||||
"Server: Java"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"input": "jaxrs-petstore-server-datelib-j8.sh",
|
"input": "jaxrs-petstore-server-datelib-j8.sh",
|
||||||
"matches": [
|
"matches": [
|
||||||
@@ -800,12 +782,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": [
|
||||||
|
|||||||
12
.github/PULL_REQUEST_TEMPLATE.md
vendored
12
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -8,18 +8,14 @@
|
|||||||
- [ ] Run the following to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) and update samples:
|
- [ ] Run the following to [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) and update samples:
|
||||||
```
|
```
|
||||||
./mvnw clean package
|
./mvnw clean package
|
||||||
./bin/generate-samples.sh
|
./bin/generate-samples.sh ./bin/configs/*.yaml
|
||||||
./bin/utils/export_docs_generators.sh
|
./bin/utils/export_docs_generators.sh
|
||||||
```
|
```
|
||||||
|
(For Windows users, please run the script in [Git BASH](https://gitforwindows.org/))
|
||||||
Commit all changed files.
|
Commit all changed files.
|
||||||
This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit as it would merge with master.
|
This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit as it would merge with master.
|
||||||
These must match the expectations made by your contribution.
|
These must match the expectations made by your contribution.
|
||||||
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example `./bin/generate-samples.sh bin/configs/java*`.
|
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example `./bin/generate-samples.sh bin/configs/java*`.
|
||||||
For Windows users, please run the script in [Git BASH](https://gitforwindows.org/).
|
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
|
||||||
- [ ] In case you are adding a new generator, run the following additional script :
|
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (upcoming 7.1.0 minor release - breaking changes with fallbacks), `8.0.x` (breaking changes without fallbacks)
|
||||||
```
|
|
||||||
./bin/utils/ensure-up-to-date
|
|
||||||
```
|
|
||||||
Commit all changed files.
|
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (6.3.0) (minor release - breaking changes with fallbacks), `7.0.x` (breaking changes without fallbacks)
|
|
||||||
- [ ] If your PR is targeting a particular programming language, @mention the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) members, so they are more likely to review the pull request.
|
- [ ] If your PR is targeting a particular programming language, @mention the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) members, so they are more likely to review the pull request.
|
||||||
|
|||||||
5
.github/workflows/docker.yaml
vendored
5
.github/workflows/docker.yaml
vendored
@@ -1,6 +1,7 @@
|
|||||||
name: Docker tests
|
name: Docker tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- Dockerfile
|
- Dockerfile
|
||||||
@@ -21,13 +22,13 @@ jobs:
|
|||||||
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
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/ -it / /g' run-in-docker.sh
|
sed -i 's/ -it / /g' run-in-docker.sh
|
||||||
./run-in-docker.sh mvn clean install
|
./run-in-docker.sh mvn -B clean install
|
||||||
|
|
||||||
- name: Build Dockerfile
|
- name: Build Dockerfile
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
2
.github/workflows/gradle-plugin-tests.yaml
vendored
2
.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:
|
||||||
|
|||||||
2
.github/workflows/gradle-test.yaml
vendored
2
.github/workflows/gradle-test.yaml
vendored
@@ -30,7 +30,7 @@ jobs:
|
|||||||
- samples/client/petstore/java/okhttp-gson-group-parameter
|
- samples/client/petstore/java/okhttp-gson-group-parameter
|
||||||
- samples/client/petstore/java/webclient-swagger2
|
- 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'
|
||||||
|
|||||||
8
.github/workflows/linux.yaml
vendored
8
.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,7 +45,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.8.0
|
uses: s4u/setup-maven-action@v1.10.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
@@ -85,9 +85,9 @@ 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.8.0
|
uses: s4u/setup-maven-action@v1.10.0
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
|||||||
2
.github/workflows/maven-plugin-tests.yaml
vendored
2
.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:
|
||||||
|
|||||||
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'
|
||||||
|
|||||||
8
.github/workflows/openapi-generator.yaml
vendored
8
.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:
|
||||||
@@ -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:
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
name: Build c libcurl client
|
name: Build c libcurl client
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|||||||
4
.github/workflows/samples-cpp-qt-client.yaml
vendored
4
.github/workflows/samples-cpp-qt-client.yaml
vendored
@@ -28,8 +28,8 @@ 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@v4
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt-version }}
|
version: ${{ matrix.qt-version }}
|
||||||
tools: ${{ matrix.tools }}
|
tools: ${{ matrix.tools }}
|
||||||
|
|||||||
2
.github/workflows/samples-dart.yaml
vendored
2
.github/workflows/samples-dart.yaml
vendored
@@ -17,7 +17,7 @@ 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'
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/petstore/csharp/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.2.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
|
|||||||
6
.github/workflows/samples-dotnet.yaml
vendored
6
.github/workflows/samples-dotnet.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Samples C# .Net 7
|
name: Samples C# .Net 8
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -42,10 +42,10 @@ 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.2.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/csharp-restsharp/
|
- samples/client/echo_api/csharp-restsharp/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3.2.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
@@ -28,4 +28,6 @@ jobs:
|
|||||||
(cd http-echo-server && npm install && npm start &)
|
(cd http-echo-server && npm install && npm start &)
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: |
|
||||||
|
dotnet build Org.OpenAPITools.sln
|
||||||
|
dotnet test Org.OpenAPITools.sln
|
||||||
|
|||||||
20
.github/workflows/samples-dotnet6-client.yaml
vendored
20
.github/workflows/samples-dotnet6-client.yaml
vendored
@@ -16,9 +16,9 @@ on:
|
|||||||
- samples/client/petstore/csharp/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/OpenAPIClient-net48/**
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
# build C# API client (.net 5.0)
|
# build C# API client (.net 7.0)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0/**
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
# build C# API client (.net 7.0 with ConditionalSerialization)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
# build C# API client (property, parameter name mappings)
|
# build C# API client (property, parameter name mappings)
|
||||||
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
||||||
@@ -37,9 +37,9 @@ on:
|
|||||||
- samples/client/petstore/csharp/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/OpenAPIClient-net48/**
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
# build C# API client (.net 5.0)
|
# build C# API client (.net 7.0)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0/**
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
# build C# API client (.net 7.0 with ConditionalSerialization)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
# build C# API client (property, parameter name mappings)
|
# build C# API client (property, parameter name mappings)
|
||||||
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
||||||
@@ -65,14 +65,14 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/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/OpenAPIClient-net48/
|
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
||||||
# build C# API client (.net 5.0)
|
# build C# API client (.net 7.0)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net5.0/
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0/
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
# build C# API client (.net 7.0 with ConditionalSerialization)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
||||||
# build C# API client (property, parameter name mappings)
|
# build C# API client (property, parameter name mappings)
|
||||||
- samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v3.2.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ 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.2.0
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
|
|||||||
81
.github/workflows/samples-dotnet7-client.yaml
vendored
Normal file
81
.github/workflows/samples-dotnet7-client.yaml
vendored
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
name: Samples C# .Net 7
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (.net 7.0)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0/**
|
||||||
|
# build C# API client (.net 7.0 with 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:
|
||||||
|
paths:
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
|
# build C# API client (.net 7.0)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0/**
|
||||||
|
# build C# API client (.net 7.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net clients
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
|
||||||
|
# build C# API client (httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
|
# build C# API client (generichost)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
|
||||||
|
# build C# API client (netcore)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCore/
|
||||||
|
# build C# API client (.net framework 4.7)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net47/
|
||||||
|
# build C# API client (.net framework 4.8)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
||||||
|
# build C# API client (.net 7.0)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0/
|
||||||
|
# build C# API client (.net 7.0 with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
||||||
|
# build C# API client (property, parameter name mappings)
|
||||||
|
- samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-dotnet@v3.2.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '7.0.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
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'
|
||||||
|
|||||||
32
.github/workflows/samples-go-client-echo-api.yaml
vendored
Normal file
32
.github/workflows/samples-go-client-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Go Client (Echo API)
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/go/**
|
||||||
|
- .github/workflows/samples-go-client-echo-api.yaml
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Go client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/go
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: "stable"
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
- 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 &)
|
||||||
|
- run: go version
|
||||||
|
- name: Run test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: go test -mod=mod -v
|
||||||
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
|
||||||
@@ -19,8 +19,9 @@ jobs:
|
|||||||
- samples/client/echo_api/java/apache-httpclient
|
- samples/client/echo_api/java/apache-httpclient
|
||||||
- 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
|
||||||
|
- samples/client/echo_api/java/resttemplate
|
||||||
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'
|
||||||
@@ -34,7 +35,7 @@ jobs:
|
|||||||
~/.m2
|
~/.m2
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
@@ -6,11 +6,13 @@ on:
|
|||||||
- samples/client/echo_api/java/apache-httpclient/**
|
- samples/client/echo_api/java/apache-httpclient/**
|
||||||
- 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/**
|
||||||
|
- samples/client/echo_api/java/resttemplate/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/java/apache-httpclient/**
|
- samples/client/echo_api/java/apache-httpclient/**
|
||||||
- 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/**
|
||||||
|
- samples/client/echo_api/java/resttemplate/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK8
|
name: Build Java Client JDK8
|
||||||
@@ -23,8 +25,9 @@ jobs:
|
|||||||
- samples/client/echo_api/java/apache-httpclient
|
- samples/client/echo_api/java/apache-httpclient
|
||||||
- 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
|
||||||
|
- samples/client/echo_api/java/resttemplate
|
||||||
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'
|
||||||
@@ -38,7 +41,7 @@ jobs:
|
|||||||
~/.m2
|
~/.m2
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Setup node.js
|
- name: Setup node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
|||||||
16
.github/workflows/samples-java-client-jdk11.yaml
vendored
16
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -10,6 +10,9 @@ on:
|
|||||||
- 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/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
|
- samples/client/others/java/okhttp-gson-oneOf/**
|
||||||
|
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
|
||||||
|
- samples/client/others/java/webclient-useAbstractionForFiles/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
@@ -19,6 +22,9 @@ on:
|
|||||||
- 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/jersey2-java8-swagger2/**
|
||||||
- samples/openapi3/client/petstore/java/native**
|
- samples/openapi3/client/petstore/java/native**
|
||||||
|
- samples/client/others/java/okhttp-gson-oneOf/**
|
||||||
|
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
|
||||||
|
- samples/client/others/java/webclient-useAbstractionForFiles/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK11
|
name: Build Java Client JDK11
|
||||||
@@ -43,15 +49,16 @@ jobs:
|
|||||||
- samples/client/petstore/java/webclient-swagger2
|
- 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/okhttp-gson-awsv4signature
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
|
||||||
- samples/openapi3/client/petstore/java/native
|
- samples/openapi3/client/petstore/java/native
|
||||||
- samples/client/petstore/java/okhttp-gson-swagger1/
|
- samples/client/petstore/java/okhttp-gson-swagger1/
|
||||||
@@ -60,8 +67,11 @@ jobs:
|
|||||||
- samples/client/petstore/java/okhttp-gson-swagger2/
|
- samples/client/petstore/java/okhttp-gson-swagger2/
|
||||||
- samples/client/petstore/java/resttemplate-swagger2/
|
- samples/client/petstore/java/resttemplate-swagger2/
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
|
||||||
|
- samples/client/others/java/okhttp-gson-oneOf/
|
||||||
|
- samples/client/others/java/resttemplate-useAbstractionForFiles/
|
||||||
|
- samples/client/others/java/webclient-useAbstractionForFiles/
|
||||||
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'
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
- 'samples/server/petstore/java-vertx-web/**'
|
- 'samples/server/petstore/java-vertx-web/**'
|
||||||
- 'samples/server/petstore/java-inflector/**'
|
- 'samples/server/petstore/java-inflector/**'
|
||||||
- 'samples/server/petstore/java-pkmst/**'
|
- 'samples/server/petstore/java-pkmst/**'
|
||||||
|
# test in circleci instead
|
||||||
- 'samples/server/petstore/java-undertow/**'
|
- 'samples/server/petstore/java-undertow/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
@@ -15,7 +16,7 @@ on:
|
|||||||
- 'samples/server/petstore/java-vertx-web/**'
|
- 'samples/server/petstore/java-vertx-web/**'
|
||||||
- 'samples/server/petstore/java-inflector/**'
|
- 'samples/server/petstore/java-inflector/**'
|
||||||
- 'samples/server/petstore/java-pkmst/**'
|
- 'samples/server/petstore/java-pkmst/**'
|
||||||
- 'samples/server/petstore/java-undertow/**'
|
#- 'samples/server/petstore/java-undertow/**'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Server
|
name: Build Java Server
|
||||||
@@ -29,9 +30,9 @@ jobs:
|
|||||||
- samples/server/petstore/java-vertx-web/
|
- samples/server/petstore/java-vertx-web/
|
||||||
- samples/server/petstore/java-inflector/
|
- samples/server/petstore/java-inflector/
|
||||||
- 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'
|
||||||
|
|||||||
36
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
Normal file
36
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Samples JAX-RS (JDK11)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/jaxrs/jersey3/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/jaxrs/jersey3/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build JAX-RS
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/jaxrs/jersey3
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
||||||
4
.github/workflows/samples-jaxrs.yaml
vendored
4
.github/workflows/samples-jaxrs.yaml
vendored
@@ -26,8 +26,6 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-spec
|
- samples/server/petstore/jaxrs-spec
|
||||||
- samples/server/petstore/jaxrs-spec-interface
|
- samples/server/petstore/jaxrs-spec-interface
|
||||||
- samples/server/petstore/jaxrs-spec-interface-response
|
- samples/server/petstore/jaxrs-spec-interface-response
|
||||||
- samples/server/petstore/jaxrs/jersey1
|
|
||||||
- samples/server/petstore/jaxrs/jersey1-useTags
|
|
||||||
- samples/server/petstore/jaxrs-datelib-j8
|
- samples/server/petstore/jaxrs-datelib-j8
|
||||||
- samples/server/petstore/jaxrs-resteasy/default
|
- samples/server/petstore/jaxrs-resteasy/default
|
||||||
- samples/server/petstore/jaxrs-resteasy/eap
|
- samples/server/petstore/jaxrs-resteasy/eap
|
||||||
@@ -40,7 +38,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'
|
||||||
|
|||||||
2
.github/workflows/samples-julia.yaml
vendored
2
.github/workflows/samples-julia.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
name: Tests Julia
|
name: Tests Julia
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: julia-actions/setup-julia@v1
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: 1.8
|
version: 1.8
|
||||||
|
|||||||
6
.github/workflows/samples-kotlin-client.yaml
vendored
6
.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,6 +51,7 @@ 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-kotlinx_serialization
|
- samples/client/petstore/kotlin-jvm-ktor-kotlinx_serialization
|
||||||
@@ -60,8 +63,9 @@ jobs:
|
|||||||
- 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/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:
|
||||||
|
|||||||
44
.github/workflows/samples-python-client-echo-api.yaml
vendored
Normal file
44
.github/workflows/samples-python-client-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Python Client (Echo API)
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/python/**
|
||||||
|
- .github/workflows/samples-python-client-echo-api.yaml
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/python
|
||||||
|
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true
|
||||||
|
python-version:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
- "3.9"
|
||||||
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r test-requirements.txt
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: python -m pytest
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
name: Python Client (Echo API)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/python/**
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- samples/client/echo_api/python/**
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Test Python client
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
# clients
|
|
||||||
- samples/client/echo_api/python
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.7'
|
|
||||||
- name: Setup node.js
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
- name: Run echo server
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
|
||||||
(cd http-echo-server && npm install && npm start &)
|
|
||||||
- name: Install
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: |
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install -r test-requirements.txt
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: python -m pytest
|
|
||||||
59
.github/workflows/samples-python-petstore.yaml
vendored
Normal file
59
.github/workflows/samples-python-petstore.yaml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: "Python Client: Petstore"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/openapi3/client/petstore/python-aiohttp/**
|
||||||
|
- samples/openapi3/client/petstore/python/**
|
||||||
|
- .github/workflows/samples-python-petstore.yaml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
- "3.9"
|
||||||
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
sample:
|
||||||
|
- samples/openapi3/client/petstore/python-aiohttp
|
||||||
|
- samples/openapi3/client/petstore/python
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
id: py
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
|
path: |
|
||||||
|
~/.cache/pypoetry/virtualenvs/
|
||||||
|
~/.local/pipx/venvs/poetry/
|
||||||
|
.mypy_cache/
|
||||||
|
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install --python '${{ steps.py.outputs.python-path }}' poetry
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: poetry install
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: poetry run pytest -v
|
||||||
44
.github/workflows/samples-python-pydantic-v1-client-echo-api.yaml
vendored
Normal file
44
.github/workflows/samples-python-pydantic-v1-client-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Python Client pydantic v1 (Echo API)
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/python-pydantic-v1/**
|
||||||
|
- .github/workflows/samples-python-pydantic-v1-client-echo-api.yaml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/python-pydantic-v1/
|
||||||
|
python-version:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
- "3.9"
|
||||||
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install -r test-requirements.txt
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: python -m pytest
|
||||||
59
.github/workflows/samples-python-pydantic-v1-petstore.yaml
vendored
Normal file
59
.github/workflows/samples-python-pydantic-v1-petstore.yaml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: "Python Client pydantic v1: Petstore"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/**
|
||||||
|
- samples/openapi3/client/petstore/python-pydantic-v1/**
|
||||||
|
- .github/workflows/samples-python-pydantic-v1-petstore.yaml
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- "3.7"
|
||||||
|
- "3.8"
|
||||||
|
- "3.9"
|
||||||
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
sample:
|
||||||
|
- samples/openapi3/client/petstore/python-pydantic-v1-aiohttp
|
||||||
|
- samples/openapi3/client/petstore/python-pydantic-v1
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
|
id: py
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
|
path: |
|
||||||
|
~/.cache/pypoetry/virtualenvs/
|
||||||
|
~/.local/pipx/venvs/poetry/
|
||||||
|
.mypy_cache/
|
||||||
|
|
||||||
|
- name: Install poetry
|
||||||
|
run: pipx install --python '${{ steps.py.outputs.python-path }}' poetry
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: poetry install
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: poetry run pytest -v
|
||||||
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'
|
||||||
|
|||||||
2
.github/workflows/samples-rust.yaml
vendored
2
.github/workflows/samples-rust.yaml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- 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'
|
||||||
|
|||||||
2
.github/workflows/samples-spring-jdk17.yaml
vendored
2
.github/workflows/samples-spring-jdk17.yaml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
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-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:
|
||||||
@@ -27,12 +33,14 @@ jobs:
|
|||||||
- 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-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,8 +55,9 @@ jobs:
|
|||||||
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
- samples/server/petstore/springboot-spring-pageable-delegatePattern
|
||||||
- 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
|
||||||
|
- samples/server/petstore/springboot-spring-provide-args
|
||||||
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
|
||||||
42
.github/workflows/samples-typescript-axios-echo-api.yaml
vendored
Normal file
42
.github/workflows/samples-typescript-axios-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: TypeScript Axios Client (Echo API)
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/typescript-axios/**
|
||||||
|
- .github/workflows/samples-typescript-axios-echo-api.yaml
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test TypeScript Axios client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/typescript-axios/test
|
||||||
|
node-version:
|
||||||
|
- 16
|
||||||
|
- 18
|
||||||
|
- 20
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
npm run preinstall
|
||||||
|
npm i
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: npm test
|
||||||
4
.github/workflows/samples-zapier.yaml
vendored
4
.github/workflows/samples-zapier.yaml
vendored
@@ -18,9 +18,9 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/zapier
|
- samples/client/petstore/zapier
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
2
.github/workflows/sonar.yml
vendored
2
.github/workflows/sonar.yml
vendored
@@ -12,7 +12,7 @@ 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:
|
||||||
|
|||||||
4
.github/workflows/windows.yaml
vendored
4
.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,7 +39,7 @@ 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.8.0
|
uses: s4u/setup-maven-action@v1.10.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
|||||||
10
.gitignore
vendored
10
.gitignore
vendored
@@ -89,7 +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/jersey1/hello.txt
|
samples/client/petstore/java/okhttp-gson-3.1/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
|
||||||
samples/client/petstore/android/default/hello.txt
|
samples/client/petstore/android/default/hello.txt
|
||||||
@@ -173,17 +173,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 +211,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
|
||||||
@@ -270,6 +271,7 @@ samples/client/petstore/c/*.so
|
|||||||
# Ruby
|
# Ruby
|
||||||
samples/openapi3/client/petstore/ruby/Gemfile.lock
|
samples/openapi3/client/petstore/ruby/Gemfile.lock
|
||||||
samples/openapi3/client/petstore/ruby-faraday/Gemfile.lock
|
samples/openapi3/client/petstore/ruby-faraday/Gemfile.lock
|
||||||
|
samples/openapi3/client/petstore/ruby-httpx/Gemfile.lock
|
||||||
|
|
||||||
# Crystal
|
# Crystal
|
||||||
samples/client/petstore/crystal/lib
|
samples/client/petstore/crystal/lib
|
||||||
|
|||||||
@@ -3,19 +3,19 @@
|
|||||||
##
|
##
|
||||||
## You can build _just_ this part with:
|
## You can build _just_ this part with:
|
||||||
## docker --target builder -t container-name:builder -f .hub.cli.dockerfile .
|
## docker --target builder -t container-name:builder -f .hub.cli.dockerfile .
|
||||||
FROM maven:3.6.3-jdk-11-openj9 as builder
|
FROM maven:3-eclipse-temurin-17 as builder
|
||||||
|
|
||||||
ENV GEN_DIR /opt/openapi-generator
|
ENV GEN_DIR /opt/openapi-generator
|
||||||
WORKDIR ${GEN_DIR}
|
WORKDIR ${GEN_DIR}
|
||||||
COPY . ${GEN_DIR}
|
COPY . ${GEN_DIR}
|
||||||
|
|
||||||
# Pre-compile openapi-generator-cli
|
# Pre-compile openapi-generator-cli
|
||||||
RUN mvn -am -pl "modules/openapi-generator-cli" package
|
RUN mvn -B -am -pl "modules/openapi-generator-cli" package
|
||||||
|
|
||||||
## The final (release) image
|
## The final (release) image
|
||||||
## The resulting container here only needs the target jar
|
## The resulting container here only needs the target jar
|
||||||
## and ca-certificates (to be able to query HTTPS hosted specs)
|
## and ca-certificates (to be able to query HTTPS hosted specs)
|
||||||
FROM openjdk:11.0.8-jre-slim-buster
|
FROM eclipse-temurin:17-jre
|
||||||
|
|
||||||
ENV GEN_DIR /opt/openapi-generator
|
ENV GEN_DIR /opt/openapi-generator
|
||||||
|
|
||||||
|
|||||||
@@ -3,18 +3,18 @@
|
|||||||
##
|
##
|
||||||
## You can build _just_ this part with:
|
## You can build _just_ this part with:
|
||||||
## docker --target builder -t container-name:builder -f .hub.online.dockerfile .
|
## docker --target builder -t container-name:builder -f .hub.online.dockerfile .
|
||||||
FROM maven:3.6.3-jdk-11-openj9 as builder
|
FROM maven:3-eclipse-temurin-17 as builder
|
||||||
|
|
||||||
ENV GEN_DIR /opt/openapi-generator
|
ENV GEN_DIR /opt/openapi-generator
|
||||||
WORKDIR ${GEN_DIR}
|
WORKDIR ${GEN_DIR}
|
||||||
COPY . ${GEN_DIR}
|
COPY . ${GEN_DIR}
|
||||||
|
|
||||||
# Pre-compile openapi-generator-online
|
# Pre-compile openapi-generator-online
|
||||||
RUN mvn -am -pl "modules/openapi-generator-online" package
|
RUN mvn -B -am -pl "modules/openapi-generator-online" package
|
||||||
|
|
||||||
## The final (release) image
|
## The final (release) image
|
||||||
## The resulting container here only needs the target jar
|
## The resulting container here only needs the target jar
|
||||||
FROM openjdk:11.0.8-jre-slim-buster
|
FROM eclipse-temurin:17-jre
|
||||||
|
|
||||||
ENV GEN_DIR /opt/openapi-generator
|
ENV GEN_DIR /opt/openapi-generator
|
||||||
ENV TARGET_DIR /generator
|
ENV TARGET_DIR /generator
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.8
|
11
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ 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
|
||||||
- ./mvnw -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
|
||||||
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
|
||||||
|
|||||||
@@ -9,20 +9,14 @@ 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 ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
(cd samples/client/petstore/ruby && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
||||||
|
|
||||||
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"
|
||||||
@@ -42,20 +36,14 @@ elif [ "$NODE_INDEX" = "2" ]; then
|
|||||||
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
||||||
go version
|
go version
|
||||||
|
|
||||||
# run integration tests
|
# run go integration tests
|
||||||
./mvnw --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
(cd samples/client/petstore/go && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/go && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false && mvn integration-test)
|
||||||
|
|
||||||
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 ... "
|
||||||
#wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tgz
|
|
||||||
#tar -xf Python-3.8.9.tgz
|
|
||||||
#cd Python-3.8.9
|
|
||||||
#./configure --enable-optimizations
|
|
||||||
#sudo make altinstall
|
|
||||||
pyenv install --list
|
|
||||||
pyenv install 3.7.12
|
|
||||||
#pyenv install 2.7.14 #python2 no longer supported
|
|
||||||
pyenv global 3.7.12
|
|
||||||
|
|
||||||
# Install node@stable (for angular 6)
|
# Install node@stable (for angular 6)
|
||||||
set +e
|
set +e
|
||||||
@@ -72,23 +60,71 @@ 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
|
||||||
|
|
||||||
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci.node3 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
(cd samples/client/others/typescript-angular && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v12-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v13-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/jquery && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/object_params && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/object_params && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/inversify && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/inversify && mvn integration-test)
|
||||||
|
#(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-fetch/tests/default && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-node/npm && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/javascript-flowtyped && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/javascript-es6 && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/javascript-promise-es6 && mvn integration-test)
|
||||||
|
|
||||||
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 ..."
|
||||||
|
|
||||||
#mvn --no-snapshot-updates --quiet verify -Psamples.circleci.node4 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
#wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tgz
|
||||||
#(cd samples/openapi3/client/petstore/python && make test)
|
#tar -xf Python-3.8.9.tgz
|
||||||
# comment out due to ModuleNotFoundError: No module named 'urllib3.request'
|
#cd Python-3.8.9
|
||||||
#(cd samples/openapi3/client/petstore/python-prior && make test)
|
#./configure --enable-optimizations
|
||||||
#(cd samples/openapi3/client/3_0_3_unit_test/python && make test)
|
#sudo make altinstall
|
||||||
|
pyenv install --list
|
||||||
|
pyenv install 3.7.12
|
||||||
|
#pyenv install 2.7.14 #python2 no longer supported
|
||||||
|
pyenv global 3.7.12
|
||||||
|
|
||||||
|
(cd samples/openapi3/client/petstore/python && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/python-pydantic-v1 && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/python-aiohttp && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/python-pydantic-v1-aiohttp && mvn integration-test)
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX to test 'samples.circleci.others' defined in pom.xml ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
./mvnw --no-snapshot-updates --quiet verify -Psamples.circleci.others -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
(cd samples/client/petstore/scala-akka && mvn integration-test)
|
||||||
./mvnw --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
|
(cd samples/client/petstore/scala-sttp && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/scala-sttp4 && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/clojure && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java/jersey2-java8 && mvn integration-test)
|
||||||
|
(cd samples/openapi3/client/petstore/java/jersey2-java8 && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java/jersey3 && mvn integration-test)
|
||||||
|
(cd samples/client/others/java/okhttp-gson-streaming && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java/okhttp-gson && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java/okhttp-gson-3.1 && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java/resteasy && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java-micronaut-client && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/java/apache-httpclient && mvn integration-test)
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM maven:3.6.3-jdk-11-openj9
|
FROM maven:3-eclipse-temurin-17
|
||||||
|
|
||||||
ENV GEN_DIR /opt/openapi-generator
|
ENV GEN_DIR /opt/openapi-generator
|
||||||
WORKDIR ${GEN_DIR}
|
WORKDIR ${GEN_DIR}
|
||||||
@@ -20,7 +20,7 @@ COPY ./modules/openapi-generator ${GEN_DIR}/modules/openapi-generator
|
|||||||
COPY ./pom.xml ${GEN_DIR}
|
COPY ./pom.xml ${GEN_DIR}
|
||||||
|
|
||||||
# Pre-compile openapi-generator-cli
|
# Pre-compile openapi-generator-cli
|
||||||
RUN mvn -am -pl "modules/openapi-generator-cli" package
|
RUN mvn -B -am -pl "modules/openapi-generator-cli" package
|
||||||
|
|
||||||
# This exists at the end of the file to benefit from cached layers when modifying docker-entrypoint.sh.
|
# This exists at the end of the file to benefit from cached layers when modifying docker-entrypoint.sh.
|
||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
|
|||||||
51
README.md
51
README.md
@@ -9,13 +9,13 @@
|
|||||||
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g)
|
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-12jxxd7p2-XUeQM~4pzsU9x~eGLQqX2g)
|
||||||
[](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/recipes/openapi-generator)
|
||||||
[](https://ge.openapi-generator.tech/scans)
|
[](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.2.0`):
|
||||||
[](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)
|
||||||
@@ -60,24 +60,29 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<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)
|
[<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)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/bairesdev.png" width="128" height="128">](https://www.bairesdev.com/sponsoring-open-source-projects/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/dmtech.jpeg" width="128" height="128">](https://www.dm-jobs.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/adyen.png" width="128" height="128">](https://adyen.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/fornex.png" width="128" height="128">](https://fornex.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, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity
|
||||||
|
|
||||||
[<img src="https://openapi-generator.tech/img/companies/godaddy.png" width="150">](https://www.godaddy.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/godaddy.png" width="150">](https://www.godaddy.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[](https://www.linode.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[](https://www.linode.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRAhEYadUyZYzGUotZiSdXkVMqqLGuohyixLl4eUpUV6pAbUULL" width="150">](https://checklyhq.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRAhEYadUyZYzGUotZiSdXkVMqqLGuohyixLl4eUpUV6pAbUULL" width="150">](https://checklyhq.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Gradle_logo.png/320px-Gradle_logo.png" width="150">](https://gradle.org?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification) (both 2.0 and 3.0 are supported). Currently, the following languages/frameworks are supported:
|
||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **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** |
|
| **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, 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/) |
|
||||||
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Protocol Buffer**, **WSDL** |
|
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Postman Collection**, **Protocol Buffer**, **WSDL** |
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
@@ -115,12 +120,13 @@ 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/) | Jul/Aug 2023 | Major release with breaking changes (no fallback) |
|
| 7.2.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.2.0-SNAPSHOT/) | 15.12.2023 | Minor release with breaking changes (with fallback) |
|
||||||
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) (latest stable release) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
| [7.1.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.1.0) (latest stable release) | 13.11.2023 | Minor release with breaking changes (with 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, 3.1 (beta support)
|
||||||
|
|
||||||
(We do not publish daily/nightly build. Please use SNAPSHOT instead)
|
(We do not publish daily/nightly build. Please use SNAPSHOT instead)
|
||||||
|
|
||||||
@@ -178,16 +184,16 @@ See the different versions of the [openapi-generator-cli](https://search.maven.o
|
|||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
If you're looking for the latest stable version, you can grab it directly from Maven.org (Java 11 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.1.0/openapi-generator-cli-7.1.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.1.0/openapi-generator-cli-7.1.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.1.0/openapi-generator-cli-7.1.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.
|
||||||
@@ -422,7 +428,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.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -446,7 +452,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.1/openapi-generator-cli-7.0.1.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`
|
||||||
@@ -688,6 +694,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [RedHat](https://www.redhat.com)
|
- [RedHat](https://www.redhat.com)
|
||||||
- [RepreZen API Studio](https://www.reprezen.com/swagger-openapi-code-generation-api-first-microservices-enterprise-development)
|
- [RepreZen API Studio](https://www.reprezen.com/swagger-openapi-code-generation-api-first-microservices-enterprise-development)
|
||||||
- [REST United](https://restunited.com)
|
- [REST United](https://restunited.com)
|
||||||
|
- [Robocorp](https://www.robocorp.com)
|
||||||
- [Robotinfra](https://www.robotinfra.com)
|
- [Robotinfra](https://www.robotinfra.com)
|
||||||
- [SmartHR](https://smarthr.co.jp/)
|
- [SmartHR](https://smarthr.co.jp/)
|
||||||
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
- [Sony Interactive Entertainment](https://www.sie.com/en/index.html)
|
||||||
@@ -927,12 +934,9 @@ OpenAPI Generator core team members are contributors who have been making signif
|
|||||||
* [@cbornet](https://github.com/cbornet) (2016/05)
|
* [@cbornet](https://github.com/cbornet) (2016/05)
|
||||||
* [@jmini](https://github.com/jmini) (2018/04) [:heart:](https://www.patreon.com/jmini)
|
* [@jmini](https://github.com/jmini) (2018/04) [:heart:](https://www.patreon.com/jmini)
|
||||||
* [@etherealjoy](https://github.com/etherealjoy) (2019/06)
|
* [@etherealjoy](https://github.com/etherealjoy) (2019/06)
|
||||||
* [@spacether](https://github.com/spacether) (2020/05) [:heart:][spacether sponsorship]
|
|
||||||
|
|
||||||
:heart: = Link to support the contributor directly
|
:heart: = Link to support the contributor directly
|
||||||
|
|
||||||
[spacether sponsorship]: https://github.com/sponsors/spacether/
|
|
||||||
|
|
||||||
#### Template Creator
|
#### Template Creator
|
||||||
|
|
||||||
**NOTE**: Embedded templates are only supported in _Mustache_ format. Support for all other formats is experimental and subject to change at any time.
|
**NOTE**: Embedded templates are only supported in _Mustache_ format. Support for all other formats is experimental and subject to change at any time.
|
||||||
@@ -1003,8 +1007,10 @@ Here is a list of template creators:
|
|||||||
* PowerShell (refactored in 5.0.0): @wing328
|
* PowerShell (refactored in 5.0.0): @wing328
|
||||||
* Python: @spacether [:heart:][spacether sponsorship]
|
* Python: @spacether [:heart:][spacether sponsorship]
|
||||||
* Python-Experimental: @spacether [:heart:][spacether sponsorship]
|
* Python-Experimental: @spacether [:heart:][spacether sponsorship]
|
||||||
|
* Python (refactored in 7.0.0): @wing328
|
||||||
* R: @ramnov
|
* R: @ramnov
|
||||||
* Ruby (Faraday): @meganemura @dkliban
|
* Ruby (Faraday): @meganemura @dkliban
|
||||||
|
* Ruby (HTTPX): @honeyryderchuck
|
||||||
* Rust: @farcaller
|
* Rust: @farcaller
|
||||||
* Rust (rust-server): @metaswitch
|
* Rust (rust-server): @metaswitch
|
||||||
* Scala (scalaz & http4s): @tbrown1979
|
* Scala (scalaz & http4s): @tbrown1979
|
||||||
@@ -1139,7 +1145,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) @iBicha (2023/07) |
|
| 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) |
|
||||||
@@ -1152,8 +1158,8 @@ 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) |
|
||||||
@@ -1167,7 +1173,7 @@ 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 | @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10) @multani (2023/10) |
|
||||||
| 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) |
|
||||||
@@ -1260,4 +1266,3 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ install:
|
|||||||
- cmd: docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
- cmd: docker run -d -e SWAGGER_HOST=http://petstore.swagger.io -e SWAGGER_BASE_PATH=/v2 -p 80:8080 swaggerapi/petstore
|
||||||
- ps: Start-Sleep -s 120
|
- ps: Start-Sleep -s 120
|
||||||
- ps: $PSVersionTable.PSVersion
|
- ps: $PSVersionTable.PSVersion
|
||||||
- ps: Install-Module -Name Pester -Force -Scope CurrentUser
|
- ps: Install-Module -Name Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
||||||
build_script:
|
build_script:
|
||||||
- dotnet --info
|
- dotnet --info
|
||||||
# build C# aspnetcore 5.0 server
|
# build C# aspnetcore 5.0 server
|
||||||
@@ -56,8 +56,8 @@ test_script:
|
|||||||
- dotnet test samples\client\petstore\csharp\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\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 7.0)
|
||||||
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net5.0\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\OpenAPIClient-net7.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\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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
nullableReferenceTypes: true
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
nullableReferenceTypes: true
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# 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
|
||||||
|
equatable: true
|
||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
nullableReferenceTypes: true
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
nullableReferenceTypes: true
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
nullableReferenceTypes: false
|
nullableReferenceTypes: false
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
useCompareNetObjects: true
|
useCompareNetObjects: true
|
||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
targetFramework: netstandard2.0
|
targetFramework: netstandard2.0
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ additionalProperties:
|
|||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: netstandard2.0
|
targetFramework: netstandard2.0
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -7,3 +7,4 @@ additionalProperties:
|
|||||||
targetFramework: net6.0
|
targetFramework: net6.0
|
||||||
setCompareNetObjects: "true"
|
setCompareNetObjects: "true"
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
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
|
|
||||||
additionalProperties:
|
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
@@ -6,3 +6,4 @@ additionalProperties:
|
|||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
targetFramework: netstandard2.1;net47
|
targetFramework: netstandard2.1;net47
|
||||||
useCompareNetObjects: "true"
|
useCompareNetObjects: "true"
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ additionalProperties:
|
|||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: net47
|
targetFramework: net47
|
||||||
skipOneOfAnyOfGetter: true
|
skipOneOfAnyOfGetter: true
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: net48
|
targetFramework: net48
|
||||||
|
equatable: true
|
||||||
|
|||||||
19
bin/configs/csharp-restsharp-net6.0-name-mappings.yaml
Normal file
19
bin/configs/csharp-restsharp-net6.0-name-mappings.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
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
|
||||||
|
equatable: true
|
||||||
@@ -6,3 +6,4 @@ additionalProperties:
|
|||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
targetFramework: net7.0
|
targetFramework: net7.0
|
||||||
useCompareNetObjects: "true"
|
useCompareNetObjects: "true"
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# for .net standard
|
# for .net standard
|
||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient-net5.0
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net7.0
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
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
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: net7.0
|
targetFramework: net7.0
|
||||||
|
equatable: true
|
||||||
|
|||||||
11
bin/configs/csharp-restsharp-net8.0.yaml
Normal file
11
bin/configs/csharp-restsharp-net8.0.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net8.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: net8.0
|
||||||
|
equatable: true
|
||||||
@@ -6,5 +6,6 @@ additionalProperties:
|
|||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
targetFramework: netstandard2.0
|
targetFramework: netstandard2.0
|
||||||
useCompareNetObjects: "true"
|
useCompareNetObjects: "true"
|
||||||
|
equatable: true
|
||||||
globalProperties:
|
globalProperties:
|
||||||
skipFormModel: "false"
|
skipFormModel: "false"
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ additionalProperties:
|
|||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: netstandard2.0
|
targetFramework: netstandard2.0
|
||||||
conditionalSerialization: true
|
conditionalSerialization: true
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
disallowAdditionalPropertiesIfNotPresent: false
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
targetFramework: netstandard2.0
|
targetFramework: netstandard2.0
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ templateDir: modules/openapi-generator/src/main/resources/csharp
|
|||||||
library: unityWebRequest
|
library: unityWebRequest
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
targetFramework: netstandard2.0
|
targetFramework: netstandard2.0
|
||||||
|
equatable: true
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
6
bin/configs/go-echo-api.yaml
Normal file
6
bin/configs/go-echo-api.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: go
|
||||||
|
outputDir: samples/client/echo_api/go
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/go
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
9
bin/configs/go-petstore-generateMarshalJSON-false.yaml
Normal file
9
bin/configs/go-petstore-generateMarshalJSON-false.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: go
|
||||||
|
outputDir: samples/openapi3/client/petstore/go-petstore-generateMarshalJSON-false
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/go
|
||||||
|
additionalProperties:
|
||||||
|
enumClassPrefix: "true"
|
||||||
|
packageName: petstore
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
generateMarshalJSON: false
|
||||||
9
bin/configs/go-server-chi-api-server-test.yaml
Normal file
9
bin/configs/go-server-chi-api-server-test.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: go-server
|
||||||
|
outputDir: samples/openapi3/server/petstore/go/go-petstore
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go-server/petstore_with_test_endpoint.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/go-server
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: petstoreserver
|
||||||
|
addResponseHeaders: true
|
||||||
|
router: "chi"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: go-server
|
generatorName: go-server
|
||||||
outputDir: samples/server/petstore/go-chi-server
|
outputDir: samples/server/petstore/go-chi-server
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go-server/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go-server
|
templateDir: modules/openapi-generator/src/main/resources/go-server
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
generatorName: go-server
|
|
||||||
outputDir: samples/server/petstore/go-server-required
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/server-required.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/go-server
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
packageName: petstoreserver
|
|
||||||
addResponseHeaders: true
|
|
||||||
router: "chi"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
generatorName: haskell
|
generatorName: haskell
|
||||||
outputDir: samples/server/petstore/haskell-servant
|
outputDir: samples/server/petstore/haskell-servant
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/haskell/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/haskell-servant
|
templateDir: modules/openapi-generator/src/main/resources/haskell-servant
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
generatorName: haskell-yesod
|
|
||||||
outputDir: samples/server/petstore/haskell-yesod
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/haskell-yesod
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
6
bin/configs/haskell-yesod.yaml
Normal file
6
bin/configs/haskell-yesod.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: haskell-yesod
|
||||||
|
outputDir: samples/server/petstore/haskell-yesod
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/haskell/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/haskell-yesod
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: java
|
|
||||||
outputDir: samples/client/petstore/java/jersey1
|
|
||||||
library: jersey1
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/Java
|
|
||||||
additionalProperties:
|
|
||||||
hideGenerationTimestamp: "true"
|
|
||||||
artifactId: petstore-java-client-jersey1
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
|
||||||
|
library: microprofile
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
withXml: true
|
||||||
|
additionalProperties:
|
||||||
|
serializationLibrary: jackson
|
||||||
|
artifactId: microprofile-rest-client-3-jackson-with-xml
|
||||||
|
configKey: petstore
|
||||||
|
microprofileRestClientVersion: "3.0"
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user