mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-04-21 01:19:09 +00:00
Compare commits
379 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb9cbdab50 | ||
|
|
3ff367b764 | ||
|
|
4ebdcc0662 | ||
|
|
1a178ae804 | ||
|
|
2f70572219 | ||
|
|
86052aa989 | ||
|
|
7c4ada33c4 | ||
|
|
3453c7ba10 | ||
|
|
a60d3d4f81 | ||
|
|
d69714f197 | ||
|
|
7d3913f1dd | ||
|
|
f5da0ea4a1 | ||
|
|
1c2ef3356d | ||
|
|
edbacaa3c7 | ||
|
|
f3944b152d | ||
|
|
0e97e19bbc | ||
|
|
ee5a12a29d | ||
|
|
64e9b372c0 | ||
|
|
dfc66e34aa | ||
|
|
ef22749345 | ||
|
|
f1a093537d | ||
|
|
777b7eeea0 | ||
|
|
0b0d534d0d | ||
|
|
bfb69388aa | ||
|
|
31089c0e49 | ||
|
|
20ed1ee3cc | ||
|
|
90001d4fac | ||
|
|
b7fb3b2107 | ||
|
|
7ca3fc3115 | ||
|
|
f632ab7977 | ||
|
|
0f305a5958 | ||
|
|
4372659a0b | ||
|
|
d82ca75cc3 | ||
|
|
faf6924f63 | ||
|
|
ad53684e11 | ||
|
|
63c56f00b7 | ||
|
|
c4a7c14c8f | ||
|
|
ee77b7f4f0 | ||
|
|
7f2ee8520e | ||
|
|
8862b960f8 | ||
|
|
64ab13a790 | ||
|
|
f9098d5a89 | ||
|
|
ca8c6d2f5d | ||
|
|
0995e5935c | ||
|
|
473343ff94 | ||
|
|
d63459c051 | ||
|
|
7a6be5a3e6 | ||
|
|
65cb95bef0 | ||
|
|
78691cb11c | ||
|
|
81e135e038 | ||
|
|
c6b51ff6fc | ||
|
|
117be2ca4c | ||
|
|
1b352c2d00 | ||
|
|
991883636f | ||
|
|
3ef45f1b4d | ||
|
|
7e439fd0bd | ||
|
|
63df7ca574 | ||
|
|
98b315c137 | ||
|
|
a809c187b4 | ||
|
|
d966f1234d | ||
|
|
6fdb632fb9 | ||
|
|
c7542dea3e | ||
|
|
66dfad2b09 | ||
|
|
9e5e4b1fd4 | ||
|
|
2af194b014 | ||
|
|
65773a9024 | ||
|
|
311233d804 | ||
|
|
b444de2b5c | ||
|
|
d0327b2683 | ||
|
|
af6ab0ed0e | ||
|
|
050dcae3ab | ||
|
|
e948355127 | ||
|
|
7c57c55194 | ||
|
|
a5f638fefd | ||
|
|
0e67c3a5ad | ||
|
|
43fa1b736a | ||
|
|
304b3cbcaa | ||
|
|
d7a74849f2 | ||
|
|
c0dc9c63d0 | ||
|
|
03effd7d05 | ||
|
|
d11d008e71 | ||
|
|
b6b71cd4da | ||
|
|
6b5fd6e622 | ||
|
|
c010c89915 | ||
|
|
b05604dab7 | ||
|
|
cfe476f32d | ||
|
|
d911a71be9 | ||
|
|
046be5dba1 | ||
|
|
5eb083e5ce | ||
|
|
0903ecf85e | ||
|
|
88bc79e906 | ||
|
|
cef971cf9a | ||
|
|
8d8e3ddf16 | ||
|
|
623463a6ed | ||
|
|
43e878b421 | ||
|
|
50c6754fcc | ||
|
|
d2b8a1eeac | ||
|
|
dbc5d09da6 | ||
|
|
6e9dedba75 | ||
|
|
fc29daa6c0 | ||
|
|
db38f0f556 | ||
|
|
d5ab8f225e | ||
|
|
055687935b | ||
|
|
6bfd39f5de | ||
|
|
7f578d7444 | ||
|
|
8087f2b365 | ||
|
|
937d314e19 | ||
|
|
12fa2c0032 | ||
|
|
fa64c8e012 | ||
|
|
fbd94d5fbb | ||
|
|
4402d836bb | ||
|
|
89eea742fe | ||
|
|
eb8ce7331a | ||
|
|
4cfc8eff00 | ||
|
|
9d70de44d6 | ||
|
|
d88d588665 | ||
|
|
b57c23b121 | ||
|
|
b20c569187 | ||
|
|
49cadfec3a | ||
|
|
81cdc82af7 | ||
|
|
9ebc6308b9 | ||
|
|
fbca2b28d0 | ||
|
|
b929970db2 | ||
|
|
18ccf86a6a | ||
|
|
5997acb592 | ||
|
|
bce88c93ba | ||
|
|
a428cff3f4 | ||
|
|
959326048f | ||
|
|
1f8787e53a | ||
|
|
1b57d4b1e6 | ||
|
|
5677f5b09b | ||
|
|
05e672d856 | ||
|
|
2c67841e5c | ||
|
|
dcd89bf3c5 | ||
|
|
d2196dd727 | ||
|
|
041d36c954 | ||
|
|
c6a88eaf8e | ||
|
|
c4dad53455 | ||
|
|
a891876ea9 | ||
|
|
66ff91a687 | ||
|
|
4379a23608 | ||
|
|
f735c6e091 | ||
|
|
5ec4e4c8f1 | ||
|
|
cdef985ca7 | ||
|
|
dac1e6b7d3 | ||
|
|
894008f325 | ||
|
|
5f63385a31 | ||
|
|
13c95f1dd2 | ||
|
|
78b54b9283 | ||
|
|
0aaeb45dbe | ||
|
|
6e2b4f99ba | ||
|
|
45047b77f1 | ||
|
|
b3935922cd | ||
|
|
9b39c05563 | ||
|
|
cfe0b6fae3 | ||
|
|
6c0e7274ea | ||
|
|
5b885cd3db | ||
|
|
68c1d8970e | ||
|
|
bd8a206ebd | ||
|
|
0bfce24071 | ||
|
|
40894382fc | ||
|
|
429da9860b | ||
|
|
a0b9ecd773 | ||
|
|
2fb26c362e | ||
|
|
9981a408d1 | ||
|
|
91630b8591 | ||
|
|
57bf6925bb | ||
|
|
be17698320 | ||
|
|
2fd1ee66cc | ||
|
|
6344bfa779 | ||
|
|
66e8c932c3 | ||
|
|
d6c4634269 | ||
|
|
bb811db2a2 | ||
|
|
b55ae3caa8 | ||
|
|
ecd5d253a8 | ||
|
|
4cffd32f87 | ||
|
|
f2813716fb | ||
|
|
3048fb02e1 | ||
|
|
5117616b53 | ||
|
|
5e5a053bfa | ||
|
|
f5b8fd6f5e | ||
|
|
4b2abdf48d | ||
|
|
2010c2a60a | ||
|
|
41012588dd | ||
|
|
e22d079bb0 | ||
|
|
d38898a4d0 | ||
|
|
652d4ed95c | ||
|
|
104ceb9c16 | ||
|
|
0389a99cec | ||
|
|
f3af25b10c | ||
|
|
56fe7e3286 | ||
|
|
ac77339fcd | ||
|
|
3c664d1a59 | ||
|
|
76540e591f | ||
|
|
56eb8f7bc9 | ||
|
|
3bac186b2f | ||
|
|
d04c0ddbb4 | ||
|
|
afa135f93d | ||
|
|
2327562af4 | ||
|
|
daeffde719 | ||
|
|
9a289e9713 | ||
|
|
3fadfe3889 | ||
|
|
65c312653a | ||
|
|
29b6b771d7 | ||
|
|
9eefc09487 | ||
|
|
dbf720c093 | ||
|
|
4b805ff6b7 | ||
|
|
10fc9d07c7 | ||
|
|
858d5fd8b7 | ||
|
|
f656afcde3 | ||
|
|
de310f6ee1 | ||
|
|
1850c07951 | ||
|
|
9f3a73f81a | ||
|
|
35ba0414fb | ||
|
|
1eee6038df | ||
|
|
02204d0e4b | ||
|
|
bbc0b4a79f | ||
|
|
f9549479c9 | ||
|
|
e3db6a6257 | ||
|
|
1c62f839c5 | ||
|
|
178f1c9641 | ||
|
|
f950ac97e8 | ||
|
|
44c342bddd | ||
|
|
35b94dff7a | ||
|
|
6ee94d636b | ||
|
|
bdb063f170 | ||
|
|
5a9f973e91 | ||
|
|
c14c7a0421 | ||
|
|
27a705efd5 | ||
|
|
f9dedd74ec | ||
|
|
be77442bff | ||
|
|
3fa806006b | ||
|
|
0462bed734 | ||
|
|
d02c0f493e | ||
|
|
dfbe985db3 | ||
|
|
a7159f6bcb | ||
|
|
3b6b55144d | ||
|
|
28daa68943 | ||
|
|
d589f5db11 | ||
|
|
caf22add95 | ||
|
|
e767496357 | ||
|
|
d2e20253e4 | ||
|
|
abce11152e | ||
|
|
ee7927a525 | ||
|
|
72de5bc952 | ||
|
|
d4d14204e8 | ||
|
|
a66dd20783 | ||
|
|
346231083f | ||
|
|
b844d8d4cd | ||
|
|
338f7f2a09 | ||
|
|
80ab53b2ce | ||
|
|
3233eff187 | ||
|
|
64d9719d39 | ||
|
|
7f64d906a5 | ||
|
|
2fb59ff258 | ||
|
|
4c08ff865d | ||
|
|
c67b1132ec | ||
|
|
f9f5af5ed9 | ||
|
|
5e446b4147 | ||
|
|
b4378a6277 | ||
|
|
1136872cd5 | ||
|
|
ffefebdd88 | ||
|
|
7a57b80955 | ||
|
|
a94b8f90ca | ||
|
|
79b1cc5d5e | ||
|
|
c22d790249 | ||
|
|
ca1f02500f | ||
|
|
dcb8b1a2dc | ||
|
|
4fc46cb0d4 | ||
|
|
b1de687c7f | ||
|
|
6da343a8ad | ||
|
|
9c5722b9f6 | ||
|
|
86a8e52d08 | ||
|
|
89f0f7556f | ||
|
|
bf67367fa1 | ||
|
|
4048942485 | ||
|
|
6bf528950f | ||
|
|
dcd9463e88 | ||
|
|
7a3ea2872a | ||
|
|
63afd455f7 | ||
|
|
047ceeaa45 | ||
|
|
6b13ad522f | ||
|
|
5f41acfe79 | ||
|
|
b2abf36af6 | ||
|
|
9bac31859c | ||
|
|
04169ec29b | ||
|
|
c4a6c4a542 | ||
|
|
c761f11a18 | ||
|
|
8375b96535 | ||
|
|
8e329feb6a | ||
|
|
7881152dc8 | ||
|
|
a8d56fd8ce | ||
|
|
587fcff85c | ||
|
|
4f3726ecfd | ||
|
|
56dd63525c | ||
|
|
3b0bb0a73d | ||
|
|
36287acfd6 | ||
|
|
c6e2a5fa94 | ||
|
|
5e5832d982 | ||
|
|
045a9c16b1 | ||
|
|
701b6bd576 | ||
|
|
11c56117d2 | ||
|
|
bd9d93db89 | ||
|
|
8ca3543436 | ||
|
|
d81b5a37d1 | ||
|
|
c8cfa16a48 | ||
|
|
16552755bf | ||
|
|
07e5a674db | ||
|
|
0becb3feb7 | ||
|
|
cd2fbd6ff4 | ||
|
|
550e31775d | ||
|
|
62b176e95d | ||
|
|
7d977b63dc | ||
|
|
34c6c583cc | ||
|
|
8756ff7596 | ||
|
|
2ec6b53dfa | ||
|
|
08ec37cc10 | ||
|
|
73b6b7084f | ||
|
|
c749919812 | ||
|
|
866558f9e7 | ||
|
|
24d2083684 | ||
|
|
868074212a | ||
|
|
f3999109cb | ||
|
|
f39675b41a | ||
|
|
22b678764c | ||
|
|
6e3b1996ed | ||
|
|
a4072c5ea9 | ||
|
|
20db1e1590 | ||
|
|
1996d7e8fc | ||
|
|
a2ee3a7cfc | ||
|
|
8f24df4165 | ||
|
|
8a8bacd0d5 | ||
|
|
69e4336f67 | ||
|
|
298d6c2200 | ||
|
|
4c1257a2b6 | ||
|
|
31c1a86736 | ||
|
|
1eb8c58446 | ||
|
|
02307dbf0c | ||
|
|
995c6c5a88 | ||
|
|
191eba4afa | ||
|
|
b1f572e116 | ||
|
|
1c1365513f | ||
|
|
a3fb8f59f8 | ||
|
|
5c51ee49a2 | ||
|
|
3ab495a0aa | ||
|
|
e40f9e3801 | ||
|
|
7f40ce0dd8 | ||
|
|
7d9e1ecc22 | ||
|
|
8ead4b6e3f | ||
|
|
0e34d39833 | ||
|
|
21be5f5abc | ||
|
|
4ad76cc86c | ||
|
|
e8ae249cad | ||
|
|
cde0f551fc | ||
|
|
7f64246b20 | ||
|
|
b528e4a7a7 | ||
|
|
74e49ac1d2 | ||
|
|
ce0c0dcab0 | ||
|
|
ba2e50519d | ||
|
|
ffa196e6a9 | ||
|
|
36b72052e6 | ||
|
|
123119c076 | ||
|
|
890c758fd8 | ||
|
|
f2bbb9e0a2 | ||
|
|
efc53f5d47 | ||
|
|
0f13dfedb9 | ||
|
|
c96d3088c5 | ||
|
|
90de8dcd75 | ||
|
|
a018c10c70 | ||
|
|
2cff152e2a | ||
|
|
3ad5303f99 | ||
|
|
2b8d496c80 | ||
|
|
5cef0803b8 | ||
|
|
e0b6b2bbc7 | ||
|
|
af536f6205 | ||
|
|
ecdd8b5442 | ||
|
|
70df1170cc | ||
|
|
85ab65c4ca | ||
|
|
a79aad8420 |
@@ -11,10 +11,9 @@
|
|||||||
},
|
},
|
||||||
"ghcr.io/devcontainers/features/rust:1": {},
|
"ghcr.io/devcontainers/features/rust:1": {},
|
||||||
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
|
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
|
||||||
"docker-in-docker": {
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"moby": true,
|
"moby": true
|
||||||
"dockerDashComposeVersion": "v1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
|
|||||||
4
.github/CODEOWNERS
vendored
4
.github/CODEOWNERS
vendored
@@ -28,3 +28,7 @@ modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @martindelille
|
|||||||
samples/client/petstore/cpp-qt/**/* @martindelille
|
samples/client/petstore/cpp-qt/**/* @martindelille
|
||||||
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd
|
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @muttleyxd
|
||||||
samples/client/petstore/cpp-qt/**/* @muttleyxd
|
samples/client/petstore/cpp-qt/**/* @muttleyxd
|
||||||
|
|
||||||
|
# cpp-rest-client technical committee
|
||||||
|
modules/openapi-generator/src/main/resources/cpp-rest-client/**/* @aminya
|
||||||
|
samples/client/petstore/cpp-restsdk/**/* @aminya
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -10,7 +10,7 @@ assignees: ''
|
|||||||
#### Bug Report Checklist
|
#### Bug Report Checklist
|
||||||
|
|
||||||
- [ ] Have you provided a full/minimal spec to reproduce the issue?
|
- [ ] Have you provided a full/minimal spec to reproduce the issue?
|
||||||
- [ ] Have you validated the input using an OpenAPI validator ([example](https://apitools.dev/swagger-parser/online/))?
|
- [ ] Have you validated the input using an OpenAPI validator?
|
||||||
- [ ] Have you [tested with the latest master](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) to confirm the issue still exists?
|
- [ ] Have you [tested with the latest master](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) to confirm the issue still exists?
|
||||||
- [ ] Have you searched for related issues/PRs?
|
- [ ] Have you searched for related issues/PRs?
|
||||||
- [ ] What's the actual output vs expected output?
|
- [ ] What's the actual output vs expected output?
|
||||||
|
|||||||
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -11,11 +11,12 @@
|
|||||||
./bin/generate-samples.sh ./bin/configs/*.yaml || exit
|
./bin/generate-samples.sh ./bin/configs/*.yaml || exit
|
||||||
./bin/utils/export_docs_generators.sh || exit
|
./bin/utils/export_docs_generators.sh || exit
|
||||||
```
|
```
|
||||||
(For Windows users, please run the script in [Git BASH](https://gitforwindows.org/))
|
(For Windows users, please run the script in [WSL](https://learn.microsoft.com/en-us/windows/wsl/install))
|
||||||
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*`.
|
||||||
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
|
IMPORTANT: Do **NOT** purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
|
||||||
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (upcoming `7.x.0` minor release - breaking changes with fallbacks), `8.0.x` (breaking changes without fallbacks)
|
- [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master` (upcoming `7.x.0` minor release - breaking changes with fallbacks), `8.0.x` (breaking changes without fallbacks)
|
||||||
|
- [ ] If your PR solves a reported issue, reference it using [GitHub's linking syntax](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) (e.g., having `"fixes #123"` present in the PR description)
|
||||||
- [ ] 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.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
report:
|
report:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dorny/test-reporter@v1
|
- uses: dorny/test-reporter@v2
|
||||||
with:
|
with:
|
||||||
artifact: surefire-test-results
|
artifact: surefire-test-results
|
||||||
name: JUnit Test results
|
name: JUnit Test results
|
||||||
|
|||||||
42
.github/workflows/openapi-generator.yaml
vendored
42
.github/workflows/openapi-generator.yaml
vendored
@@ -142,35 +142,19 @@ jobs:
|
|||||||
path: modules/openapi-generator-cli/target
|
path: modules/openapi-generator-cli/target
|
||||||
- name: Delete samples that are entirely generated
|
- name: Delete samples that are entirely generated
|
||||||
run: |
|
run: |
|
||||||
rm -rf samples/client/petstore/csharp/generichost/latest/Tags
|
# List all directories in generichost, filter out Manual directories, and remove the rest
|
||||||
|
cd samples/client/petstore/csharp/generichost
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/AllOf
|
for version_dir in */ ; do
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOf
|
if [ -d "$version_dir" ]; then
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare
|
cd "$version_dir"
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/FormModels
|
for dir in */ ; do
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/NullReferenceTypes
|
if [ -d "$dir" ] && [[ ! "$dir" =~ Manual ]]; then
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/OneOf
|
rm -rf "$dir"
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/Petstore
|
fi
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/SourceGeneration
|
done
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
cd ..
|
||||||
|
fi
|
||||||
rm -rf samples/client/petstore/csharp/generichost/standard2.0/Petstore
|
done
|
||||||
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/AllOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/AnyOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/FormModels
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/OneOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/Petstore
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate
|
|
||||||
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/AllOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/AnyOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/FormModels
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/OneOf
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/Petstore
|
|
||||||
rm -rf samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate
|
|
||||||
- name: Generate samples
|
- name: Generate samples
|
||||||
run: |
|
run: |
|
||||||
bash bin/generate-samples.sh
|
bash bin/generate-samples.sh
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
30
.github/workflows/samples-cpp-oatpp-server.yaml
vendored
Normal file
30
.github/workflows/samples-cpp-oatpp-server.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Samples cpp oat++ server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "samples/server/petstore/cpp-oatpp/**"
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- "samples/server/petstore/cpp-oatpp/**"
|
||||||
|
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 6.9
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build cpp qt client
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/cpp-oatpp
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macOS-latest
|
||||||
|
- windows-latest
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: cmake -B build && cmake --build build --verbose
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
|
|||||||
@@ -16,9 +16,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
- samples/client/petstore/csharp/restsharp/net8/ParameterMappings/
|
||||||
|
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
2
.github/workflows/samples-dotnet8.yaml
vendored
2
.github/workflows/samples-dotnet8.yaml
vendored
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
4
.github/workflows/samples-dotnet9.yaml
vendored
4
.github/workflows/samples-dotnet9.yaml
vendored
@@ -24,6 +24,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/csharp/generichost/latest/Tags
|
- samples/client/petstore/csharp/generichost/latest/Tags
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/HelloWorld
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
||||||
- samples/client/petstore/csharp/generichost/net9/AllOf
|
- samples/client/petstore/csharp/generichost/net9/AllOf
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
||||||
@@ -43,7 +45,7 @@ jobs:
|
|||||||
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.3.0
|
- uses: actions/setup-dotnet@v4.3.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.101'
|
dotnet-version: '9.0.101'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
39
.github/workflows/samples-elixir.yaml
vendored
Normal file
39
.github/workflows/samples-elixir.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Samples Elixir
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/elixir/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/elixir/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
otp: ['25.3.2', '26.2.5', '27.3.3']
|
||||||
|
elixir: ['1.18.3']
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/elixir/
|
||||||
|
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: erlef/setup-beam@v1
|
||||||
|
with:
|
||||||
|
otp-version: ${{matrix.otp}}
|
||||||
|
elixir-version: ${{matrix.elixir}}
|
||||||
|
- name: mix deps.get
|
||||||
|
run: mix deps.get
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
- name: mix test
|
||||||
|
run: mix test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
27
.github/workflows/samples-java-client-jdk11.yaml
vendored
27
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -61,6 +61,8 @@ jobs:
|
|||||||
- samples/client/petstore/java/webclient-swagger2
|
- samples/client/petstore/java/webclient-swagger2
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
||||||
- samples/client/petstore/java/vertx
|
- samples/client/petstore/java/vertx
|
||||||
|
- samples/client/petstore/java/vertx-no-nullable
|
||||||
|
- samples/client/petstore/java/vertx-supportVertxFuture
|
||||||
- samples/client/petstore/java/jersey2-java8-localdatetime
|
- samples/client/petstore/java/jersey2-java8-localdatetime
|
||||||
- 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
|
||||||
@@ -69,11 +71,13 @@ jobs:
|
|||||||
- samples/client/petstore/java/microprofile-rest-client-mutiny
|
- samples/client/petstore/java/microprofile-rest-client-mutiny
|
||||||
- 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
|
||||||
|
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
|
- samples/client/petstore/java/microprofile-rest-client-3.0-jackson-with-xml
|
||||||
- samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
|
- samples/client/petstore/java/microprofile-rest-client-3.0-mutiny
|
||||||
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
|
- samples/client/petstore/java/microprofile-rest-client-with-useSingleRequestParameter
|
||||||
- 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/feign-hc5
|
||||||
- samples/client/petstore/java/feign-no-nullable
|
- samples/client/petstore/java/feign-no-nullable
|
||||||
- samples/client/petstore/java/okhttp-gson-awsv4signature
|
- 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
|
||||||
@@ -107,6 +111,27 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.m2
|
~/.m2
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Build
|
- name: Build with Maven
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package --no-transfer-progress
|
||||||
|
|
||||||
|
- name: Cache gradle dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
cache-name: gradle-caches
|
||||||
|
with:
|
||||||
|
path: ~/.gradle/caches
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
|
- name: Cache gradle wrapper
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
cache-name: gradle-wrapper
|
||||||
|
with:
|
||||||
|
path: ~/.gradle/wrapper
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
||||||
|
|
||||||
|
- name: Build with Gradle
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
if: ${{ hashFiles('./gradlew') != '' }}
|
||||||
|
run: ./gradlew build -x test
|
||||||
|
|||||||
@@ -6,13 +6,17 @@ on:
|
|||||||
- samples/client/petstore/java/resttemplate-jakarta/**
|
- samples/client/petstore/java/resttemplate-jakarta/**
|
||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/restclient-*/**
|
- samples/client/petstore/java/restclient-*/**
|
||||||
|
- samples/client/others/java/webclient-sealedInterface/**
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
||||||
|
- samples/client/others/java/restclient-enum-in-multipart/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/java/resttemplate-jakarta/**
|
- samples/client/petstore/java/resttemplate-jakarta/**
|
||||||
- samples/client/petstore/java/webclient-jakarta/**
|
- samples/client/petstore/java/webclient-jakarta/**
|
||||||
- samples/client/petstore/java/restclient-*/**
|
- samples/client/petstore/java/restclient-*/**
|
||||||
|
- samples/client/others/java/webclient-sealedInterface/**
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
|
||||||
|
- samples/client/others/java/restclient-enum-in-multipart/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK17
|
name: Build Java Client JDK17
|
||||||
@@ -28,7 +32,10 @@ jobs:
|
|||||||
- samples/client/petstore/java/restclient-nullable-arrays
|
- samples/client/petstore/java/restclient-nullable-arrays
|
||||||
- samples/client/petstore/java/restclient-swagger2
|
- samples/client/petstore/java/restclient-swagger2
|
||||||
- samples/client/petstore/java/restclient-useSingleRequestParameter
|
- samples/client/petstore/java/restclient-useSingleRequestParameter
|
||||||
|
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
|
||||||
|
- samples/client/others/java/webclient-sealedInterface
|
||||||
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
- samples/client/petstore/java/webclient-useSingleRequestParameter
|
||||||
|
- samples/client/others/java/restclient-enum-in-multipart
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
|
|||||||
2
.github/workflows/samples-julia.yaml
vendored
2
.github/workflows/samples-julia.yaml
vendored
@@ -30,7 +30,7 @@ jobs:
|
|||||||
# Using develop mode to install package so that it is easier to modify the package test files
|
# Using develop mode to install package so that it is easier to modify the package test files
|
||||||
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
|
julia -e "using Pkg; Pkg.develop(\"OpenAPI\");"
|
||||||
cd ~/.julia/dev/OpenAPI
|
cd ~/.julia/dev/OpenAPI
|
||||||
git checkout v0.1.25
|
git checkout v0.2.0
|
||||||
cd $currdir
|
cd $currdir
|
||||||
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
rm -rf ~/.julia/dev/OpenAPI/test/client/openapigenerator_petstore_v3/petstore
|
||||||
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
rm -rf ~/.julia/dev/OpenAPI/test/server/openapigenerator_petstore_v3/petstore
|
||||||
|
|||||||
1
.github/workflows/samples-kotlin-client.yaml
vendored
1
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -65,6 +65,7 @@ jobs:
|
|||||||
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
||||||
- samples/client/petstore/kotlin-name-parameter-mappings
|
- samples/client/petstore/kotlin-name-parameter-mappings
|
||||||
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
||||||
|
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-server/javalin-6
|
- samples/server/petstore/kotlin-server/javalin-6
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
- samples/server/petstore/kotlin-server/ktor2
|
||||||
|
- samples/server/petstore/kotlin-misk
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
# - samples/server/petstore/kotlin-spring-default/
|
# - samples/server/petstore/kotlin-spring-default/
|
||||||
steps:
|
steps:
|
||||||
@@ -66,4 +67,4 @@ jobs:
|
|||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
@@ -25,6 +25,7 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
- samples/server/petstore/kotlin-server/ktor2
|
||||||
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
||||||
|
- samples/server/petstore/kotlin-misk
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
|
|||||||
4
.github/workflows/samples-kotlin-server.yaml
vendored
4
.github/workflows/samples-kotlin-server.yaml
vendored
@@ -47,6 +47,8 @@ jobs:
|
|||||||
- samples/server/others/kotlin-server/jaxrs-spec
|
- samples/server/others/kotlin-server/jaxrs-spec
|
||||||
- samples/server/others/kotlin-server/jaxrs-spec-array-response
|
- samples/server/others/kotlin-server/jaxrs-spec-array-response
|
||||||
- samples/server/petstore/kotlin-spring-cloud
|
- samples/server/petstore/kotlin-spring-cloud
|
||||||
|
- samples/server/petstore/kotlin-misk
|
||||||
|
- samples/server/petstore/kotlin-misk-config
|
||||||
# comment out due to gradle build failure
|
# comment out due to gradle build failure
|
||||||
#- samples/server/petstore/kotlin-spring-default
|
#- samples/server/petstore/kotlin-spring-default
|
||||||
# no build.gradle file
|
# no build.gradle file
|
||||||
@@ -73,4 +75,4 @@ jobs:
|
|||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
31
.github/workflows/samples-ocaml.yaml
vendored
Normal file
31
.github/workflows/samples-ocaml.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Samples OCaml
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/ocaml/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/ocaml/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build OCaml
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- 'samples/client/petstore/ocaml/'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set-up OCaml
|
||||||
|
uses: ocaml/setup-ocaml@v3
|
||||||
|
with:
|
||||||
|
ocaml-compiler: 5
|
||||||
|
- name: Install
|
||||||
|
run: opam install . --deps-only --with-test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
- name: Build
|
||||||
|
run: opam exec -- dune build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
45
.github/workflows/samples-php-client.yaml
vendored
Normal file
45
.github/workflows/samples-php-client.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Samples PHP clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/php/OpenAPIClient-php/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build PHP projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php:
|
||||||
|
- "8.1"
|
||||||
|
- "8.2"
|
||||||
|
- "8.3"
|
||||||
|
- "8.4"
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/php/OpenAPIClient-php/
|
||||||
|
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
|
||||||
|
- name: Setup PHP with tools
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "${{ matrix.php }}"
|
||||||
|
tools: php-cs-fixer, phpunit
|
||||||
|
- name: composer install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: composer install
|
||||||
|
- name: phpunit
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: vendor/bin/phpunit tests
|
||||||
3
.github/workflows/samples-php8.yaml
vendored
3
.github/workflows/samples-php8.yaml
vendored
@@ -6,11 +6,13 @@ on:
|
|||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
- samples/server/petstore/php-flight/**
|
- samples/server/petstore/php-flight/**
|
||||||
- samples/server/petstore/php-laravel/**
|
- samples/server/petstore/php-laravel/**
|
||||||
|
- samples/server/petstore/php-laravel-issue-21334/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/**
|
||||||
- samples/server/petstore/php-flight/**
|
- samples/server/petstore/php-flight/**
|
||||||
- samples/server/petstore/php-laravel/**
|
- samples/server/petstore/php-laravel/**
|
||||||
|
- samples/server/petstore/php-laravel-issue-21334/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build PHP projects
|
name: Build PHP projects
|
||||||
@@ -28,6 +30,7 @@ jobs:
|
|||||||
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
- samples/server/petstore/php-symfony/SymfonyBundle-php/
|
||||||
- samples/server/petstore/php-flight/
|
- samples/server/petstore/php-flight/
|
||||||
- samples/server/petstore/php-laravel/
|
- samples/server/petstore/php-laravel/
|
||||||
|
- samples/server/petstore/php-laravel-issue-21334/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup PHP with tools
|
- name: Setup PHP with tools
|
||||||
|
|||||||
39
.github/workflows/samples-protobuf.yaml
vendored
Normal file
39
.github/workflows/samples-protobuf.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Samples Protobuf
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- .github/workflows/samples-protobuf.yaml
|
||||||
|
- samples/config/petstore/protobuf-schema/**
|
||||||
|
- samples/config/petstore/protobuf-schema-config/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- .github/workflows/samples-protobuf.yaml
|
||||||
|
- samples/config/petstore/protobuf-schema/**
|
||||||
|
- samples/config/petstore/protobuf-schema-config/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Protobuf Client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- 'samples/config/petstore/protobuf-schema/'
|
||||||
|
- 'samples/config/petstore/protobuf-schema-config/'
|
||||||
|
- 'samples/config/petstore/protobuf-schema-config-complex/'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install Protocol Buffers Compiler
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y protobuf-compiler
|
||||||
|
- name: Generate Protobuf Schema
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
mkdir out
|
||||||
|
protoc --proto_path=. --cpp_out=out models/*.proto services/*.proto
|
||||||
|
- name: Verify Generated Files
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
ls -l out/models
|
||||||
|
ls -l out/services
|
||||||
@@ -18,11 +18,11 @@ jobs:
|
|||||||
- samples/client/echo_api/python
|
- samples/client/echo_api/python
|
||||||
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
|
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
|
||||||
python-version:
|
python-version:
|
||||||
- "3.8"
|
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
- "3.12"
|
||||||
|
- "3.13"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
|
|||||||
14
.github/workflows/samples-python-petstore.yaml
vendored
14
.github/workflows/samples-python-petstore.yaml
vendored
@@ -8,6 +8,18 @@ on:
|
|||||||
- .github/workflows/samples-python-petstore.yaml
|
- .github/workflows/samples-python-petstore.yaml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
validate-pyproject-toml:
|
||||||
|
name: Validate pyproject.toml
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.13"
|
||||||
|
- name: Install validator
|
||||||
|
run: pip install 'validate-pyproject[all]'
|
||||||
|
- name: Validate
|
||||||
|
run: validate-pyproject samples/openapi3/client/petstore/python/pyproject.toml
|
||||||
build:
|
build:
|
||||||
name: Test Python client
|
name: Test Python client
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -15,11 +27,11 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
- "3.8"
|
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
- "3.12"
|
- "3.12"
|
||||||
|
- "3.13"
|
||||||
sample:
|
sample:
|
||||||
- samples/openapi3/client/petstore/python-aiohttp
|
- samples/openapi3/client/petstore/python-aiohttp
|
||||||
- samples/openapi3/client/petstore/python
|
- samples/openapi3/client/petstore/python
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
- "3.8"
|
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
|
|||||||
43
.github/workflows/samples-r-petstore.yaml
vendored
Normal file
43
.github/workflows/samples-r-petstore.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: Samples R Petstore
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/R/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/petstore/R/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build R
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- 'samples/client/petstore/R/'
|
||||||
|
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: r-lib/actions/setup-r@v2
|
||||||
|
with:
|
||||||
|
r-version: 3.6.1
|
||||||
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
||||||
|
with:
|
||||||
|
cache-version: 2
|
||||||
|
- name: Install curl
|
||||||
|
run: sudo apt-get install -y r-cran-curl
|
||||||
|
- name: build and test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
# export _R_CHECK_FORCE_SUGGESTS_=false
|
||||||
|
/bin/bash build_and_test.bash
|
||||||
|
shell: bash
|
||||||
42
.github/workflows/samples-rust.yaml
vendored
42
.github/workflows/samples-rust.yaml
vendored
@@ -26,12 +26,54 @@ jobs:
|
|||||||
- samples/client/others/rust/
|
- samples/client/others/rust/
|
||||||
- samples/client/petstore/rust/
|
- samples/client/petstore/rust/
|
||||||
- samples/server/petstore/rust-server/
|
- samples/server/petstore/rust-server/
|
||||||
|
- samples/server/petstore/rust-server-deprecated/
|
||||||
- samples/server/petstore/rust-axum/
|
- samples/server/petstore/rust-axum/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
|
- name: Rust cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
cache-targets: false # Don't cache workspace target directories as they don't exist
|
||||||
|
cache-directories:
|
||||||
|
${{ matrix.sample }}/target
|
||||||
|
workspaces: |
|
||||||
|
${{ matrix.sample }}/output/*
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: cargo build --all-targets --all-features
|
run: cargo build --all-targets --all-features
|
||||||
|
- name: Tests
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
# Skip samples/client/petstore/rust/ as it's tests are failing.
|
||||||
|
if [[ "${{ matrix.sample }}" == "samples/client/petstore/rust/" ]]; then
|
||||||
|
echo "Skipping tests for samples/client/petstore/rust/"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Iterate through each example and test various features
|
||||||
|
for package in $(find . -maxdepth 1 -mindepth 1 -type d)
|
||||||
|
do
|
||||||
|
# Not all versions have a client example
|
||||||
|
if test -f examples/client/main.rs; then
|
||||||
|
cargo build --example client --features="client"
|
||||||
|
fi
|
||||||
|
# Not all versions have a server example
|
||||||
|
if test -f examples/server/main.rs; then
|
||||||
|
cargo build --example server --features="server"
|
||||||
|
fi
|
||||||
|
# Test the CLI works if present
|
||||||
|
if test -f bin/cli.rs; then
|
||||||
|
cargo build --bin ${package##*/} --features cli
|
||||||
|
target/debug/${package##*/} --help
|
||||||
|
fi
|
||||||
|
cargo fmt
|
||||||
|
cargo test
|
||||||
|
cargo clippy
|
||||||
|
cargo doc
|
||||||
|
done
|
||||||
|
|||||||
38
.github/workflows/samples-scala-jdk8.yaml
vendored
Normal file
38
.github/workflows/samples-scala-jdk8.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
name: Samples Scala/sbt (JDK8)
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/scala-finch/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/scala-finch/**'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build scala-finch servers
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/scala-finch # cannot be tested with jdk11
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 8
|
||||||
|
- name: Setup sbt launcher
|
||||||
|
uses: sbt/setup-sbt@v1
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.ivy2
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/build.sbt') }}
|
||||||
|
- name: Build and test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: sbt -v +test
|
||||||
8
.github/workflows/samples-scala.yaml
vendored
8
.github/workflows/samples-scala.yaml
vendored
@@ -20,18 +20,18 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- 'samples/client/petstore/java/okhttp-gson'
|
- samples/client/petstore/java/okhttp-gson
|
||||||
- samples/client/petstore/scalaz
|
- samples/client/petstore/scalaz
|
||||||
- samples/client/petstore/scala-pekko
|
- samples/client/petstore/scala-pekko
|
||||||
- samples/client/petstore/scala-http4s
|
- samples/client/petstore/scala-http4s
|
||||||
#- samples/client/petstore/scala-sttp # won't pass while the same tests in circleci pass
|
#- samples/client/petstore/scala-sttp
|
||||||
|
#- samples/client/petstore/scala-sttp-circe
|
||||||
# servers
|
# servers
|
||||||
- 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/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-http4s-server
|
- samples/server/petstore/scala-http4s-server
|
||||||
- samples/server/petstore/scala-cask
|
- samples/server/petstore/scala-cask
|
||||||
steps:
|
steps:
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 11
|
||||||
- name: Setup sbt launcher
|
- name: Setup sbt launcher
|
||||||
uses: sbt/setup-sbt@v1
|
uses: sbt/setup-sbt@v1
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
|
|||||||
9
.github/workflows/samples-spring-jdk17.yaml
vendored
9
.github/workflows/samples-spring-jdk17.yaml
vendored
@@ -5,16 +5,22 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3
|
||||||
|
- samples/server/petstore/springboot-api-response-examples
|
||||||
- samples/server/petstore/springboot-lombok-data
|
- samples/server/petstore/springboot-lombok-data
|
||||||
- samples/server/petstore/springboot-lombok-tostring
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
- samples/server/petstore/springboot-file-delegate-optional
|
- samples/server/petstore/springboot-file-delegate-optional
|
||||||
|
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
|
- samples/server/petstore/spring-boot-oneof-sealed
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3
|
||||||
|
- samples/server/petstore/springboot-api-response-examples
|
||||||
- samples/server/petstore/springboot-lombok-data
|
- samples/server/petstore/springboot-lombok-data
|
||||||
- samples/server/petstore/springboot-lombok-tostring
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
- samples/server/petstore/springboot-file-delegate-optional
|
- samples/server/petstore/springboot-file-delegate-optional
|
||||||
|
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
|
- samples/server/petstore/spring-boot-oneof-sealed
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Spring (JDK17)
|
name: Build Java Spring (JDK17)
|
||||||
@@ -27,9 +33,12 @@ jobs:
|
|||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
# servers
|
# servers
|
||||||
- samples/openapi3/server/petstore/springboot-3
|
- samples/openapi3/server/petstore/springboot-3
|
||||||
|
- samples/server/petstore/springboot-api-response-examples
|
||||||
- samples/server/petstore/springboot-lombok-data
|
- samples/server/petstore/springboot-lombok-data
|
||||||
- samples/server/petstore/springboot-lombok-tostring
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
- samples/server/petstore/springboot-file-delegate-optional
|
- samples/server/petstore/springboot-file-delegate-optional
|
||||||
|
- samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
|
- samples/server/petstore/spring-boot-oneof-sealed
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
|
|||||||
1
.github/workflows/samples-spring.yaml
vendored
1
.github/workflows/samples-spring.yaml
vendored
@@ -45,6 +45,7 @@ jobs:
|
|||||||
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
- samples/server/petstore/spring-boot-defaultInterface-unhandledException
|
||||||
- samples/server/petstore/springboot
|
- samples/server/petstore/springboot
|
||||||
- samples/server/petstore/springboot-beanvalidation
|
- samples/server/petstore/springboot-beanvalidation
|
||||||
|
- samples/server/petstore/springboot-builtin-validation
|
||||||
- samples/server/petstore/springboot-delegate
|
- samples/server/petstore/springboot-delegate
|
||||||
- samples/server/petstore/springboot-delegate-no-response-entity
|
- samples/server/petstore/springboot-delegate-no-response-entity
|
||||||
- samples/server/petstore/springboot-implicitHeaders
|
- samples/server/petstore/springboot-implicitHeaders
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<extension>
|
<extension>
|
||||||
<groupId>com.gradle</groupId>
|
<groupId>com.gradle</groupId>
|
||||||
<artifactId>develocity-maven-extension</artifactId>
|
<artifactId>develocity-maven-extension</artifactId>
|
||||||
<version>1.21.6</version>
|
<version>1.23.2</version>
|
||||||
</extension>
|
</extension>
|
||||||
<extension>
|
<extension>
|
||||||
<groupId>com.gradle</groupId>
|
<groupId>com.gradle</groupId>
|
||||||
<artifactId>common-custom-user-data-maven-extension</artifactId>
|
<artifactId>common-custom-user-data-maven-extension</artifactId>
|
||||||
<version>1.12.5</version>
|
<version>2.0.2</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|||||||
12
.travis.yml
12
.travis.yml
@@ -37,12 +37,12 @@ services:
|
|||||||
|
|
||||||
# comment out the host table change to use the public petstore server
|
# comment out the host table change to use the public petstore server
|
||||||
addons:
|
addons:
|
||||||
apt:
|
#apt:
|
||||||
sources:
|
# sources:
|
||||||
- ubuntu-toolchain-r-test
|
# - ubuntu-toolchain-r-test
|
||||||
packages:
|
# packages:
|
||||||
- g++-5
|
# - g++-5
|
||||||
chrome: stable
|
#chrome: stable
|
||||||
hosts:
|
hosts:
|
||||||
- petstore.swagger.io
|
- petstore.swagger.io
|
||||||
|
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
#nvm install stable
|
#nvm install stable
|
||||||
# install v16 instead of the latest stable version
|
# install v16 instead of the latest stable version
|
||||||
nvm install 16
|
nvm install 18
|
||||||
nvm alias default 16
|
nvm alias default 18
|
||||||
node --version
|
node --version
|
||||||
|
|
||||||
# Each step uses the same `$BASH_ENV`, so need to modify it
|
# Each step uses the same `$BASH_ENV`, so need to modify it
|
||||||
@@ -122,6 +122,7 @@ else
|
|||||||
|
|
||||||
(cd samples/client/petstore/scala-akka && mvn integration-test)
|
(cd samples/client/petstore/scala-akka && mvn integration-test)
|
||||||
(cd samples/client/petstore/scala-sttp && mvn integration-test)
|
(cd samples/client/petstore/scala-sttp && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/scala-sttp-circe && mvn integration-test)
|
||||||
(cd samples/client/petstore/scala-sttp4 && mvn integration-test)
|
(cd samples/client/petstore/scala-sttp4 && mvn integration-test)
|
||||||
(cd samples/client/petstore/clojure && mvn integration-test)
|
(cd samples/client/petstore/clojure && mvn integration-test)
|
||||||
(cd samples/client/petstore/java/jersey2-java8 && mvn integration-test)
|
(cd samples/client/petstore/java/jersey2-java8 && mvn integration-test)
|
||||||
|
|||||||
99
README.md
99
README.md
@@ -6,7 +6,7 @@
|
|||||||
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
[](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.openapitools%22%20AND%20a%3A%22openapi-generator%22)
|
||||||
[](./LICENSE)
|
[](./LICENSE)
|
||||||
[](https://opencollective.com/openapi_generator)
|
[](https://opencollective.com/openapi_generator)
|
||||||
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-2wmkn4s8g-n19PJ99Y6Vei74WMUIehQA)
|
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-36ucx4ybl-jYrN6euoYn6zxXNZdldoZA)
|
||||||
[](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/recipes/openapi-generator)
|
[](https://conan.io/center/recipes/openapi-generator)
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.12.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.15.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)
|
||||||
@@ -74,6 +74,9 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<img src="https://openapi-generator.tech/img/companies/route4me.png" width="128" height="128">](https://route4me.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
[<img src="https://openapi-generator.tech/img/companies/route4me.png" width="128" height="128">](https://route4me.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/dm.png" width="128" height="128">](https://www.dotcom-monitor.com/sponsoring-open-source-projects/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
[<img src="https://openapi-generator.tech/img/companies/dm.png" width="128" height="128">](https://www.dotcom-monitor.com/sponsoring-open-source-projects/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/clickit.jpg" width="128" height="128">](https://www.clickittech.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
[<img src="https://openapi-generator.tech/img/companies/clickit.jpg" width="128" height="128">](https://www.clickittech.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/unified_to.jpg" width="128" height="128">](https://unified.to/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/savetwt.jpg" width="128" height="128">](https://savetwt.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/serpapi.png" width="128" height="128">](https://serpapi.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
|
|
||||||
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity
|
#### Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity
|
||||||
|
|
||||||
@@ -89,39 +92,55 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, Spring 6 RestClient, 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, pekko), **Swift** (2.x, 3.x, 4.x, 5.x, 6.x), **Typescript** (AngularJS, Angular (9.x - 19.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, Spring 6 RestClient, 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, pekko), **Swift** (2.x, 3.x, 4.x, 5.x, 6.x), **Typescript** (AngularJS, Angular (9.x - 19.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** ([Flight](https://docs.flightphp.com/), 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/), [Cask](https://github.com/com-lihaoyi/cask), Scalatra) |
|
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Oat++, 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** ([Flight](https://docs.flightphp.com/), 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/), [Cask](https://github.com/com-lihaoyi/cask), 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**, **Postman Collection**, **Protocol Buffer**, **WSDL** |
|
| **Others** | **GraphQL**, **JMeter**, **Ktorm**, **MySQL Schema**, **Postman Collection**, **Protocol Buffer**, **WSDL** |
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
- [OpenAPI Generator](#openapi-generator)
|
- [Sponsors](#sponsors)
|
||||||
- [Overview](#overview)
|
- [Thank you to our bronze sponsors!](#thank-you-to-our-bronze-sponsors)
|
||||||
- [Table of Contents](#table-of-contents)
|
- [Thank you GoDaddy for sponsoring the domain names, Linode for sponsoring the VPS, Checkly for sponsoring the API monitoring and Gradle for sponsoring Develocity](#thank-you-godaddy-for-sponsoring-the-domain-names-linode-for-sponsoring-the-vps-checkly-for-sponsoring-the-api-monitoring-and-gradle-for-sponsoring-develocity)
|
||||||
- [1 - Installation](#1---installation)
|
- [Overview](#overview)
|
||||||
- [1.1 - Compatibility](#11---compatibility)
|
- [Table of contents](#table-of-contents)
|
||||||
- [1.2 - Artifacts on Maven Central](#12---artifacts-on-maven-central)
|
- [1 - Installation](#1---installation)
|
||||||
- [1.3 - Download JAR](#13---download-jar)
|
- [1.1 - Compatibility](#11---compatibility)
|
||||||
- [1.4 - Build Projects](#14---build-projects)
|
- [1.2 - Artifacts on Maven Central](#12---artifacts-on-maven-central)
|
||||||
- [1.5 - Homebrew](#15---homebrew)
|
- [1.3 - Download JAR](#13---download-jar)
|
||||||
- [1.6 - Docker](#16---docker)
|
- [Launcher Script](#launcher-script)
|
||||||
- [1.7 - NPM](#17---npm)
|
- [1.4 - Build Projects](#14---build-projects)
|
||||||
- [1.8 - pip](#18---pip)
|
- [Nix users](#nix-users)
|
||||||
- [2 - Getting Started](#2---getting-started)
|
- [1.5 - Homebrew](#15---homebrew)
|
||||||
- [3 - Usage](#3---usage)
|
- [1.6 - Docker](#16---docker)
|
||||||
- [3.1 - Customization](#31---customization)
|
- [Public Pre-built Docker images](#public-pre-built-docker-images)
|
||||||
- [3.2 - Workflow Integration](#32---workflow-integration-maven-gradle-github-cicd)
|
- [OpenAPI Generator CLI Docker Image](#openapi-generator-cli-docker-image)
|
||||||
- [3.3 - Online Generators](#33---online-openapi-generator)
|
- [OpenAPI Generator Online Docker Image](#openapi-generator-online-docker-image)
|
||||||
- [3.4 - License Information on Generated Code](#34---license-information-on-generated-code)
|
- [Development in docker](#development-in-docker)
|
||||||
- [3.5 - IDE Integration](#35---ide-integration)
|
- [Troubleshooting](#troubleshooting)
|
||||||
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator)
|
- [Run Docker in Vagrant](#run-docker-in-vagrant)
|
||||||
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
|
- [1.7 - NPM](#17---npm)
|
||||||
- [6 - About Us](#6---about-us)
|
- [1.8 - pip](#18---pip)
|
||||||
- [6.1 - OpenAPI Generator Core Team](#61---openapi-generator-core-team)
|
- [2 - Getting Started](#2---getting-started)
|
||||||
- [6.2 - OpenAPI Generator Technical Committee](#62---openapi-generator-technical-committee)
|
- [3 - Usage](#3---usage)
|
||||||
- [6.3 - History of OpenAPI Generator](#63---history-of-openapi-generator)
|
- [To generate a sample client library](#to-generate-a-sample-client-library)
|
||||||
- [7 - License](#7---license)
|
- [3.1 - Customization](#31---customization)
|
||||||
|
- [3.2 - Workflow Integration (Maven, Gradle, Github, CI/CD)](#32---workflow-integration-maven-gradle-github-cicd)
|
||||||
|
- [3.3 - Online OpenAPI generator](#33---online-openapi-generator)
|
||||||
|
- [3.4 - License information on Generated Code](#34---license-information-on-generated-code)
|
||||||
|
- [3.5 - IDE Integration](#35---ide-integration)
|
||||||
|
- [4 - Companies/Projects using OpenAPI Generator](#4---companiesprojects-using-openapi-generator)
|
||||||
|
- [5 - Presentations/Videos/Tutorials/Books](#5---presentationsvideostutorialsbooks)
|
||||||
|
- [6 - About Us](#6---about-us)
|
||||||
|
- [6.1 - OpenAPI Generator Core Team](#61---openapi-generator-core-team)
|
||||||
|
- [Core Team Members](#core-team-members)
|
||||||
|
- [Template Creator](#template-creator)
|
||||||
|
- [How to join the core team](#how-to-join-the-core-team)
|
||||||
|
- [6.2 - OpenAPI Generator Technical Committee](#62---openapi-generator-technical-committee)
|
||||||
|
- [Members of Technical Committee](#members-of-technical-committee)
|
||||||
|
- [6.3 - History of OpenAPI Generator](#63---history-of-openapi-generator)
|
||||||
|
- [Founding Members (alphabetical order):](#founding-members-alphabetical-order)
|
||||||
|
- [7 - License](#7---license)
|
||||||
|
|
||||||
## [1 - Installation](#table-of-contents)
|
## [1 - Installation](#table-of-contents)
|
||||||
|
|
||||||
@@ -131,8 +150,8 @@ The OpenAPI Specification has undergone 3 revisions since initial creation in 20
|
|||||||
|
|
||||||
| OpenAPI Generator Version | Release Date | Notes |
|
| OpenAPI Generator Version | Release Date | Notes |
|
||||||
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
|
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------- |
|
||||||
| 7.12.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.12.0-SNAPSHOT/) | 17.02.2024 | Minor release with breaking changes (with fallback) |
|
| 7.15.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.15.0-SNAPSHOT/) | 29.07.2025 | Minor release with breaking changes (with fallback) |
|
||||||
| [7.11.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.11.0) (latest stable release) | 20.01.2024 | Minor release with breaking changes (with fallback) |
|
| [7.14.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.14.0) (latest stable release) | 25.06.2025 | 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) |
|
| [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) |
|
||||||
@@ -195,16 +214,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/7.11.0/openapi-generator-cli-7.11.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.14.0/openapi-generator-cli-7.14.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.11.0/openapi-generator-cli-7.11.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.14.0/openapi-generator-cli-7.14.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/7.11.0/openapi-generator-cli-7.11.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.14.0/openapi-generator-cli-7.14.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.
|
||||||
@@ -439,7 +458,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 7.11.0
|
openapi-generator-cli version-manager set 7.14.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -463,7 +482,7 @@ pip install openapi-generator-cli
|
|||||||
|
|
||||||
To install a specific version
|
To install a specific version
|
||||||
```
|
```
|
||||||
pip install openapi-generator-cli==7.11.0
|
pip install openapi-generator-cli==7.14.0
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
||||||
@@ -489,7 +508,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/7.11.0/openapi-generator-cli-7.11.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.14.0/openapi-generator-cli-7.14.0.jar)
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
|
|
||||||
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
||||||
@@ -1109,6 +1128,7 @@ Here is a list of template creators:
|
|||||||
* C# Azure functions: @Abrhm7786
|
* C# Azure functions: @Abrhm7786
|
||||||
* C# NancyFX: @mstefaniuk
|
* C# NancyFX: @mstefaniuk
|
||||||
* C++ (Qt5 QHttpEngine): @etherealjoy
|
* C++ (Qt5 QHttpEngine): @etherealjoy
|
||||||
|
* C++ Oat++: @Kraust
|
||||||
* C++ Pistache: @sebymiano
|
* C++ Pistache: @sebymiano
|
||||||
* C++ Restbed: @stkrwork
|
* C++ Restbed: @stkrwork
|
||||||
* Erlang Server: @galaxie @nelsonvides
|
* Erlang Server: @galaxie @nelsonvides
|
||||||
@@ -1139,6 +1159,7 @@ Here is a list of template creators:
|
|||||||
* Kotlin (Spring Boot): @dr4ke616
|
* Kotlin (Spring Boot): @dr4ke616
|
||||||
* Kotlin (Vertx): @Wooyme
|
* Kotlin (Vertx): @Wooyme
|
||||||
* Kotlin (JAX-RS): @anttileppa
|
* Kotlin (JAX-RS): @anttileppa
|
||||||
|
* Kotlin Misk: @andrewwilsonnew @guiarn
|
||||||
* Kotlin WireMock: @stefankoppier
|
* Kotlin WireMock: @stefankoppier
|
||||||
* NodeJS Express: @YishTish
|
* NodeJS Express: @YishTish
|
||||||
* PHP Flight: @daniel-sc
|
* PHP Flight: @daniel-sc
|
||||||
@@ -1217,7 +1238,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Apex | |
|
| Apex | |
|
||||||
| 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) @eafer (2024/12) |
|
| C | @zhemant (2018/11) @ityuhui (2019/12) @michelealbano (2020/03) @eafer (2024/12) |
|
||||||
| 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) @aminya (2025/05) |
|
||||||
| C# | @mandrean (2017/08) @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) |
|
||||||
@@ -1249,7 +1270,7 @@ If you want to join the committee, please kindly apply by sending an email to te
|
|||||||
| Python | @cbornet (2017/09) @tomplus (2018/10) @krjakbrjak (2023/02) @fa0311 (2023/10) @multani (2023/10) |
|
| 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) @@dsteeley (2025/07) |
|
||||||
| Scala | @clasnake (2017/07), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
|
| Scala | @clasnake (2017/07), @shijinkui (2018/01), @ramzimaalej (2018/03), @chameleon82 (2020/03), @Bouillie (2020/04) @fish86 (2023/06) |
|
||||||
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
|
| Swift | @jgavris (2017/07) @ehyche (2017/08) @Edubits (2017/09) @jaz-ah (2017/09) @4brunu (2019/11) @dydus0x14 (2023/06) |
|
||||||
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) @joscha (2024/10) |
|
| TypeScript | @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @topce (2018/10) @akehir (2019/07) @petejohansonxo (2019/11) @amakhrov (2020/02) @davidgamero (2022/03) @mkusaka (2022/04) @joscha (2024/10) |
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ build_script:
|
|||||||
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
#- dotnet build samples\client\petstore\csharp\OpenAPIClient-ConditionalSerialization\Org.OpenAPITools.sln
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
|
- dotnet test samples\client\petstore\csharp\generichost\latest\Tags\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
- dotnet test samples\client\petstore\csharp\generichost\latest\HelloWorld\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
- dotnet test samples\client\petstore\csharp\generichost\latest\OneOfList\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\generichost\net9\AllOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOf\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOfNoCompare\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
- dotnet test samples\client\petstore\csharp\generichost\net9\AnyOfNoCompare\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj
|
||||||
|
|||||||
4
bin/configs/avro-schema-issue6268.yaml
Normal file
4
bin/configs/avro-schema-issue6268.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
generatorName: avro-schema
|
||||||
|
outputDir: samples/openapi3/schema/petstore/avro-schema-issue6268
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/issue6268.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/avro-schema
|
||||||
6
bin/configs/cpp-oatpp-server-cpp-oatpp.yaml
Normal file
6
bin/configs/cpp-oatpp-server-cpp-oatpp.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: cpp-oatpp-server
|
||||||
|
outputDir: samples/server/petstore/cpp-oatpp
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/cpp-oatpp-server/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/cpp-oatpp-server
|
||||||
|
additionalProperties:
|
||||||
|
addExternalLibs: "true"
|
||||||
9
bin/configs/csharp-generichost-latest-helloWorld.yaml
Normal file
9
bin/configs/csharp-generichost-latest-helloWorld.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/latest/HelloWorld
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_1/csharp/hello-world.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
8
bin/configs/csharp-generichost-latest-oneOfList.yaml
Normal file
8
bin/configs/csharp-generichost-latest-oneOfList.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/latest/OneOfList
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/bugs/issue_20739.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
10
bin/configs/csharp-restsharp-useVirtualForHooks.yaml
Normal file
10
bin/configs/csharp-restsharp-useVirtualForHooks.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
library: restsharp
|
||||||
|
outputDir: samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{D0A67E81-4061-48EB-B4B8-C73BDF8B2D95}'
|
||||||
|
targetFramework: net8.0
|
||||||
|
useVirtualForHooks: true
|
||||||
8
bin/configs/dart-dio-binary-response.yaml
Normal file
8
bin/configs/dart-dio-binary-response.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: dart-dio
|
||||||
|
outputDir: samples/openapi3/client/petstore/dart-dio/binary_response
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/issue_20682.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/dart/libraries/dio
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
enumUnknownDefaultCase: "true"
|
||||||
|
serializationLibrary: "json_serializable"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: dart-dio
|
generatorName: dart-dio
|
||||||
outputDir: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable
|
outputDir: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/dart/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/dart/libraries/dio
|
templateDir: modules/openapi-generator/src/main/resources/dart/libraries/dio
|
||||||
typeMappings:
|
typeMappings:
|
||||||
Client: "ModelClient"
|
Client: "ModelClient"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: dart-dio
|
generatorName: dart-dio
|
||||||
outputDir: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake
|
outputDir: samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/dart/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/dart/libraries/dio
|
templateDir: modules/openapi-generator/src/main/resources/dart/libraries/dio
|
||||||
typeMappings:
|
typeMappings:
|
||||||
Client: "ModelClient"
|
Client: "ModelClient"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: dart
|
generatorName: dart
|
||||||
outputDir: samples/openapi3/client/petstore/dart2/petstore_client_lib_fake
|
outputDir: samples/openapi3/client/petstore/dart2/petstore_client_lib_fake
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/dart/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/dart2
|
templateDir: modules/openapi-generator/src/main/resources/dart2
|
||||||
typeMappings:
|
typeMappings:
|
||||||
Client: "ModelClient"
|
Client: "ModelClient"
|
||||||
|
|||||||
9
bin/configs/java-feign-hc5.yaml
Normal file
9
bin/configs/java-feign-hc5.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/feign-hc5
|
||||||
|
library: feign-hc5
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
booleanGetterPrefix: is
|
||||||
|
artifactId: petstore-feign-hc5
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/microprofile-rest-client-3.0-jackson-mutiny
|
||||||
|
library: microprofile
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
serializationLibrary: jackson
|
||||||
|
artifactId: microprofile-rest-client-3-jackson-mutiny
|
||||||
|
configKey: petstore
|
||||||
|
microprofileRestClientVersion: "3.0"
|
||||||
|
microprofileMutiny: true
|
||||||
|
hideGenerationTimestamp: true
|
||||||
@@ -10,6 +10,7 @@ parameterNameMappings:
|
|||||||
_type: underscoreType
|
_type: underscoreType
|
||||||
type_: typeWithUnderscore
|
type_: typeWithUnderscore
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
defaultToEmptyContainer: "array?|array|map?"
|
||||||
artifactId: petstore-okhttp-gson
|
artifactId: petstore-okhttp-gson
|
||||||
hideGenerationTimestamp: true
|
hideGenerationTimestamp: true
|
||||||
useOneOfDiscriminatorLookup: true
|
useOneOfDiscriminatorLookup: true
|
||||||
|
|||||||
7
bin/configs/java-restclient-enum-in-multipart.yaml
Normal file
7
bin/configs/java-restclient-enum-in-multipart.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/others/java/restclient-enum-in-multipart
|
||||||
|
library: restclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_1/enum-in-multipart.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/restclient-useSingleRequestParameter-static
|
||||||
|
library: restclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: singleparam-restclient-static
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useSingleRequestParameter: static
|
||||||
10
bin/configs/java-vertx-supportVertxFuture.yaml
Normal file
10
bin/configs/java-vertx-supportVertxFuture.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/vertx-supportVertxFuture
|
||||||
|
library: vertx
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-vertx-supportvertxfuture
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
dateLibrary: java8
|
||||||
|
supportVertxFuture: "true"
|
||||||
10
bin/configs/java-webclient-sealedInterface.yaml
Normal file
10
bin/configs/java-webclient-sealedInterface.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/others/java/webclient-sealedInterface
|
||||||
|
library: webclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneof_polymorphism_and_inheritance.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: sealed-interface-webclient
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useOneOfInterfaces: true
|
||||||
|
useSealedOneOfInterfaces: true
|
||||||
8
bin/configs/kotlin-jvm-okhttp-path-comments.yaml
Normal file
8
bin/configs/kotlin-jvm-okhttp-path-comments.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/others/kotlin-jvm-okhttp-path-comments
|
||||||
|
library: jvm-okhttp4
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/issue20618-path-comments.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-petstore-okhttp4-path-comments
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
generatorName: kotlin
|
generatorName: kotlin
|
||||||
outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines
|
outputDir: samples/client/petstore/kotlin-jvm-retrofit2-coroutines
|
||||||
library: jvm-retrofit2
|
library: jvm-retrofit2
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
serializationLibrary: gson
|
serializationLibrary: gson
|
||||||
@@ -9,3 +9,4 @@ additionalProperties:
|
|||||||
artifactId: kotlin-petstore-coroutines-client
|
artifactId: kotlin-petstore-coroutines-client
|
||||||
serializableModel: "true"
|
serializableModel: "true"
|
||||||
dateLibrary: java8
|
dateLibrary: java8
|
||||||
|
useResponseAsReturnType: false
|
||||||
18
bin/configs/kotlin-misk-config.yaml
Normal file
18
bin/configs/kotlin-misk-config.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
generatorName: kotlin-misk
|
||||||
|
outputDir: samples/server/petstore/kotlin-misk-config
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-misk
|
||||||
|
validateSpec: false
|
||||||
|
useBeanValidation: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
moduleClassName: "PetStoreModule"
|
||||||
|
generateStubImplClasses: true
|
||||||
|
addModelMoshiJsonAnnotation: true
|
||||||
|
actionPathPrefix: "samplePrefix"
|
||||||
|
actionAnnotations: "@LogRequestResponse(bodySampling = 1.0, errorBodySampling = 2.0);@Suppress(\"unused\")"
|
||||||
|
actionImports: "misk.web.actions.WebAction;misk.web.interceptors.LogRequestResponse"
|
||||||
|
actionParentClass: "WebAction"
|
||||||
|
actionRequestContentType: "@RequestContentType"
|
||||||
|
actionRequestContentTypePrefix: "MediaTypes"
|
||||||
|
testingModule: "misk.web.MiskWebModule"
|
||||||
7
bin/configs/kotlin-misk.yaml
Normal file
7
bin/configs/kotlin-misk.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: kotlin-misk
|
||||||
|
outputDir: samples/server/petstore/kotlin-misk
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-misk
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
moduleClassName: "PetStoreModule"
|
||||||
14
bin/configs/manual/rust-axum-apikey-authorization.yaml
Normal file
14
bin/configs/manual/rust-axum-apikey-authorization.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/output/apikey-authorization
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutBasicBearerCookieQueryHeaderBasicBearer.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: apikey-authorization
|
||||||
|
basicAuthorization: true
|
||||||
|
basicAnalytic: true
|
||||||
|
ownedRequest: true
|
||||||
|
globalProperties:
|
||||||
|
skipFormModel: false
|
||||||
|
enablePostProcessFile: true
|
||||||
11
bin/configs/manual/rust-axum-array-params.yaml
Normal file
11
bin/configs/manual/rust-axum-array-params.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/output/rust-axum-array-params-test
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/rust-axum-array-params-test.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: rust-axum-array-params-test
|
||||||
|
globalProperties:
|
||||||
|
skipFormModel: false
|
||||||
|
enablePostProcessFile: true
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: nim
|
generatorName: nim
|
||||||
outputDir: samples/client/petstore/nim
|
outputDir: samples/client/petstore/nim
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/nim/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/nim-client
|
templateDir: modules/openapi-generator/src/main/resources/nim-client
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore
|
packageName: petstore
|
||||||
|
|||||||
8
bin/configs/php-laravel-issue-21334.yaml
Normal file
8
bin/configs/php-laravel-issue-21334.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: php-laravel
|
||||||
|
outputDir: samples/server/petstore/php-laravel-issue-21334
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/issue21334.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/php-laravel
|
||||||
|
gitUserId: openapitools
|
||||||
|
gitRepoId: petstore
|
||||||
|
additionalProperties:
|
||||||
|
variableNamingConvention: "original"
|
||||||
9
bin/configs/protobuf-schema-config-wrapComplexType.yaml
Normal file
9
bin/configs/protobuf-schema-config-wrapComplexType.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: protobuf-schema
|
||||||
|
outputDir: samples/config/petstore/protobuf-schema-config-complex
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/protobuf/petstore-complex.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/protobuf-schema
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore
|
||||||
|
addJsonNameAnnotation: true
|
||||||
|
numberedFieldNumberList: true
|
||||||
|
startEnumsWithUnspecified: true
|
||||||
25
bin/configs/protobuf-schema-config.yaml
Normal file
25
bin/configs/protobuf-schema-config.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
generatorName: protobuf-schema
|
||||||
|
outputDir: samples/config/petstore/protobuf-schema-config
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/protobuf/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/protobuf-schema
|
||||||
|
additionalProperties:
|
||||||
|
packageName: petstore
|
||||||
|
addJsonNameAnnotation: true
|
||||||
|
numberedFieldNumberList: true
|
||||||
|
startEnumsWithUnspecified: true
|
||||||
|
wrapComplexType: false
|
||||||
|
supportMultipleResponses: false
|
||||||
|
aggregateModelsName: data
|
||||||
|
customOptionsApi: |
|
||||||
|
option java_multiple_files = true;
|
||||||
|
option java_package = "com.example.tutorial.protos.api";
|
||||||
|
option java_outer_classname = "ExampleProtos";
|
||||||
|
customOptionsModel: |
|
||||||
|
option java_multiple_files = false;
|
||||||
|
option java_package = "com.example.tutorial.protos.model";
|
||||||
|
option java_outer_classname = "ExampleProtos";
|
||||||
|
useSimplifiedEnumNames: true
|
||||||
|
typeMappings:
|
||||||
|
object: "google.protobuf.Struct"
|
||||||
|
importMappings:
|
||||||
|
google.protobuf.Struct: "google/protobuf/struct"
|
||||||
@@ -4,3 +4,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/protobuf/petstore.ya
|
|||||||
templateDir: modules/openapi-generator/src/main/resources/protobuf-schema
|
templateDir: modules/openapi-generator/src/main/resources/protobuf-schema
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore
|
packageName: petstore
|
||||||
|
typeMappings:
|
||||||
|
object: "google.protobuf.Struct"
|
||||||
|
importMappings:
|
||||||
|
google.protobuf.Struct: "google/protobuf/struct"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ library: asyncio
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore_api
|
packageName: petstore_api
|
||||||
mapNumberTo: float
|
mapNumberTo: float
|
||||||
|
poetry1: true
|
||||||
nameMappings:
|
nameMappings:
|
||||||
_type: underscore_type
|
_type: underscore_type
|
||||||
type_: type_with_underscore
|
type_: type_with_underscore
|
||||||
|
|||||||
10
bin/configs/rust-hyper-test-duplicates.yaml
Normal file
10
bin/configs/rust-hyper-test-duplicates.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/petstore/rust/hyper/test-duplicates
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/test_duplicates.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: "false"
|
||||||
|
packageName: test-duplicates-hyper
|
||||||
|
modelNameMappings:
|
||||||
|
Duplicatetest: another_test
|
||||||
12
bin/configs/rust-reqwest-test-duplicates.yaml
Normal file
12
bin/configs/rust-reqwest-test-duplicates.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/petstore/rust/reqwest/test-duplicates
|
||||||
|
library: reqwest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/test_duplicates.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: false
|
||||||
|
packageName: test-duplicates-reqwest
|
||||||
|
enumNameMappings:
|
||||||
|
delivered: shipped
|
||||||
|
modelNameMappings:
|
||||||
|
Duplicatetest: another_test
|
||||||
8
bin/configs/rust-server-deprecated-multipart-v3.yaml
Normal file
8
bin/configs/rust-server-deprecated-multipart-v3.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/multipart-v3
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/multipart-v3.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: multipart-v3
|
||||||
8
bin/configs/rust-server-deprecated-no-example-v3.yaml
Normal file
8
bin/configs/rust-server-deprecated-no-example-v3.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/no-example-v3
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/no-example-v3.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: no-example-v3
|
||||||
8
bin/configs/rust-server-deprecated-openapi-v3.yaml
Normal file
8
bin/configs/rust-server-deprecated-openapi-v3.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/openapi-v3
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/openapi-v3.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: openapi-v3
|
||||||
8
bin/configs/rust-server-deprecated-ops-v3.yaml
Normal file
8
bin/configs/rust-server-deprecated-ops-v3.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/ops-v3
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/ops-v3.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: ops-v3
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/rust-server/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: petstore-with-fake-endpoints-models-for-testing
|
||||||
|
publishRustRegistry: crates-io
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/ping-bearer-auth
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/ping-bearer-auth.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: ping-bearer-auth
|
||||||
8
bin/configs/rust-server-deprecated-test.yaml
Normal file
8
bin/configs/rust-server-deprecated-test.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust-server-deprecated
|
||||||
|
outputDir: samples/server/petstore/rust-server-deprecated/output/rust-server-test
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/rust-server/rust-server-test.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-server-deprecated
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: rust-server-test
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: scala-http4s-server
|
generatorName: scala-http4s-server
|
||||||
outputDir: samples/server/petstore/scala-http4s-server
|
outputDir: samples/server/petstore/scala-http4s-server
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/scala-http4s-server/petstore.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/scala-http4s-server
|
templateDir: modules/openapi-generator/src/main/resources/scala-http4s-server
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
artifactId: openapi-scala-http4s-server
|
artifactId: openapi-scala-http4s-server
|
||||||
|
|||||||
15
bin/configs/scala-sttp-circe.yaml
Normal file
15
bin/configs/scala-sttp-circe.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
generatorName: scala-sttp
|
||||||
|
outputDir: samples/client/petstore/scala-sttp-circe
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/scala/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/scala-sttp
|
||||||
|
nameMappings:
|
||||||
|
_type: "`underscoreType`"
|
||||||
|
type_: "`typeWithUnderscore`"
|
||||||
|
http_debug_operation: "`httpDebugOperation`"
|
||||||
|
parameterNameMappings:
|
||||||
|
_type: underscoreType
|
||||||
|
type_: typeWithUnderscore
|
||||||
|
http_debug_operation: httpDebugOperation
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: scala-sttp-petstore
|
||||||
|
jsonLibrary: circe
|
||||||
13
bin/configs/spring-boot-api-response-examples.yaml
Normal file
13
bin/configs/spring-boot-api-response-examples.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/server/petstore/springboot-api-response-examples
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/api-response-examples_issue17610.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: springboot-api-response-examples
|
||||||
|
documentationProvider: springdoc
|
||||||
|
useSpringBoot3: true
|
||||||
|
java8: true
|
||||||
|
delegatePattern: true
|
||||||
|
useBeanValidation: true
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
13
bin/configs/spring-boot-builtin-validation.yaml
Normal file
13
bin/configs/spring-boot-builtin-validation.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/server/petstore/springboot-builtin-validation
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: springfox
|
||||||
|
useSwaggerUI: false
|
||||||
|
java8: true
|
||||||
|
useBeanValidation: true
|
||||||
|
useSpringBuiltInValidation: true
|
||||||
|
artifactId: spring-boot-builtin-validation
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
13
bin/configs/spring-boot-oneof-sealed.yaml
Normal file
13
bin/configs/spring-boot-oneof-sealed.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/openapi3/server/petstore/spring-boot-oneof-sealed
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneof_polymorphism_and_inheritance.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
groupId: org.openapitools.openapi3
|
||||||
|
documentationProvider: springdoc
|
||||||
|
artifactId: springboot-oneof-sealed
|
||||||
|
snapshotVersion: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
generateBuilders: true
|
||||||
|
useOneOfInterfaces: true
|
||||||
|
useSealed: true
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
generatorName: spring
|
||||||
|
outputDir: samples/server/petstore/springboot-petstore-with-api-response-examples
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/spring/petstore_with_api_response_examples.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: springboot-petstore-with-api-response-examples
|
||||||
|
documentationProvider: springdoc
|
||||||
|
useSpringBoot3: true
|
||||||
|
java8: true
|
||||||
|
delegatePattern: true
|
||||||
|
useBeanValidation: true
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
8
bin/configs/typescript-angular-v19-deep-object.yaml
Normal file
8
bin/configs/typescript-angular-v19-deep-object.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: typescript-angular
|
||||||
|
outputDir: samples/client/petstore/typescript-angular-v19/builds/deep-object
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/deep-object-query.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
|
||||||
|
additionalProperties:
|
||||||
|
ngVersion: 19.0.0
|
||||||
|
npmName: sample-angular-19-0-0-deep-object
|
||||||
|
supportsES6: true
|
||||||
8
bin/configs/typescript-angular-v20.yaml
Normal file
8
bin/configs/typescript-angular-v20.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: typescript-angular
|
||||||
|
outputDir: samples/client/petstore/typescript-angular-v20/builds/default
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
|
||||||
|
additionalProperties:
|
||||||
|
ngVersion: 20.0.0
|
||||||
|
npmName: sample-angular-20-0-0
|
||||||
|
supportsES6: true
|
||||||
10
bin/configs/typescript-echo-api.yaml
Normal file
10
bin/configs/typescript-echo-api.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: typescript
|
||||||
|
outputDir: samples/client/echo_api/typescript/build
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/typescript/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/typescript
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: echo-api-typescript
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
platform: node
|
||||||
|
npmVersion: 1.0.0
|
||||||
|
npmName: '@openapitools/typescript-echo-api'
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
|
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ClientTest.java"
|
||||||
sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d
|
sha256: 325fdd5d7e2c97790c0fb44f712ab7b2ba022d7e1a5b0056f47b07f342682b6d
|
||||||
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java"
|
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java"
|
||||||
sha256: e673d9928c8eb848262d0116fe0d28db832e128671a810a7c966d06d90cb9b63
|
sha256: 67941355a0a27ed9ff9318b1caa103e78b81b9aff61b594b18be5cd2bb9f6591
|
||||||
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java"
|
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java"
|
||||||
sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023
|
sha256: 8b1b8f2a2ad00ccb090873a94a5f73e328b98317d2ec715f53bd7a1accb2a023
|
||||||
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java"
|
- filename: "samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java"
|
||||||
@@ -55,6 +55,8 @@
|
|||||||
sha256: 45cdaba3d2adc212cd4f0184ad475419a95e2326254c2ef84175e210c922b2f3
|
sha256: 45cdaba3d2adc212cd4f0184ad475419a95e2326254c2ef84175e210c922b2f3
|
||||||
- filename: "samples/client/petstore/java/feign/src/test/java/org/openapitools/client/JacksonTest.java"
|
- filename: "samples/client/petstore/java/feign/src/test/java/org/openapitools/client/JacksonTest.java"
|
||||||
sha256: 45cdaba3d2adc212cd4f0184ad475419a95e2326254c2ef84175e210c922b2f3
|
sha256: 45cdaba3d2adc212cd4f0184ad475419a95e2326254c2ef84175e210c922b2f3
|
||||||
|
- filename: "samples/client/petstore/java/restclient/src/test/java/org/openapitools/client/JacksonTest.java"
|
||||||
|
sha256: 45cdaba3d2adc212cd4f0184ad475419a95e2326254c2ef84175e210c922b2f3
|
||||||
# rust axum test files
|
# rust axum test files
|
||||||
- filename: "samples/server/petstore/rust-axum/output/rust-axum-oneof/tests/oneof_with_discriminator.rs"
|
- filename: "samples/server/petstore/rust-axum/output/rust-axum-oneof/tests/oneof_with_discriminator.rs"
|
||||||
sha256: 2d4f5a069fdcb3057bb078d5e75b3de63cd477b97725e457079df24bd2c30600
|
sha256: 2d4f5a069fdcb3057bb078d5e75b3de63cd477b97725e457079df24bd2c30600
|
||||||
|
|||||||
@@ -48,4 +48,4 @@ workflows:
|
|||||||
|
|
||||||
meta:
|
meta:
|
||||||
bitrise.io:
|
bitrise.io:
|
||||||
stack: osx-xcode-16.0.x
|
stack: osx-xcode-16.3.x
|
||||||
|
|||||||
@@ -401,6 +401,32 @@ or
|
|||||||
--import-mappings Pet=my.models.MyPet --import-mappings Order=my.models.MyOrder
|
--import-mappings Pet=my.models.MyPet --import-mappings Order=my.models.MyOrder
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Default Values
|
||||||
|
|
||||||
|
To customize the default values for containers, one can leverage the option `defaultToEmptyContainer` to customize what to initalize for array/set/map by respecting the default values in the spec
|
||||||
|
|
||||||
|
Set optional array and map default value to an empty container
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/output --additional-properties defaultToEmptyContainer="array?|map?"
|
||||||
|
```
|
||||||
|
|
||||||
|
Set nullable array (required) default value to an empty container
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/output --additional-properties defaultToEmptyContainer="?array"
|
||||||
|
```
|
||||||
|
|
||||||
|
Set nullable array (optional) default value to an empty container
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/output --additional-properties defaultToEmptyContainer="?array?"
|
||||||
|
```
|
||||||
|
|
||||||
|
To simply enable this option to respect default values in the specification (basically null if not specified):
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/output --additional-properties defaultToEmptyContainer=""
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: not all generators support this generator's option (e.g. --additional-properties defaultToEmptyContainer="?array" in CLI) so please test to confirm. Java generators are the first to implement this feature. We welcome PRs to support this option in other generators. Related PR: https://github.com/OpenAPITools/openapi-generator/pull/21269
|
||||||
|
|
||||||
## Name Mapping
|
## Name Mapping
|
||||||
|
|
||||||
One can map the property name using `nameMappings` option and parameter name using `parameterNameMappings` option to something else. Consider the following schema:
|
One can map the property name using `nameMappings` option and parameter name using `parameterNameMappings` option to something else. Consider the following schema:
|
||||||
@@ -504,7 +530,7 @@ Another useful option is `inlineSchemaOptions`, which allows you to customize ho
|
|||||||
- `MAP_ITEM_SUFFIX` set the map item suffix
|
- `MAP_ITEM_SUFFIX` set the map item suffix
|
||||||
- `SKIP_SCHEMA_REUSE=true` is a special value to skip reusing inline schemas during refactoring
|
- `SKIP_SCHEMA_REUSE=true` is a special value to skip reusing inline schemas during refactoring
|
||||||
- `REFACTOR_ALLOF_INLINE_SCHEMAS=true` will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schemas by default)
|
- `REFACTOR_ALLOF_INLINE_SCHEMAS=true` will restore the 6.x (or below) behaviour to refactor allOf inline schemas into $ref. (v7.0.0 will skip the refactoring of these allOf inline schemas by default)
|
||||||
- `RESOLVE_INLINE_ENUMS=true` will refactor inline enum definitions into $ref
|
- `RESOLVE_INLINE_ENUMS=true` will refactor inline enum definitions into $ref. This must be activated to allow the renaming of inline enum definitions using `inlineSchemaMappings`.
|
||||||
|
|
||||||
## OpenAPI Normalizer
|
## OpenAPI Normalizer
|
||||||
|
|
||||||
@@ -601,11 +627,36 @@ Example:
|
|||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/enableKeepOnlyFirstTagInOperation_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer REMOVE_X_INTERNAL=true
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/enableKeepOnlyFirstTagInOperation_test.yaml -o /tmp/java-okhttp/ --openapi-normalizer REMOVE_X_INTERNAL=true
|
||||||
```
|
```
|
||||||
|
|
||||||
- `FILTER`: When set to `operationId:addPet|getPetById` for example, it will add `x-internal:true` to operations with operationId not equal to addPet/getPetById (which will have x-internal set to false) so that these operations marked as internal won't be generated.
|
- `NORMALIZER_CLASS`: Set to full classname of a class extending the default org.openapitools.codegen.OpenAPINormalizer. It allows customization of the default normalizer.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o /tmp/java-okhttp/ --openapi-normalizer FILTER="operationId:addPet|getPetById"
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_0/required-properties.yaml -o /tmp/java-okhttp/ --openapi-normalizer NORMALIZER_CLASS=org.openapitools.codegen.OpenAPINormalizerTest$RemoveRequiredNormalizer
|
||||||
|
```
|
||||||
|
|
||||||
|
- `FILTER`
|
||||||
|
|
||||||
|
The `FILTER` parameter allows selective inclusion of API operations based on specific criteria. It applies the `x-internal: true` property to operations that do **not** match the specified values, preventing them from being generated.
|
||||||
|
|
||||||
|
### Available Filters
|
||||||
|
|
||||||
|
- **`operationId`**
|
||||||
|
When set to `operationId:addPet|getPetById`, operations **not** matching `addPet` or `getPetById` will be marked as internal (`x-internal: true`), and excluded from generation. Matching operations will have `x-internal: false`.
|
||||||
|
|
||||||
|
- **`method`**
|
||||||
|
When set to `method:get|post`, operations **not** using `GET` or `POST` methods will be marked as internal (`x-internal: true`), preventing their generation.
|
||||||
|
|
||||||
|
- **`tag`**
|
||||||
|
When set to `tag:person|basic`, operations **not** tagged with `person` or `basic` will be marked as internal (`x-internal: true`), and will not be generated.
|
||||||
|
|
||||||
|
### Example Usage
|
||||||
|
|
||||||
|
```sh
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
||||||
|
-g java \
|
||||||
|
-i modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
||||||
|
-o /tmp/java-okhttp/ \
|
||||||
|
--openapi-normalizer FILTER="operationId:addPet|getPetById"
|
||||||
```
|
```
|
||||||
|
|
||||||
- `SET_CONTAINER_TO_NULLABLE`: When set to `array|set|map` (or just `array`) for example, it will set `nullable` in array, set and map to true.
|
- `SET_CONTAINER_TO_NULLABLE`: When set to `array|set|map` (or just `array`) for example, it will set `nullable` in array, set and map to true.
|
||||||
@@ -628,3 +679,27 @@ Example:
|
|||||||
```
|
```
|
||||||
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml -o /tmp/java-okhttp/ --openapi-normalizer FIX_DUPLICATED_OPERATIONID=true
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml -o /tmp/java-okhttp/ --openapi-normalizer FIX_DUPLICATED_OPERATIONID=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- `SET_BEARER_AUTH_FOR_NAME`: When set to the name of an openapi 2.0 securityDefinition, that securityDefinition will be converted to the openapi 3.0 bearerAuth securityScheme.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```
|
||||||
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i modules/openapi-generator/src/test/resources/2_0/globalSecurity.json -o /tmp/java-okhttp/ --openapi-normalizer SET_BEARER_AUTH_FOR_NAME=api_key
|
||||||
|
```
|
||||||
|
Transforms this securityDefinition:
|
||||||
|
```
|
||||||
|
"securityDefinitions": {
|
||||||
|
"api_key": {
|
||||||
|
"type": "apiKey",
|
||||||
|
"name": "api_key",
|
||||||
|
"in": "header"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
```
|
||||||
|
Into this securityScheme:
|
||||||
|
```
|
||||||
|
securitySchemes:
|
||||||
|
api_key:
|
||||||
|
scheme: bearer
|
||||||
|
type: http
|
||||||
|
```
|
||||||
|
|||||||
@@ -494,6 +494,8 @@ Here is a working sample that put's together all of this.
|
|||||||
- The default project structure now follows the SPM (Swift Package Manager) structure. To revert to the old structure, set the `useSPMFileStructure` flag to `false`.
|
- The default project structure now follows the SPM (Swift Package Manager) structure. To revert to the old structure, set the `useSPMFileStructure` flag to `false`.
|
||||||
- The former `{{projectName}}API` is now called `{{projectName}}APIConfiguration`.
|
- The former `{{projectName}}API` is now called `{{projectName}}APIConfiguration`.
|
||||||
- You can now set a request interceptor and retrier by configuring `OpenAPIClient.shared.interceptor`, making authenticated requests easier to manage.
|
- You can now set a request interceptor and retrier by configuring `OpenAPIClient.shared.interceptor`, making authenticated requests easier to manage.
|
||||||
|
- The protocol `JSONEncodable` was renamed to `ParameterConvertible`.
|
||||||
|
- The flag `useJSONEncodable` was renamed to `useParameterConvertible`.
|
||||||
|
|
||||||
## TypeScript
|
## TypeScript
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ title: "FAQ: General"
|
|||||||
|
|
||||||
Yes, we use Slack.
|
Yes, we use Slack.
|
||||||
|
|
||||||
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-2wmkn4s8g-n19PJ99Y6Vei74WMUIehQA)
|
[](https://join.slack.com/t/openapi-generator/shared_invite/zt-36ucx4ybl-jYrN6euoYn6zxXNZdldoZA)
|
||||||
|
|
||||||
## What is the governance structure of the OpenAPI Generator project?
|
## What is the governance structure of the OpenAPI Generator project?
|
||||||
|
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ The following generators are available:
|
|||||||
* [ada-server](generators/ada-server.md)
|
* [ada-server](generators/ada-server.md)
|
||||||
* [aspnet-fastendpoints](generators/aspnet-fastendpoints.md)
|
* [aspnet-fastendpoints](generators/aspnet-fastendpoints.md)
|
||||||
* [aspnetcore](generators/aspnetcore.md)
|
* [aspnetcore](generators/aspnetcore.md)
|
||||||
|
* [cpp-oatpp-server](generators/cpp-oatpp-server.md)
|
||||||
* [cpp-pistache-server](generators/cpp-pistache-server.md)
|
* [cpp-pistache-server](generators/cpp-pistache-server.md)
|
||||||
* [cpp-qt-qhttpengine-server](generators/cpp-qt-qhttpengine-server.md)
|
* [cpp-qt-qhttpengine-server](generators/cpp-qt-qhttpengine-server.md)
|
||||||
* [cpp-restbed-server](generators/cpp-restbed-server.md)
|
* [cpp-restbed-server](generators/cpp-restbed-server.md)
|
||||||
@@ -122,6 +123,7 @@ The following generators are available:
|
|||||||
* [jaxrs-resteasy-eap](generators/jaxrs-resteasy-eap.md)
|
* [jaxrs-resteasy-eap](generators/jaxrs-resteasy-eap.md)
|
||||||
* [jaxrs-spec](generators/jaxrs-spec.md)
|
* [jaxrs-spec](generators/jaxrs-spec.md)
|
||||||
* [julia-server (beta)](generators/julia-server.md)
|
* [julia-server (beta)](generators/julia-server.md)
|
||||||
|
* [kotlin-misk](generators/kotlin-misk.md)
|
||||||
* [kotlin-server](generators/kotlin-server.md)
|
* [kotlin-server](generators/kotlin-server.md)
|
||||||
* [kotlin-spring](generators/kotlin-spring.md)
|
* [kotlin-spring](generators/kotlin-spring.md)
|
||||||
* [kotlin-vertx (beta)](generators/kotlin-vertx.md)
|
* [kotlin-vertx (beta)](generators/kotlin-vertx.md)
|
||||||
@@ -141,6 +143,7 @@ The following generators are available:
|
|||||||
* [ruby-sinatra](generators/ruby-sinatra.md)
|
* [ruby-sinatra](generators/ruby-sinatra.md)
|
||||||
* [rust-axum (beta)](generators/rust-axum.md)
|
* [rust-axum (beta)](generators/rust-axum.md)
|
||||||
* [rust-server](generators/rust-server.md)
|
* [rust-server](generators/rust-server.md)
|
||||||
|
* [rust-server-deprecated](generators/rust-server-deprecated.md)
|
||||||
* [scala-akka-http-server (beta)](generators/scala-akka-http-server.md)
|
* [scala-akka-http-server (beta)](generators/scala-akka-http-server.md)
|
||||||
* [scala-cask](generators/scala-cask.md)
|
* [scala-cask](generators/scala-cask.md)
|
||||||
* [scala-finch](generators/scala-finch.md)
|
* [scala-finch](generators/scala-finch.md)
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ The following generators are available:
|
|||||||
## SERVER generators
|
## SERVER generators
|
||||||
* [ada-server](ada-server.md)
|
* [ada-server](ada-server.md)
|
||||||
* [aspnetcore](aspnetcore.md)
|
* [aspnetcore](aspnetcore.md)
|
||||||
|
* [cpp-oatpp-server](cpp-oatpp-server.md)
|
||||||
* [cpp-pistache-server](cpp-pistache-server.md)
|
* [cpp-pistache-server](cpp-pistache-server.md)
|
||||||
* [cpp-qt5-qhttpengine-server](cpp-qt5-qhttpengine-server.md)
|
* [cpp-qt5-qhttpengine-server](cpp-qt5-qhttpengine-server.md)
|
||||||
* [cpp-restbed-server](cpp-restbed-server.md)
|
* [cpp-restbed-server](cpp-restbed-server.md)
|
||||||
|
|||||||
262
docs/generators/cpp-oatpp-server.md
Normal file
262
docs/generators/cpp-oatpp-server.md
Normal file
@@ -0,0 +1,262 @@
|
|||||||
|
---
|
||||||
|
title: Documentation for the cpp-oatpp-server Generator
|
||||||
|
---
|
||||||
|
|
||||||
|
## METADATA
|
||||||
|
|
||||||
|
| Property | Value | Notes |
|
||||||
|
| -------- | ----- | ----- |
|
||||||
|
| generator name | cpp-oatpp-server | pass this to the generate command after -g |
|
||||||
|
| generator stability | STABLE | |
|
||||||
|
| generator type | SERVER | |
|
||||||
|
| generator language | C++ | |
|
||||||
|
| generator default templating engine | mustache | |
|
||||||
|
| helpTxt | Generates a C++ API server (based on Oat++) | |
|
||||||
|
|
||||||
|
## CONFIG OPTIONS
|
||||||
|
These options may be applied as additional-properties (cli) or configOptions (plugins). Refer to [configuration docs](https://openapi-generator.tech/docs/configuration) for more details.
|
||||||
|
|
||||||
|
| Option | Description | Values | Default |
|
||||||
|
| ------ | ----------- | ------ | ------- |
|
||||||
|
|addExternalLibs|Add the Possibility to fetch and compile external Libraries needed by this Framework.| |true|
|
||||||
|
|reservedWordPrefix|Prefix to prepend to reserved words in order to avoid conflicts| |r_|
|
||||||
|
|variableNameFirstCharacterUppercase|Make first character of variable name uppercase (eg. value -> Value)| |true|
|
||||||
|
|
||||||
|
## IMPORT MAPPING
|
||||||
|
|
||||||
|
| Type/Alias | Imports |
|
||||||
|
| ---------- | ------- |
|
||||||
|
|
||||||
|
|
||||||
|
## INSTANTIATION TYPES
|
||||||
|
|
||||||
|
| Type/Alias | Instantiated By |
|
||||||
|
| ---------- | --------------- |
|
||||||
|
|
||||||
|
|
||||||
|
## LANGUAGE PRIMITIVES
|
||||||
|
|
||||||
|
<ul class="column-ul">
|
||||||
|
<li>oatpp::Any</li>
|
||||||
|
<li>oatpp::Boolean</li>
|
||||||
|
<li>oatpp::Fields</li>
|
||||||
|
<li>oatpp::Float64</li>
|
||||||
|
<li>oatpp::Int32</li>
|
||||||
|
<li>oatpp::Int64</li>
|
||||||
|
<li>oatpp::Object</li>
|
||||||
|
<li>oatpp::String</li>
|
||||||
|
<li>oatpp::UnorderedSet</li>
|
||||||
|
<li>oatpp::Vector</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
## RESERVED WORDS
|
||||||
|
|
||||||
|
<ul class="column-ul">
|
||||||
|
<li>NULL</li>
|
||||||
|
<li>alignas</li>
|
||||||
|
<li>alignof</li>
|
||||||
|
<li>and</li>
|
||||||
|
<li>and_eq</li>
|
||||||
|
<li>asm</li>
|
||||||
|
<li>auto</li>
|
||||||
|
<li>bitand</li>
|
||||||
|
<li>bitor</li>
|
||||||
|
<li>bool</li>
|
||||||
|
<li>break</li>
|
||||||
|
<li>case</li>
|
||||||
|
<li>catch</li>
|
||||||
|
<li>char</li>
|
||||||
|
<li>char16_t</li>
|
||||||
|
<li>char32_t</li>
|
||||||
|
<li>class</li>
|
||||||
|
<li>compl</li>
|
||||||
|
<li>concept</li>
|
||||||
|
<li>const</li>
|
||||||
|
<li>const_cast</li>
|
||||||
|
<li>constexpr</li>
|
||||||
|
<li>continue</li>
|
||||||
|
<li>decltype</li>
|
||||||
|
<li>default</li>
|
||||||
|
<li>delete</li>
|
||||||
|
<li>do</li>
|
||||||
|
<li>double</li>
|
||||||
|
<li>dynamic_cast</li>
|
||||||
|
<li>else</li>
|
||||||
|
<li>enum</li>
|
||||||
|
<li>explicit</li>
|
||||||
|
<li>export</li>
|
||||||
|
<li>extern</li>
|
||||||
|
<li>false</li>
|
||||||
|
<li>float</li>
|
||||||
|
<li>for</li>
|
||||||
|
<li>friend</li>
|
||||||
|
<li>goto</li>
|
||||||
|
<li>if</li>
|
||||||
|
<li>inline</li>
|
||||||
|
<li>int</li>
|
||||||
|
<li>linux</li>
|
||||||
|
<li>long</li>
|
||||||
|
<li>mutable</li>
|
||||||
|
<li>namespace</li>
|
||||||
|
<li>new</li>
|
||||||
|
<li>noexcept</li>
|
||||||
|
<li>not</li>
|
||||||
|
<li>not_eq</li>
|
||||||
|
<li>nullptr</li>
|
||||||
|
<li>operator</li>
|
||||||
|
<li>or</li>
|
||||||
|
<li>or_eq</li>
|
||||||
|
<li>private</li>
|
||||||
|
<li>protected</li>
|
||||||
|
<li>public</li>
|
||||||
|
<li>register</li>
|
||||||
|
<li>reinterpret_cast</li>
|
||||||
|
<li>requires</li>
|
||||||
|
<li>return</li>
|
||||||
|
<li>short</li>
|
||||||
|
<li>signed</li>
|
||||||
|
<li>sizeof</li>
|
||||||
|
<li>static</li>
|
||||||
|
<li>static_assert</li>
|
||||||
|
<li>static_cast</li>
|
||||||
|
<li>struct</li>
|
||||||
|
<li>switch</li>
|
||||||
|
<li>template</li>
|
||||||
|
<li>this</li>
|
||||||
|
<li>thread_local</li>
|
||||||
|
<li>throw</li>
|
||||||
|
<li>true</li>
|
||||||
|
<li>try</li>
|
||||||
|
<li>typedef</li>
|
||||||
|
<li>typeid</li>
|
||||||
|
<li>typename</li>
|
||||||
|
<li>union</li>
|
||||||
|
<li>unsigned</li>
|
||||||
|
<li>using</li>
|
||||||
|
<li>virtual</li>
|
||||||
|
<li>void</li>
|
||||||
|
<li>volatile</li>
|
||||||
|
<li>wchar_t</li>
|
||||||
|
<li>while</li>
|
||||||
|
<li>xor</li>
|
||||||
|
<li>xor_eq</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
## FEATURE SET
|
||||||
|
|
||||||
|
|
||||||
|
### Client Modification Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|BasePath|✗|ToolingExtension
|
||||||
|
|Authorizations|✗|ToolingExtension
|
||||||
|
|UserAgent|✗|ToolingExtension
|
||||||
|
|MockServer|✗|ToolingExtension
|
||||||
|
|
||||||
|
### Data Type Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|Custom|✗|OAS2,OAS3
|
||||||
|
|Int32|✓|OAS2,OAS3
|
||||||
|
|Int64|✓|OAS2,OAS3
|
||||||
|
|Float|✓|OAS2,OAS3
|
||||||
|
|Double|✓|OAS2,OAS3
|
||||||
|
|Decimal|✓|ToolingExtension
|
||||||
|
|String|✓|OAS2,OAS3
|
||||||
|
|Byte|✓|OAS2,OAS3
|
||||||
|
|Binary|✓|OAS2,OAS3
|
||||||
|
|Boolean|✓|OAS2,OAS3
|
||||||
|
|Date|✓|OAS2,OAS3
|
||||||
|
|DateTime|✓|OAS2,OAS3
|
||||||
|
|Password|✓|OAS2,OAS3
|
||||||
|
|File|✓|OAS2
|
||||||
|
|Uuid|✗|
|
||||||
|
|Array|✓|OAS2,OAS3
|
||||||
|
|Null|✗|OAS3
|
||||||
|
|AnyType|✗|OAS2,OAS3
|
||||||
|
|Object|✓|OAS2,OAS3
|
||||||
|
|Maps|✓|ToolingExtension
|
||||||
|
|CollectionFormat|✓|OAS2
|
||||||
|
|CollectionFormatMulti|✓|OAS2
|
||||||
|
|Enum|✓|OAS2,OAS3
|
||||||
|
|ArrayOfEnum|✓|ToolingExtension
|
||||||
|
|ArrayOfModel|✓|ToolingExtension
|
||||||
|
|ArrayOfCollectionOfPrimitives|✓|ToolingExtension
|
||||||
|
|ArrayOfCollectionOfModel|✓|ToolingExtension
|
||||||
|
|ArrayOfCollectionOfEnum|✓|ToolingExtension
|
||||||
|
|MapOfEnum|✓|ToolingExtension
|
||||||
|
|MapOfModel|✓|ToolingExtension
|
||||||
|
|MapOfCollectionOfPrimitives|✓|ToolingExtension
|
||||||
|
|MapOfCollectionOfModel|✓|ToolingExtension
|
||||||
|
|MapOfCollectionOfEnum|✓|ToolingExtension
|
||||||
|
|
||||||
|
### Documentation Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|Readme|✓|ToolingExtension
|
||||||
|
|Model|✓|ToolingExtension
|
||||||
|
|Api|✓|ToolingExtension
|
||||||
|
|
||||||
|
### Global Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|Host|✓|OAS2,OAS3
|
||||||
|
|BasePath|✓|OAS2,OAS3
|
||||||
|
|Info|✓|OAS2,OAS3
|
||||||
|
|Schemes|✗|OAS2,OAS3
|
||||||
|
|PartialSchemes|✓|OAS2,OAS3
|
||||||
|
|Consumes|✓|OAS2
|
||||||
|
|Produces|✓|OAS2
|
||||||
|
|ExternalDocumentation|✓|OAS2,OAS3
|
||||||
|
|Examples|✓|OAS2,OAS3
|
||||||
|
|XMLStructureDefinitions|✗|OAS2,OAS3
|
||||||
|
|MultiServer|✗|OAS3
|
||||||
|
|ParameterizedServer|✗|OAS3
|
||||||
|
|ParameterStyling|✗|OAS3
|
||||||
|
|Callbacks|✗|OAS3
|
||||||
|
|LinkObjects|✗|OAS3
|
||||||
|
|
||||||
|
### Parameter Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|Path|✓|OAS2,OAS3
|
||||||
|
|Query|✓|OAS2,OAS3
|
||||||
|
|Header|✓|OAS2,OAS3
|
||||||
|
|Body|✓|OAS2
|
||||||
|
|FormUnencoded|✓|OAS2
|
||||||
|
|FormMultipart|✓|OAS2
|
||||||
|
|Cookie|✗|OAS3
|
||||||
|
|
||||||
|
### Schema Support Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|Simple|✓|OAS2,OAS3
|
||||||
|
|Composite|✓|OAS2,OAS3
|
||||||
|
|Polymorphism|✗|OAS2,OAS3
|
||||||
|
|Union|✗|OAS3
|
||||||
|
|allOf|✗|OAS2,OAS3
|
||||||
|
|anyOf|✗|OAS3
|
||||||
|
|oneOf|✗|OAS3
|
||||||
|
|not|✗|OAS3
|
||||||
|
|
||||||
|
### Security Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|BasicAuth|✗|OAS2,OAS3
|
||||||
|
|ApiKey|✗|OAS2,OAS3
|
||||||
|
|OpenIDConnect|✗|OAS3
|
||||||
|
|BearerToken|✗|OAS3
|
||||||
|
|OAuth2_Implicit|✗|OAS2,OAS3
|
||||||
|
|OAuth2_Password|✗|OAS2,OAS3
|
||||||
|
|OAuth2_ClientCredentials|✗|OAS2,OAS3
|
||||||
|
|OAuth2_AuthorizationCode|✗|OAS2,OAS3
|
||||||
|
|SignatureAuth|✗|OAS3
|
||||||
|
|AWSV4Signature|✗|ToolingExtension
|
||||||
|
|
||||||
|
### Wire Format Feature
|
||||||
|
| Name | Supported | Defined By |
|
||||||
|
| ---- | --------- | ---------- |
|
||||||
|
|JSON|✓|OAS2,OAS3
|
||||||
|
|XML|✓|OAS2,OAS3
|
||||||
|
|PROTOBUF|✗|ToolingExtension
|
||||||
|
|Custom|✗|OAS2,OAS3
|
||||||
@@ -44,7 +44,6 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|packageName|C# package name (convention: Title.Case).| |Org.OpenAPITools|
|
|packageName|C# package name (convention: Title.Case).| |Org.OpenAPITools|
|
||||||
|packageTags|Tags to identify the package| |null|
|
|packageTags|Tags to identify the package| |null|
|
||||||
|packageVersion|C# package version.| |1.0.0|
|
|packageVersion|C# package version.| |1.0.0|
|
||||||
|releaseNote|Release note, default to 'Minor update'.| |Minor update|
|
|
||||||
|returnICollection|Return ICollection<T> instead of the concrete type.| |false|
|
|returnICollection|Return ICollection<T> instead of the concrete type.| |false|
|
||||||
|sourceFolder|source folder for generated code| |src|
|
|sourceFolder|source folder for generated code| |src|
|
||||||
|targetFramework|The target .NET framework version. To target multiple frameworks, use `;` as the separator, e.g. `netstandard2.1;netcoreapp3.1`|<dl><dt>**netstandard1.3**</dt><dd>.NET Standard 1.3</dd><dt>**netstandard1.4**</dt><dd>.NET Standard 1.4</dd><dt>**netstandard1.5**</dt><dd>.NET Standard 1.5</dd><dt>**netstandard1.6**</dt><dd>.NET Standard 1.6</dd><dt>**netstandard2.0**</dt><dd>.NET Standard 2.0</dd><dt>**netstandard2.1**</dt><dd>.NET Standard 2.1</dd><dt>**net47**</dt><dd>.NET Framework 4.7</dd><dt>**net48**</dt><dd>.NET Framework 4.8</dd><dt>**net8.0**</dt><dd>.NET 8.0 (End of Support 10 November 2026)</dd><dt>**net9.0**</dt><dd>.NET 9.0 (End of Support 12 May 2026)</dd></dl>|net9.0|
|
|targetFramework|The target .NET framework version. To target multiple frameworks, use `;` as the separator, e.g. `netstandard2.1;netcoreapp3.1`|<dl><dt>**netstandard1.3**</dt><dd>.NET Standard 1.3</dd><dt>**netstandard1.4**</dt><dd>.NET Standard 1.4</dd><dt>**netstandard1.5**</dt><dd>.NET Standard 1.5</dd><dt>**netstandard1.6**</dt><dd>.NET Standard 1.6</dd><dt>**netstandard2.0**</dt><dd>.NET Standard 2.0</dd><dt>**netstandard2.1**</dt><dd>.NET Standard 2.1</dd><dt>**net47**</dt><dd>.NET Framework 4.7</dd><dt>**net48**</dt><dd>.NET Framework 4.8</dd><dt>**net8.0**</dt><dd>.NET 8.0 (End of Support 10 November 2026)</dd><dt>**net9.0**</dt><dd>.NET 9.0 (End of Support 12 May 2026)</dd></dl>|net9.0|
|
||||||
@@ -54,6 +53,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|useIntForTimeout|Use int for Timeout (fall back to v7.9.0 templates). This option (for restsharp only) will be deprecated so please migrated to TimeSpan instead.| |false|
|
|useIntForTimeout|Use int for Timeout (fall back to v7.9.0 templates). This option (for restsharp only) will be deprecated so please migrated to TimeSpan instead.| |false|
|
||||||
|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped.| |false|
|
|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and only one match in oneOf's schemas) will be skipped.| |false|
|
||||||
|useSourceGeneration|Use source generation where available (only `generichost` library supports this option).| |false|
|
|useSourceGeneration|Use source generation where available (only `generichost` library supports this option).| |false|
|
||||||
|
|useVirtualForHooks|Generate code that exposes public virtual hooks on ApiClient to customize low-level HTTP requests (only `restsharp`. `httpclient` libraries support this option).| |false|
|
||||||
|validatable|Generates self-validatable models.| |true|
|
|validatable|Generates self-validatable models.| |true|
|
||||||
|zeroBasedEnums|Enumerations with string values will start from 0 when true, 1 when false. If not set, enumerations with string values will start from 0 if the first value is 'unknown', case insensitive.| |null|
|
|zeroBasedEnums|Enumerations with string values will start from 0 when true, 1 when false. If not set, enumerations with string values will start from 0 if the first value is 'unknown', case insensitive.| |null|
|
||||||
|
|
||||||
|
|||||||
@@ -45,19 +45,18 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
## LANGUAGE PRIMITIVES
|
## LANGUAGE PRIMITIVES
|
||||||
|
|
||||||
<ul class="column-ul">
|
<ul class="column-ul">
|
||||||
<li>AnyType</li>
|
<li>Date.t</li>
|
||||||
<li>Atom</li>
|
<li>DateTime.t</li>
|
||||||
<li>Boolean</li>
|
<li>String.t</li>
|
||||||
<li>Decimal</li>
|
|
||||||
<li>Float</li>
|
|
||||||
<li>Integer</li>
|
|
||||||
<li>List</li>
|
|
||||||
<li>Map</li>
|
|
||||||
<li>PID</li>
|
|
||||||
<li>String</li>
|
|
||||||
<li>Tuple</li>
|
|
||||||
<li>any()</li>
|
<li>any()</li>
|
||||||
|
<li>binary()</li>
|
||||||
|
<li>boolean()</li>
|
||||||
|
<li>float()</li>
|
||||||
|
<li>integer()</li>
|
||||||
|
<li>list()</li>
|
||||||
<li>map()</li>
|
<li>map()</li>
|
||||||
|
<li>nil</li>
|
||||||
|
<li>number()</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
## RESERVED WORDS
|
## RESERVED WORDS
|
||||||
@@ -189,7 +188,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|BasicAuth|✓|OAS2,OAS3
|
|BasicAuth|✓|OAS2,OAS3
|
||||||
|ApiKey|✗|OAS2,OAS3
|
|ApiKey|✗|OAS2,OAS3
|
||||||
|OpenIDConnect|✗|OAS3
|
|OpenIDConnect|✗|OAS3
|
||||||
|BearerToken|✗|OAS3
|
|BearerToken|✓|OAS3
|
||||||
|OAuth2_Implicit|✓|OAS2,OAS3
|
|OAuth2_Implicit|✓|OAS2,OAS3
|
||||||
|OAuth2_Password|✗|OAS2,OAS3
|
|OAuth2_Password|✗|OAS2,OAS3
|
||||||
|OAuth2_ClientCredentials|✗|OAS2,OAS3
|
|OAuth2_ClientCredentials|✗|OAS2,OAS3
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
|||||||
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
|
|disallowAdditionalPropertiesIfNotPresent|If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.|<dl><dt>**false**</dt><dd>The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.</dd><dt>**true**</dt><dd>Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.</dd></dl>|true|
|
||||||
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
|
|discriminatorCaseSensitive|Whether the discriminator value lookup should be case-sensitive or not. This option only works for Java API client| |true|
|
||||||
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|
|ensureUniqueParams|Whether to ensure parameter names are unique in an operation (rename parameters that are not).| |true|
|
||||||
|enumPropertyNaming|Naming convention for enum properties: 'MACRO_CASE' and 'legacy'| |MACRO_CASE|
|
|enumPropertyNaming|Naming convention for enum properties: 'MACRO_CASE', 'legacy' and 'original'| |MACRO_CASE|
|
||||||
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|
|enumUnknownDefaultCase|If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.|<dl><dt>**false**</dt><dd>No changes to the enum's are made, this is the default option.</dd><dt>**true**</dt><dd>With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.</dd></dl>|false|
|
||||||
|generateBuilders|Whether to generate builders for models| |false|
|
|generateBuilders|Whether to generate builders for models| |false|
|
||||||
|generateConstructorWithAllArgs|whether to generate a constructor for all arguments| |false|
|
|generateConstructorWithAllArgs|whether to generate a constructor for all arguments| |false|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user