forked from loafle/openapi-generator-original
Compare commits
307 Commits
lowercase-
...
v7.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2abcb4f7f0 | ||
|
|
20bd649bf9 | ||
|
|
0bc979ebdc | ||
|
|
950028419a | ||
|
|
93aec4d89d | ||
|
|
033993c63d | ||
|
|
494fc7d182 | ||
|
|
81e33ede6e | ||
|
|
f1fcceb375 | ||
|
|
93d5fc646b | ||
|
|
f61b7c2aa4 | ||
|
|
cf2435f335 | ||
|
|
c87ad561f1 | ||
|
|
5d959eeae6 | ||
|
|
31cff44206 | ||
|
|
8dae7026b9 | ||
|
|
7d9f9d7e81 | ||
|
|
2653777ece | ||
|
|
62d0e3abdb | ||
|
|
34a386c5a3 | ||
|
|
8eaeb2a1e7 | ||
|
|
ae9084bfd6 | ||
|
|
8f74d03290 | ||
|
|
92314232f8 | ||
|
|
2d155105a4 | ||
|
|
5d43c88540 | ||
|
|
009fda5e3d | ||
|
|
cdf8973999 | ||
|
|
d3ebb0a52b | ||
|
|
d4e10508cd | ||
|
|
c10c9146b9 | ||
|
|
d801bfdb84 | ||
|
|
8df0d98a44 | ||
|
|
2d3670b96c | ||
|
|
275ed9296d | ||
|
|
1fbf7220ec | ||
|
|
6f01a7ad82 | ||
|
|
340a3eba54 | ||
|
|
149246de31 | ||
|
|
8ca914d64f | ||
|
|
df8851d627 | ||
|
|
4b04e17751 | ||
|
|
2a4e60ccbb | ||
|
|
0b02734b93 | ||
|
|
a8efb8eea8 | ||
|
|
51ef501c02 | ||
|
|
22c52d358c | ||
|
|
4ba187a1a4 | ||
|
|
6e113842cf | ||
|
|
518b29d089 | ||
|
|
15af1ce1de | ||
|
|
81b96fd606 | ||
|
|
62b3ba7acc | ||
|
|
9c72b25bf4 | ||
|
|
c4f90d058b | ||
|
|
a6771adf53 | ||
|
|
9f5ec178cb | ||
|
|
fe919b2203 | ||
|
|
8d73c82417 | ||
|
|
f191904297 | ||
|
|
3af7363e76 | ||
|
|
6c86c2d3cf | ||
|
|
cf8c343b17 | ||
|
|
3c364ccbb4 | ||
|
|
c99a5cfeb6 | ||
|
|
6b024dbbfa | ||
|
|
48565ae5be | ||
|
|
95377cded4 | ||
|
|
ad84355288 | ||
|
|
ad08581f16 | ||
|
|
bf8ee80001 | ||
|
|
76d743b63b | ||
|
|
eb7d9b1605 | ||
|
|
e025ef947a | ||
|
|
6350d1d191 | ||
|
|
28b75377b5 | ||
|
|
7d539bcb78 | ||
|
|
436a3e0744 | ||
|
|
5a0f6b8eb2 | ||
|
|
809c90aa24 | ||
|
|
cedf170454 | ||
|
|
7d76d0af61 | ||
|
|
82bb813aeb | ||
|
|
4e39f12e29 | ||
|
|
887b860007 | ||
|
|
8cd34ac963 | ||
|
|
4810dd52c3 | ||
|
|
b0c9456add | ||
|
|
41bb5cd331 | ||
|
|
487b856c11 | ||
|
|
9deeb608e6 | ||
|
|
7d2e8b1278 | ||
|
|
c30d3696b0 | ||
|
|
4fb97b1003 | ||
|
|
dd3ab0a1fa | ||
|
|
3f344ac6b4 | ||
|
|
024c245ba7 | ||
|
|
aad345f0bd | ||
|
|
f3d5ea2f54 | ||
|
|
ec42f88c6a | ||
|
|
f431540075 | ||
|
|
f3ac4498df | ||
|
|
cd23dfd3ce | ||
|
|
5535578036 | ||
|
|
1e9bccca16 | ||
|
|
783e68c7ac | ||
|
|
d617b46c86 | ||
|
|
0bcd88b204 | ||
|
|
36f2ecae48 | ||
|
|
0d1b14a75f | ||
|
|
fdb001c8a3 | ||
|
|
7cdbb2a7b4 | ||
|
|
bc680568c5 | ||
|
|
5334014098 | ||
|
|
ba4e5ef495 | ||
|
|
5bcdc25645 | ||
|
|
be81652269 | ||
|
|
cd18299bb8 | ||
|
|
f323a3e788 | ||
|
|
c71eb5dfe8 | ||
|
|
0202bac539 | ||
|
|
cbc345308a | ||
|
|
5a7f050889 | ||
|
|
795f0798ac | ||
|
|
d0ed25a06d | ||
|
|
963e16a0dd | ||
|
|
2f3f684b7f | ||
|
|
3858599be0 | ||
|
|
4ec170236d | ||
|
|
70addf8fc9 | ||
|
|
5af2c7fbfb | ||
|
|
6e137bb61d | ||
|
|
6bcf8cd332 | ||
|
|
334ddca021 | ||
|
|
5397f64595 | ||
|
|
eb7d2d9fd2 | ||
|
|
580da9978a | ||
|
|
8ff230ed06 | ||
|
|
7c7634dda9 | ||
|
|
2129b15c8f | ||
|
|
4d3121c32e | ||
|
|
c9204c4330 | ||
|
|
6ec4ed0b69 | ||
|
|
7267e809c3 | ||
|
|
af4800132d | ||
|
|
1146575848 | ||
|
|
ef59589287 | ||
|
|
59f672d9aa | ||
|
|
301f25a306 | ||
|
|
9afea50cab | ||
|
|
5055ebade9 | ||
|
|
9952776e9c | ||
|
|
8f441689f7 | ||
|
|
17473a035b | ||
|
|
66a6af5ca4 | ||
|
|
a092bbd83b | ||
|
|
0a0428b89c | ||
|
|
d152f4d995 | ||
|
|
aa15ef9ab9 | ||
|
|
ad73e115d9 | ||
|
|
a7439e456e | ||
|
|
96eb4a499a | ||
|
|
aaaf1e14c8 | ||
|
|
45add92710 | ||
|
|
f31164b569 | ||
|
|
6a8ca1018f | ||
|
|
d0187ab359 | ||
|
|
dccb147055 | ||
|
|
4840b366bc | ||
|
|
90bd1f361b | ||
|
|
0357a1b1dd | ||
|
|
1e17712f25 | ||
|
|
b2f622cd98 | ||
|
|
c2ec0bafdf | ||
|
|
74a3a8870d | ||
|
|
659e21a4bf | ||
|
|
256b27912b | ||
|
|
e6161cc044 | ||
|
|
df0e13f0c6 | ||
|
|
227c8602f7 | ||
|
|
189bf7d6c5 | ||
|
|
3dcef8249b | ||
|
|
eb10b410e1 | ||
|
|
e326d6aafc | ||
|
|
27f766721a | ||
|
|
50ae17b197 | ||
|
|
5b6b082504 | ||
|
|
3767110b1b | ||
|
|
3756c3b65d | ||
|
|
d810d7c534 | ||
|
|
eab34c9b3f | ||
|
|
7e8b521069 | ||
|
|
a730fe5048 | ||
|
|
287e8fc69c | ||
|
|
26ab9e7741 | ||
|
|
092463a513 | ||
|
|
a0418c2855 | ||
|
|
13edc5d494 | ||
|
|
36e4e4f316 | ||
|
|
af71460c86 | ||
|
|
6518932ccf | ||
|
|
90a7354c42 | ||
|
|
33faa2960c | ||
|
|
9391354b85 | ||
|
|
64c763b87a | ||
|
|
51dbd32622 | ||
|
|
8e9a17fe02 | ||
|
|
406bc28a3d | ||
|
|
b01b182af6 | ||
|
|
968c6dc418 | ||
|
|
c6efe8810d | ||
|
|
75ef9e0b02 | ||
|
|
e384201416 | ||
|
|
62459f4a9a | ||
|
|
6429711a58 | ||
|
|
987a52cf0f | ||
|
|
69e72203ae | ||
|
|
76560e34c9 | ||
|
|
be19c35c45 | ||
|
|
61c40474af | ||
|
|
d0e533d573 | ||
|
|
cfe7dcc0cf | ||
|
|
e3c0a3e8b0 | ||
|
|
9b7528d8c8 | ||
|
|
455add6d80 | ||
|
|
11caad92df | ||
|
|
9b62b9bb05 | ||
|
|
e69c5269d5 | ||
|
|
7ddcb9a8cb | ||
|
|
1e0e8fe0eb | ||
|
|
dd5c7e3b9a | ||
|
|
8bab0ceb53 | ||
|
|
90f3b24edc | ||
|
|
425011a50c | ||
|
|
69a4a65bc7 | ||
|
|
df7976c1a3 | ||
|
|
c041d7e12f | ||
|
|
209344ba40 | ||
|
|
9827098057 | ||
|
|
210044eb8a | ||
|
|
f36659114b | ||
|
|
742c2c48e7 | ||
|
|
0d4c9fb2c3 | ||
|
|
22a0fc1727 | ||
|
|
4acbd69c3d | ||
|
|
cc946e3f61 | ||
|
|
ca260b2230 | ||
|
|
07a9257ee9 | ||
|
|
5c571b0e1f | ||
|
|
c782526556 | ||
|
|
a0c2517e79 | ||
|
|
22d228b075 | ||
|
|
64f2cad9e8 | ||
|
|
6317796cba | ||
|
|
ddc7d4b1b5 | ||
|
|
23bd5d413c | ||
|
|
1b72140b46 | ||
|
|
34c3f8c7aa | ||
|
|
3d91fa8bd7 | ||
|
|
063865973d | ||
|
|
dffb5c121f | ||
|
|
c56fc21517 | ||
|
|
cb84dffb2a | ||
|
|
48e9b9f408 | ||
|
|
218dccdb8b | ||
|
|
8b5b5a74c3 | ||
|
|
a5d3fb4f60 | ||
|
|
6eeecc1d18 | ||
|
|
1105759a6f | ||
|
|
e20466bffe | ||
|
|
35b47e6382 | ||
|
|
c252216700 | ||
|
|
c215bc681d | ||
|
|
2d50655d8c | ||
|
|
d0f659ec4d | ||
|
|
a4f1a17502 | ||
|
|
8c014372aa | ||
|
|
a67e07e132 | ||
|
|
5eab3cef19 | ||
|
|
fe638d0093 | ||
|
|
da13013a27 | ||
|
|
63f09ee846 | ||
|
|
e127ba3d0c | ||
|
|
38c33b92fe | ||
|
|
986a9146d7 | ||
|
|
0a7140224c | ||
|
|
3099a2fcd3 | ||
|
|
106047980b | ||
|
|
bf4c98a82a | ||
|
|
864c0db5e9 | ||
|
|
a34eeaed77 | ||
|
|
b20c8db281 | ||
|
|
6d9211a131 | ||
|
|
a62132ecd9 | ||
|
|
b5cd4e9316 | ||
|
|
457622c456 | ||
|
|
aeb6fcbb8c | ||
|
|
1ccabeec64 | ||
|
|
aacea3477f | ||
|
|
dc047b4e91 | ||
|
|
473c3508ff | ||
|
|
5435b44e40 | ||
|
|
efe2f8703d | ||
|
|
58345a9a80 | ||
|
|
809d7151c6 | ||
|
|
e63563a8fc | ||
|
|
367301de22 |
@@ -192,20 +192,6 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- command_build_and_test:
|
- command_build_and_test:
|
||||||
nodeNo: "3"
|
nodeNo: "3"
|
||||||
node4:
|
|
||||||
machine:
|
|
||||||
image: ubuntu-2004:202201-02
|
|
||||||
working_directory: ~/OpenAPITools/openapi-generator
|
|
||||||
shell: /bin/bash --login
|
|
||||||
environment:
|
|
||||||
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
|
|
||||||
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
|
|
||||||
DOCKER_GENERATOR_IMAGE_NAME: openapitools/openapi-generator
|
|
||||||
DOCKER_CODEGEN_CLI_IMAGE_NAME: openapitools/openapi-generator-cli
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- command_build_and_test:
|
|
||||||
nodeNo: "4"
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
@@ -214,4 +200,3 @@ workflows:
|
|||||||
- node1
|
- node1
|
||||||
- node2
|
- node2
|
||||||
- node3
|
- node3
|
||||||
- node4
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
"ghcr.io/devcontainers/features/node:1": {
|
"ghcr.io/devcontainers/features/node:1": {
|
||||||
"version": "lts"
|
"version": "lts"
|
||||||
},
|
},
|
||||||
|
"ghcr.io/devcontainers/features/rust:1": {},
|
||||||
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
|
"ghcr.io/snebjorn/devcontainer-feature/chromium:latest": {},
|
||||||
"docker-in-docker": {
|
"docker-in-docker": {
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
|
|||||||
10
.github/CODEOWNERS
vendored
10
.github/CODEOWNERS
vendored
@@ -28,6 +28,14 @@ modules/openapi-generator-cli/**/* @jimschubert
|
|||||||
modules/openapi-generator-gradle-plugin/**/* @jimschubert
|
modules/openapi-generator-gradle-plugin/**/* @jimschubert
|
||||||
modules/openapi-generator-maven-plugin/**/* @jimschubert
|
modules/openapi-generator-maven-plugin/**/* @jimschubert
|
||||||
|
|
||||||
# Martin Delille
|
# cpp-qt-client technical committee
|
||||||
|
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @ravinikam
|
||||||
|
samples/client/petstore/cpp-qt/**/* @ravinikam
|
||||||
|
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @stkrwork
|
||||||
|
samples/client/petstore/cpp-qt/**/* @stkrwork
|
||||||
|
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @etherealjoy
|
||||||
|
samples/client/petstore/cpp-qt/**/* @etherealjoy
|
||||||
modules/openapi-generator/src/main/resources/cpp-qt-client/**/* @martindelille
|
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
|
||||||
|
samples/client/petstore/cpp-qt/**/* @muttleyxd
|
||||||
|
|||||||
2
.github/workflows/gradle-plugin-tests.yaml
vendored
2
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/gradle-test.yaml
vendored
4
.github/workflows/gradle-test.yaml
vendored
@@ -37,14 +37,14 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
# Cache Gradle Dependencies
|
# Cache Gradle Dependencies
|
||||||
- name: Setup Gradle Dependencies Cache
|
- name: Setup Gradle Dependencies Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
# Cache Gradle Wrapper
|
# Cache Gradle Wrapper
|
||||||
- name: Setup Gradle Wrapper Cache
|
- name: Setup Gradle Wrapper Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/wrapper
|
path: ~/.gradle/wrapper
|
||||||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
|
||||||
|
|||||||
8
.github/workflows/linux.yaml
vendored
8
.github/workflows/linux.yaml
vendored
@@ -28,14 +28,14 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -45,7 +45,7 @@ jobs:
|
|||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.11.0
|
uses: s4u/setup-maven-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.11.0
|
uses: s4u/setup-maven-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
|||||||
2
.github/workflows/maven-plugin-tests.yaml
vendored
2
.github/workflows/maven-plugin-tests.yaml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
4
.github/workflows/openapi-generator.yaml
vendored
4
.github/workflows/openapi-generator.yaml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-dart.yaml
vendored
2
.github/workflows/samples-dart.yaml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Cache test dependencies
|
- name: Cache test dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: pub-cache
|
cache-name: pub-cache
|
||||||
with:
|
with:
|
||||||
|
|||||||
35
.github/workflows/samples-dotnet-standard.yaml
vendored
35
.github/workflows/samples-dotnet-standard.yaml
vendored
@@ -1,12 +1,24 @@
|
|||||||
name: Samples C# .Net Standard
|
name: Samples C# .Net Standard Client
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp/**netstandard**/'
|
# build C# API client (netstandard)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp/*netstandard*/**
|
||||||
|
# build C# API client (netstandard with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (netstandard httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp/**netstandard**/'
|
# build C# API client (netstandard)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient/**
|
||||||
|
- samples/client/petstore/csharp/*netstandard*/**
|
||||||
|
# build C# API client (netstandard with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
||||||
|
# build C# API client (netstandard httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
@@ -15,8 +27,13 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# build C# API client (netstandard)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0
|
- samples/client/petstore/csharp/OpenAPIClient/
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
|
||||||
|
# build C# API client (netstandard with ConditionalSerialization)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
||||||
|
# build C# API client (netstandard httpclient)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.0.0
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
@@ -25,6 +42,8 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
- name: Test
|
# skip tests as petstore server it not running
|
||||||
working-directory: ${{ matrix.sample }}
|
# these tests are run in appveyor instead
|
||||||
run: dotnet test Org.OpenAPITools.sln
|
#- name: Test
|
||||||
|
# working-directory: ${{ matrix.sample }}
|
||||||
|
# run: dotnet test Org.OpenAPITools.sln
|
||||||
|
|||||||
38
.github/workflows/samples-dotnet.yaml
vendored
38
.github/workflows/samples-dotnet.yaml
vendored
@@ -1,25 +1,18 @@
|
|||||||
name: Samples C# .Net 7
|
name: Samples C# .Net 8 Clients
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp/**net6.0**/'
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**
|
||||||
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
- samples/client/petstore/csharp/*net6.0*/**
|
||||||
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
- samples/client/petstore/csharp/*net7.0*/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- samples/client/petstore/csharp/OpenAPIClient-*latest*/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/csharp/**net6.0**/'
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**
|
||||||
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-netcore**/'
|
- samples/client/petstore/csharp/*net6.0*/**
|
||||||
- 'samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests/**'
|
- samples/client/petstore/csharp/*net7.0*/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- samples/client/petstore/csharp/OpenAPIClient-*latest*/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net projects
|
||||||
@@ -29,18 +22,15 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-net7.0-useDateTimeForDate
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-allOf
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-anyOf
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-manual-tests
|
- samples/client/petstore/csharp/OpenAPIClient-generichost-netcore-latest-oneOf
|
||||||
- samples/server/petstore/aspnetcore-6.0
|
- samples/client/petstore/csharp/OpenAPIClient-net7.0-useDateTimeForDate
|
||||||
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
|
||||||
- samples/server/petstore/aspnetcore-6.0-project4Models
|
|
||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
|
||||||
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
|
||||||
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.0.0
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Samples C# .Net 6
|
name: Samples C# .Net 6 Client Echo API
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
48
.github/workflows/samples-dotnet6-client.yaml
vendored
48
.github/workflows/samples-dotnet6-client.yaml
vendored
@@ -1,48 +1,30 @@
|
|||||||
name: Samples C# .Net 6
|
name: Samples C# .Net 6 Client
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
# build C# API client (multiple frameworks)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
|
||||||
# build C# API client (httpclient)
|
# build C# API client (httpclient)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
# build C# API client (generichost)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
|
||||||
# build C# API client (netcore)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient/**
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
|
||||||
# build C# API client (.net framework 4.7)
|
# build C# API client (.net framework 4.7)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
# build C# API client (.net framework 4.8)
|
# build C# API client (.net framework 4.8)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
# build C# API client (.net 5.0)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
|
||||||
# build C# API client (property, parameter name mappings)
|
# build C# API client (property, parameter name mappings)
|
||||||
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
- samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/**
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
# build C# API client (multiple frameworks)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
|
||||||
# build C# API client (httpclient)
|
# build C# API client (httpclient)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/**
|
||||||
# build C# API client (generichost)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/**
|
|
||||||
# build C# API client (netcore)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient/**
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClientCore/**
|
|
||||||
# build C# API client (.net framework 4.7)
|
# build C# API client (.net framework 4.7)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
- samples/client/petstore/csharp/OpenAPIClient-net47/**
|
||||||
# build C# API client (.net framework 4.8)
|
# build C# API client (.net framework 4.8)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
- samples/client/petstore/csharp/OpenAPIClient-net48/**
|
||||||
# build C# API client (.net 5.0)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net5.0/**
|
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/**
|
|
||||||
# build C# API client (property, parameter name mappings)
|
# build C# API client (property, parameter name mappings)
|
||||||
- samples/client/petstore/csharp-restsharp-name-parameter-mappings/**
|
- samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/**
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net clients
|
name: Build .Net clients
|
||||||
@@ -51,26 +33,16 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
|
||||||
# build C# API client (multiple frameworks)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
|
|
||||||
# build C# API client (httpclient)
|
# build C# API client (httpclient)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
- samples/client/petstore/csharp/OpenAPIClient-httpclient/
|
||||||
# build C# API client (generichost)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/
|
|
||||||
# build C# API client (netcore)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient/
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClientCore/
|
|
||||||
# build C# API client (.net framework 4.7)
|
# build C# API client (.net framework 4.7)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net47/
|
- samples/client/petstore/csharp/OpenAPIClient-net47/
|
||||||
# build C# API client (.net framework 4.8)
|
# build C# API client (.net framework 4.8)
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
- samples/client/petstore/csharp/OpenAPIClient-net48/
|
||||||
# build C# API client (.net 5.0)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-net5.0/
|
|
||||||
# build C# API client (.net 5.0 with ConditionalSerialization)
|
|
||||||
- samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/
|
|
||||||
# build C# API client (property, parameter name mappings)
|
# build C# API client (property, parameter name mappings)
|
||||||
- samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
- samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings/
|
||||||
|
# build C# API client (multiple frameworks)
|
||||||
|
- samples/client/petstore/csharp/OpenAPIClientCoreAndNet47/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.0.0
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
|
|||||||
21
.github/workflows/samples-dotnet6-server.yaml
vendored
21
.github/workflows/samples-dotnet6-server.yaml
vendored
@@ -1,33 +1,28 @@
|
|||||||
name: Samples C# .Net 6
|
name: Samples C# .Net 6 Server
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- samples/server/petstore/aspnetcore-6.0/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- samples/server/petstore/aspnetcore-6.0-*/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/aspnetcore-6.0/**'
|
- samples/server/petstore/aspnetcore-6.0/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-pocoModels/**'
|
- samples/server/petstore/aspnetcore-6.0-*/**
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-project4Models/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-useSwashBuckle/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/**'
|
|
||||||
- 'samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net servers
|
name: Build .Net 6 servers
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/server/petstore/aspnetcore-6.0
|
- samples/server/petstore/aspnetcore-6.0
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
||||||
|
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
||||||
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
- samples/server/petstore/aspnetcore-6.0-pocoModels
|
||||||
- samples/server/petstore/aspnetcore-6.0-project4Models
|
- samples/server/petstore/aspnetcore-6.0-project4Models
|
||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
- samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse
|
|
||||||
- samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-dotnet@v4.0.0
|
- uses: actions/setup-dotnet@v4.0.0
|
||||||
|
|||||||
31
.github/workflows/samples-go-gin.yaml
vendored
Normal file
31
.github/workflows/samples-go-gin.yaml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Samples Go
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/go-gin-api-server/**'
|
||||||
|
- 'samples/server/petstore/go-gin-api-server-interface-only/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/server/petstore/go-gin-api-server/**'
|
||||||
|
- 'samples/server/petstore/go-gin-api-server-interface-only/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Go
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/go-gin-api-server/
|
||||||
|
- samples/server/petstore/go-gin-api-server-interface-only/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: "stable"
|
||||||
|
- run: go version
|
||||||
|
- name: Run test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: go test -mod=mod -v
|
||||||
4
.github/workflows/samples-groovy.yaml
vendored
4
.github/workflows/samples-groovy.yaml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
~/.gradle
|
~/.gradle
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Install Gradle wrapper
|
- name: Install Gradle wrapper
|
||||||
uses: eskatos/gradle-command-action@v2
|
uses: eskatos/gradle-command-action@v3
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ jobs:
|
|||||||
- samples/client/echo_api/java/native
|
- samples/client/echo_api/java/native
|
||||||
- samples/client/echo_api/java/feign-gson
|
- samples/client/echo_api/java/feign-gson
|
||||||
- samples/client/echo_api/java/resttemplate
|
- samples/client/echo_api/java/resttemplate
|
||||||
|
- samples/client/echo_api/java/resteasy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -27,7 +28,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -7,12 +7,13 @@ on:
|
|||||||
- samples/client/echo_api/java/feign-gson/**
|
- samples/client/echo_api/java/feign-gson/**
|
||||||
- samples/client/echo_api/java/okhttp-gson/**
|
- samples/client/echo_api/java/okhttp-gson/**
|
||||||
- samples/client/echo_api/java/resttemplate/**
|
- samples/client/echo_api/java/resttemplate/**
|
||||||
|
- samples/client/echo_api/java/resteasy/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/echo_api/java/apache-httpclient/**
|
- samples/client/echo_api/java/apache-httpclient/**
|
||||||
- samples/client/echo_api/java/feign-gson/**
|
- samples/client/echo_api/java/feign-gson/**
|
||||||
- samples/client/echo_api/java/okhttp-gson/**
|
- samples/client/echo_api/java/okhttp-gson/**
|
||||||
- samples/client/echo_api/java/resttemplate/**
|
- samples/client/echo_api/java/resteasy/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Client JDK8
|
name: Build Java Client JDK8
|
||||||
@@ -26,6 +27,7 @@ jobs:
|
|||||||
- samples/client/echo_api/java/feign-gson
|
- samples/client/echo_api/java/feign-gson
|
||||||
- samples/client/echo_api/java/okhttp-gson
|
- samples/client/echo_api/java/okhttp-gson
|
||||||
- samples/client/echo_api/java/resttemplate
|
- samples/client/echo_api/java/resttemplate
|
||||||
|
- samples/client/echo_api/java/resteasy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -33,7 +35,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-java-helidon.yaml
vendored
2
.github/workflows/samples-java-helidon.yaml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.version }}
|
java-version: ${{ matrix.version }}
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
35
.github/workflows/samples-java-wiremock.yaml
vendored
Normal file
35
.github/workflows/samples-java-wiremock.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
name: Samples Java Wiremock
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/java-wiremock/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/java-wiremock/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Java Wiremock
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/java-wiremock
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 11
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.m2
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn clean package
|
||||||
2
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
2
.github/workflows/samples-jaxrs-jdk11.yaml
vendored
@@ -24,7 +24,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-jaxrs.yaml
vendored
2
.github/workflows/samples-jaxrs.yaml
vendored
@@ -44,7 +44,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-jdk17.yaml
vendored
2
.github/workflows/samples-jdk17.yaml
vendored
@@ -54,7 +54,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
10
.github/workflows/samples-kotlin-client.yaml
vendored
10
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -34,20 +34,18 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
|
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
|
||||||
- samples/client/petstore/kotlin-nonpublic
|
- samples/client/petstore/kotlin-nonpublic
|
||||||
- samples/client/petstore/kotlin-nullable
|
- samples/client/petstore/kotlin-nullable
|
||||||
- samples/client/petstore/kotlin-okhttp3
|
|
||||||
- samples/client/petstore/kotlin-retrofit2
|
- samples/client/petstore/kotlin-retrofit2
|
||||||
- samples/client/petstore/kotlin-retrofit2-kotlinx_serialization
|
- samples/client/petstore/kotlin-retrofit2-kotlinx_serialization
|
||||||
|
- samples/client/petstore/kotlin-retrofit2-jackson
|
||||||
- samples/client/petstore/kotlin-retrofit2-rx3
|
- samples/client/petstore/kotlin-retrofit2-rx3
|
||||||
- samples/client/petstore/kotlin-string
|
- samples/client/petstore/kotlin-string
|
||||||
- samples/client/petstore/kotlin-threetenbp
|
- samples/client/petstore/kotlin-threetenbp
|
||||||
- samples/client/petstore/kotlin-kotlinx-datetime
|
- samples/client/petstore/kotlin-kotlinx-datetime
|
||||||
- samples/client/petstore/kotlin-uppercase-enum
|
- samples/client/petstore/kotlin-uppercase-enum
|
||||||
- samples/client/petstore/kotlin-default-values-jvm-okhttp3
|
|
||||||
- samples/client/petstore/kotlin-default-values-jvm-okhttp4
|
- samples/client/petstore/kotlin-default-values-jvm-okhttp4
|
||||||
- samples/client/petstore/kotlin-default-values-jvm-retrofit2
|
- samples/client/petstore/kotlin-default-values-jvm-retrofit2
|
||||||
- samples/client/petstore/kotlin-default-values-jvm-volley
|
- samples/client/petstore/kotlin-default-values-jvm-volley
|
||||||
- samples/client/petstore/kotlin-default-values-multiplatform
|
- samples/client/petstore/kotlin-default-values-multiplatform
|
||||||
- samples/client/petstore/kotlin-array-simple-string-jvm-okhttp3
|
|
||||||
- samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4
|
- samples/client/petstore/kotlin-array-simple-string-jvm-okhttp4
|
||||||
- samples/client/petstore/kotlin-array-simple-string-jvm-volley
|
- samples/client/petstore/kotlin-array-simple-string-jvm-volley
|
||||||
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
||||||
@@ -63,7 +61,9 @@ jobs:
|
|||||||
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
- samples/client/petstore/kotlin-jvm-vertx-moshi
|
||||||
- samples/client/petstore/kotlin-jvm-spring-2-webclient
|
- samples/client/petstore/kotlin-jvm-spring-2-webclient
|
||||||
- samples/client/petstore/kotlin-jvm-spring-3-webclient
|
- samples/client/petstore/kotlin-jvm-spring-3-webclient
|
||||||
|
- samples/client/echo_api/kotlin-jvm-spring-3-webclient
|
||||||
- samples/client/petstore/kotlin-jvm-spring-3-restclient
|
- samples/client/petstore/kotlin-jvm-spring-3-restclient
|
||||||
|
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
||||||
- samples/client/petstore/kotlin-spring-cloud
|
- samples/client/petstore/kotlin-spring-cloud
|
||||||
- samples/client/petstore/kotlin-name-parameter-mappings
|
- samples/client/petstore/kotlin-name-parameter-mappings
|
||||||
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
~/.gradle
|
~/.gradle
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Install Gradle wrapper
|
- name: Install Gradle wrapper
|
||||||
uses: eskatos/gradle-command-action@v2
|
uses: eskatos/gradle-command-action@v3
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
|
|||||||
50
.github/workflows/samples-kotlin-echo-api.yaml
vendored
Normal file
50
.github/workflows/samples-kotlin-echo-api.yaml
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
name: Kotlin Client (Echo API) JDK17
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/kotlin**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/echo_api/kotlin**
|
||||||
|
env:
|
||||||
|
GRADLE_VERSION: 7.4
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Kotlin Client JDK17
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 17
|
||||||
|
- name: Cache maven dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
env:
|
||||||
|
cache-name: maven-repository
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.gradle
|
||||||
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
|
- name: Install Gradle wrapper
|
||||||
|
uses: eskatos/gradle-command-action@v3
|
||||||
|
with:
|
||||||
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
|
build-root-directory: ${{ matrix.sample }}
|
||||||
|
arguments: wrapper
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: ./gradlew build
|
||||||
@@ -4,11 +4,13 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
|
- 'samples/server/petstore/kotlin-server/javalin/**'
|
||||||
# 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/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
- 'samples/server/petstore/kotlin-springboot-3*/**'
|
||||||
|
- 'samples/server/petstore/kotlin-server/javalin/**'
|
||||||
# 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/**
|
||||||
|
|
||||||
@@ -25,6 +27,8 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-springboot-3
|
- samples/server/petstore/kotlin-springboot-3
|
||||||
|
- samples/server/petstore/kotlin-springboot-request
|
||||||
|
- samples/server/petstore/kotlin-server/javalin
|
||||||
# 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:
|
||||||
@@ -34,7 +38,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -42,7 +46,7 @@ jobs:
|
|||||||
~/.gradle
|
~/.gradle
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Install Gradle wrapper
|
- name: Install Gradle wrapper
|
||||||
uses: eskatos/gradle-command-action@v2
|
uses: eskatos/gradle-command-action@v3
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
|
|||||||
6
.github/workflows/samples-kotlin-server.yaml
vendored
6
.github/workflows/samples-kotlin-server.yaml
vendored
@@ -27,6 +27,7 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-springboot
|
- samples/server/petstore/kotlin-springboot
|
||||||
|
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
||||||
- samples/server/petstore/kotlin-springboot-delegate
|
- samples/server/petstore/kotlin-springboot-delegate
|
||||||
- samples/server/petstore/kotlin-springboot-modelMutable
|
- samples/server/petstore/kotlin-springboot-modelMutable
|
||||||
- samples/server/petstore/kotlin-springboot-reactive
|
- samples/server/petstore/kotlin-springboot-reactive
|
||||||
@@ -37,6 +38,7 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec-mutiny
|
- samples/server/petstore/kotlin-server/jaxrs-spec-mutiny
|
||||||
- samples/server/petstore/kotlin-server-modelMutable
|
- samples/server/petstore/kotlin-server-modelMutable
|
||||||
|
- samples/server/petstore/kotlin-server/javalin
|
||||||
- samples/server/others/kotlin-server/jaxrs-spec
|
- samples/server/others/kotlin-server/jaxrs-spec
|
||||||
# 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
|
||||||
@@ -49,7 +51,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -57,7 +59,7 @@ jobs:
|
|||||||
~/.gradle
|
~/.gradle
|
||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
|
||||||
- name: Install Gradle wrapper
|
- name: Install Gradle wrapper
|
||||||
uses: eskatos/gradle-command-action@v2
|
uses: eskatos/gradle-command-action@v3
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
build-root-directory: ${{ matrix.sample }}
|
build-root-directory: ${{ matrix.sample }}
|
||||||
|
|||||||
32
.github/workflows/samples-postman.yaml
vendored
Normal file
32
.github/workflows/samples-postman.yaml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: Samples Postman
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/schema/postman-collection/python/**
|
||||||
|
- .github/workflows/samples-postman.yaml
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python client
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# schema
|
||||||
|
- samples/schema/postman-collection
|
||||||
|
python-version:
|
||||||
|
- "3.11"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
pip install -r python/requirements.txt
|
||||||
|
pip install -r python/test-requirements.txt
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: python -m pytest
|
||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/client/echo_api/python
|
- samples/client/echo_api/python
|
||||||
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true
|
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
|
||||||
python-version:
|
python-version:
|
||||||
- "3.7"
|
- "3.7"
|
||||||
- "3.8"
|
- "3.8"
|
||||||
@@ -42,3 +42,7 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: python -m pytest
|
run: python -m pytest
|
||||||
|
|
||||||
|
- name: mypy
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: python -m mypy
|
||||||
|
|||||||
33
.github/workflows/samples-python-fastapi-server.yaml
vendored
Normal file
33
.github/workflows/samples-python-fastapi-server.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Python FastAPI Server
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/python-fastapi/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/python-fastapi/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Test Python FastAPI server
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/python-fastapi/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.9'
|
||||||
|
- name: Install dependencies
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pip install pytest
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: PYTHONPATH=src pytest
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
path: |
|
path: |
|
||||||
@@ -57,3 +57,7 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: poetry run pytest -v
|
run: poetry run pytest -v
|
||||||
|
|
||||||
|
- name: mypy
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: poetry run mypy
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
42
.github/workflows/samples-r.yaml
vendored
Normal file
42
.github/workflows/samples-r.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
name: Samples R
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/echo_api/r/**'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'samples/client/echo_api/r/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build R
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- 'samples/client/echo_api/r/'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
- name: Run echo server
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- uses: r-lib/actions/setup-r@v2
|
||||||
|
with:
|
||||||
|
r-version: 3.6.1
|
||||||
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
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
|
||||||
3
.github/workflows/samples-rust.yaml
vendored
3
.github/workflows/samples-rust.yaml
vendored
@@ -6,11 +6,13 @@ on:
|
|||||||
- "samples/client/others/rust/**"
|
- "samples/client/others/rust/**"
|
||||||
- "samples/server/petstore/rust-server/**"
|
- "samples/server/petstore/rust-server/**"
|
||||||
- "samples/client/petstore/rust-server/**"
|
- "samples/client/petstore/rust-server/**"
|
||||||
|
- "samples/server/petstore/rust-axum/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- "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-axum/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -24,6 +26,7 @@ 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-axum/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
|
|||||||
4
.github/workflows/samples-scala.yaml
vendored
4
.github/workflows/samples-scala.yaml
vendored
@@ -22,6 +22,7 @@ jobs:
|
|||||||
# 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-sttp # won't pass while the same tests in circleci pass
|
#- samples/client/petstore/scala-sttp # won't pass while the same tests in circleci pass
|
||||||
# servers
|
# servers
|
||||||
- samples/server/petstore/scala-lagom-server
|
- samples/server/petstore/scala-lagom-server
|
||||||
@@ -30,6 +31,7 @@ jobs:
|
|||||||
- 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-finch # cannot be tested with jdk11
|
||||||
|
- samples/server/petstore/scala-http4s-server
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -37,7 +39,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
7
.github/workflows/samples-spring-jdk17.yaml
vendored
7
.github/workflows/samples-spring-jdk17.yaml
vendored
@@ -7,6 +7,8 @@ on:
|
|||||||
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/server/petstore/springboot-lombok-data
|
||||||
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Java Spring (JDK17)
|
name: Build Java Spring (JDK17)
|
||||||
@@ -17,6 +19,9 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
- samples/openapi3/client/petstore/spring-cloud-3-with-optional
|
||||||
|
# servers
|
||||||
|
- samples/server/petstore/springboot-lombok-data
|
||||||
|
- samples/server/petstore/springboot-lombok-tostring
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -24,7 +29,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
.github/workflows/samples-spring.yaml
vendored
3
.github/workflows/samples-spring.yaml
vendored
@@ -57,6 +57,7 @@ jobs:
|
|||||||
- samples/server/petstore/springboot-spring-pageable-without-j8
|
- samples/server/petstore/springboot-spring-pageable-without-j8
|
||||||
- samples/server/petstore/springboot-spring-pageable
|
- samples/server/petstore/springboot-spring-pageable
|
||||||
- samples/server/petstore/springboot-spring-provide-args
|
- samples/server/petstore/springboot-spring-provide-args
|
||||||
|
- samples/server/petstore/springboot-lombok-data
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
@@ -64,7 +65,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
(cd http-echo-server && npm install && npm start &)
|
(cd http-echo-server && git checkout 15a684c41d4de692878636f47fcc1670af309a0f && npm install && npm start &)
|
||||||
|
|
||||||
- name: Install
|
- name: Install
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
|
|||||||
26
.github/workflows/sonar.yml
vendored
26
.github/workflows/sonar.yml
vendored
@@ -1,26 +0,0 @@
|
|||||||
name: Sonar CI
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- '[4-9]+.[0-9]+.x'
|
|
||||||
- sonar
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: ${{ github.repository_owner == 'OpenAPITools' }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up JDK 11
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
distribution: 'temurin'
|
|
||||||
java-version: 11
|
|
||||||
- name: Compile with Maven
|
|
||||||
run: ./mvnw -B -q clean install jacoco:report
|
|
||||||
- name: Jacoco Aggregate
|
|
||||||
run: ./mvnw jacoco:report-aggregate
|
|
||||||
- name: Publish to Sonar
|
|
||||||
run: ./mvnw -B -q -nsu sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}
|
|
||||||
6
.github/workflows/windows.yaml
vendored
6
.github/workflows/windows.yaml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
${{ runner.os }}-build-
|
${{ runner.os }}-build-
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.11.0
|
uses: s4u/setup-maven-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
# generator names containing "-" caused problems in the past, see https://github.com/OpenAPITools/openapi-generator/issues/9528
|
# generator names containing "-" caused problems in the past, see https://github.com/OpenAPITools/openapi-generator/issues/9528
|
||||||
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
|
java -jar ./openapi-generator-cli.jar author template --verbose -g jaxrs-spec --library quarkus
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@v2
|
uses: gradle/gradle-build-action@v3
|
||||||
- name: Gradle tests
|
- name: Gradle tests
|
||||||
run: |
|
run: |
|
||||||
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
gradle -b modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle buildGoSdk --stacktrace
|
||||||
|
|||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -8,6 +8,7 @@ out/
|
|||||||
*.gpg
|
*.gpg
|
||||||
classpath.txt
|
classpath.txt
|
||||||
version.properties
|
version.properties
|
||||||
|
modules/openapi-generator-maven-plugin/src/test/resources/default/_merged_spec.yaml
|
||||||
modules/openapi-generator-gradle-plugin/bin/
|
modules/openapi-generator-gradle-plugin/bin/
|
||||||
!modules/openapi-generator-cli/src/main/resources/version.properties
|
!modules/openapi-generator-cli/src/main/resources/version.properties
|
||||||
.project
|
.project
|
||||||
@@ -179,7 +180,7 @@ samples/client/petstore/python/swagger_client.egg-info/SOURCES.txt
|
|||||||
samples/client/petstore/python/.coverage
|
samples/client/petstore/python/.coverage
|
||||||
samples/client/petstore/python/.projectile
|
samples/client/petstore/python/.projectile
|
||||||
samples/client/petstore/python-asyncio/.pytest_cache/
|
samples/client/petstore/python-asyncio/.pytest_cache/
|
||||||
|
**/poetry.lock
|
||||||
|
|
||||||
# PHP
|
# PHP
|
||||||
samples/client/petstore/php/OpenAPIClient-php/composer.lock
|
samples/client/petstore/php/OpenAPIClient-php/composer.lock
|
||||||
@@ -212,6 +213,7 @@ samples/server/petstore/kotlin-springboot/build
|
|||||||
samples/client/petstore/kotlin*/src/main/kotlin/test/
|
samples/client/petstore/kotlin*/src/main/kotlin/test/
|
||||||
samples/client/petstore/kotlin*/build/
|
samples/client/petstore/kotlin*/build/
|
||||||
samples/server/others/kotlin-server/jaxrs-spec/build/
|
samples/server/others/kotlin-server/jaxrs-spec/build/
|
||||||
|
samples/client/echo_api/kotlin-jvm-spring-3-restclient/build/
|
||||||
|
|
||||||
# haskell
|
# haskell
|
||||||
.stack-work
|
.stack-work
|
||||||
@@ -281,3 +283,6 @@ samples/openapi3/client/petstore/go/privatekey.pem
|
|||||||
|
|
||||||
## OCaml
|
## OCaml
|
||||||
samples/client/petstore/ocaml/_build/
|
samples/client/petstore/ocaml/_build/
|
||||||
|
|
||||||
|
# jetbrain http client
|
||||||
|
samples/client/jetbrains/adyen/checkout71/http/client/Apis/http-client.private.env.json
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<extension>
|
<extension>
|
||||||
<groupId>com.gradle</groupId>
|
<groupId>com.gradle</groupId>
|
||||||
<artifactId>gradle-enterprise-maven-extension</artifactId>
|
<artifactId>gradle-enterprise-maven-extension</artifactId>
|
||||||
<version>1.17</version>
|
<version>1.20.1</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.11.1</version>
|
<version>1.12.5</version>
|
||||||
</extension>
|
</extension>
|
||||||
</extensions>
|
</extensions>
|
||||||
|
|||||||
@@ -34,19 +34,12 @@
|
|||||||
</buildScan>
|
</buildScan>
|
||||||
<buildCache>
|
<buildCache>
|
||||||
<local>
|
<local>
|
||||||
<enabled>false</enabled>
|
<enabled>true</enabled>
|
||||||
</local>
|
</local>
|
||||||
<remote>
|
<remote>
|
||||||
<server>
|
<enabled>true</enabled>
|
||||||
<url>https://ge.openapi-generator.tech/cache/exp3/</url> <!-- adjust to your GE hostname, and note the trailing slash -->
|
<!-- Check credentials presence to avoid build cache errors on PR builds when credentials are not present -->
|
||||||
<allowUntrusted>true</allowUntrusted> <!-- set to false if a trusted certificate is configured for the GE server -->
|
<storeEnabled>#{isTrue(env['CI']) and isTrue(env['GRADLE_ENTERPRISE_ACCESS_KEY'])}</storeEnabled>
|
||||||
<credentials>
|
|
||||||
<username>${env.GRADLE_ENTERPRISE_CACHE_USERNAME}</username>
|
|
||||||
<password>${env.GRADLE_ENTERPRISE_CACHE_PASSWORD}</password>
|
|
||||||
</credentials>
|
|
||||||
</server>
|
|
||||||
<enabled>true</enabled> <!-- must be true for this experiment -->
|
|
||||||
<storeEnabled>#{env['CI'] != null}</storeEnabled> <!-- adjust to an env var that is always present only in your CI environment -->
|
|
||||||
</remote>
|
</remote>
|
||||||
</buildCache>
|
</buildCache>
|
||||||
</gradleEnterprise>
|
</gradleEnterprise>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ cache:
|
|||||||
- $HOME/samples/client/petstore/ruby/vendor/bundle
|
- $HOME/samples/client/petstore/ruby/vendor/bundle
|
||||||
- $HOME/samples/client/petstore/python/.venv/
|
- $HOME/samples/client/petstore/python/.venv/
|
||||||
- $HOME/samples/server/petstore/rust-server/target
|
- $HOME/samples/server/petstore/rust-server/target
|
||||||
|
- $HOME/samples/server/petstore/rust-axum/target
|
||||||
- $HOME/perl5
|
- $HOME/perl5
|
||||||
- $HOME/.cargo
|
- $HOME/.cargo
|
||||||
- $HOME/.pub-cache
|
- $HOME/.pub-cache
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ if [ "$NODE_INDEX" = "1" ]; then
|
|||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
java -version
|
||||||
|
|
||||||
|
sudo apt-get -y install cpanminus libmagic-dev
|
||||||
|
|
||||||
|
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
||||||
(cd samples/client/petstore/ruby && mvn integration-test)
|
(cd samples/client/petstore/ruby && mvn integration-test)
|
||||||
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
||||||
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
||||||
@@ -66,6 +69,7 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
(cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test)
|
(cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
||||||
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
||||||
|
(cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
||||||
@@ -89,24 +93,6 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
(cd samples/client/petstore/javascript-es6 && mvn integration-test)
|
(cd samples/client/petstore/javascript-es6 && mvn integration-test)
|
||||||
(cd samples/client/petstore/javascript-promise-es6 && mvn integration-test)
|
(cd samples/client/petstore/javascript-promise-es6 && mvn integration-test)
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "4" ]; then
|
|
||||||
echo "Running node $NODE_INDEX ..."
|
|
||||||
|
|
||||||
#wget https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tgz
|
|
||||||
#tar -xf Python-3.8.9.tgz
|
|
||||||
#cd Python-3.8.9
|
|
||||||
#./configure --enable-optimizations
|
|
||||||
#sudo make altinstall
|
|
||||||
pyenv install --list
|
|
||||||
pyenv install 3.7.12
|
|
||||||
#pyenv install 2.7.14 #python2 no longer supported
|
|
||||||
pyenv global 3.7.12
|
|
||||||
|
|
||||||
(cd samples/openapi3/client/petstore/python && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/python-pydantic-v1 && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/python-aiohttp && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/python-pydantic-v1-aiohttp && mvn integration-test)
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
java -version
|
||||||
|
|||||||
29
README.md
29
README.md
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.2.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.4.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)
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
:star::star::star: If you would like to contribute, please refer to [guidelines](CONTRIBUTING.md) and a list of [open tasks](https://github.com/openapitools/openapi-generator/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22).:star::star::star:
|
:star::star::star: If you would like to contribute, please refer to [guidelines](CONTRIBUTING.md) and a list of [open tasks](https://github.com/openapitools/openapi-generator/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22). :star::star::star:
|
||||||
|
|
||||||
:bangbang: To migrate from Swagger Codegen to OpenAPI Generator, please refer to the [migration guide](docs/migration-from-swagger-codegen.md) :bangbang:
|
:bangbang: To migrate from Swagger Codegen to OpenAPI Generator, please refer to the [migration guide](docs/migration-from-swagger-codegen.md) :bangbang:
|
||||||
|
|
||||||
@@ -64,6 +64,11 @@ If you find OpenAPI Generator useful for work, please consider asking your compa
|
|||||||
[<img src="https://openapi-generator.tech/img/companies/dmtech.jpeg" width="128" height="128">](https://www.dm-jobs.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/dmtech.jpeg" width="128" height="128">](https://www.dm-jobs.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/adyen.png" width="128" height="128">](https://adyen.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/adyen.png" width="128" height="128">](https://adyen.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
[<img src="https://openapi-generator.tech/img/companies/fornex.png" width="128" height="128">](https://fornex.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
[<img src="https://openapi-generator.tech/img/companies/fornex.png" width="128" height="128">](https://fornex.com/?utm_source=openapi_generator&utm_medium=github_webpage&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/alloyautomation.png" width="128" height="128">](https://runalloy.com/signup?utm_source=github&utm_medium=referral&utm_campaign=1524_openapigenerator)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/ssstwitter.png" width="128" height="128">](https://ssstwitter.com/?utm_source=github&utm_medium=referral&utm_campaign=sponsor)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/svix.png" width="128" height="128">](https://www.svix.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
|
||||||
|
[<img src="https://openapi-generator.tech/img/companies/litslink.png" width="128" height="128">](https://litslink.com/services/artificial-intelligence?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
|
||||||
|
|
||||||
@@ -78,7 +83,7 @@ OpenAPI Generator allows generation of API client libraries (SDK generation), se
|
|||||||
|
|
||||||
| | Languages/Frameworks |
|
| | Languages/Frameworks |
|
||||||
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| -------------------------------- |-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (9.x - 16.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo**, **Zapier** |
|
| **API clients** | **ActionScript**, **Ada**, **Apex**, **Bash**, **C**, **C#** (.net 2.0, 3.5 or later, .NET Standard 1.3 - 2.1, .NET Core 3.1, .NET 5.0. Libraries: RestSharp, GenericHost, HttpClient), **C++** (Arduino, cpp-restsdk, Qt5, Tizen, Unreal Engine 4), **Clojure**, **Crystal**, **Dart**, **Elixir**, **Elm**, **Eiffel**, **Erlang**, **Go**, **Groovy**, **Haskell** (http-client, Servant), **Java** (Apache HttpClient 4.x, Apache HttpClient 5.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign, RestTemplate, RESTEasy, Vertx, Google API Client Library for Java, Rest-assured, Spring 5 Web Client, MicroProfile Rest Client, Helidon), **Jetbrains HTTP Client**, **Julia**, **k6**, **Kotlin**, **Lua**, **N4JS**, **Nim**, **Node.js/JavaScript** (ES5, ES6, AngularJS with Google Closure Compiler annotations, Flow types, Apollo GraphQL DataStore), **Objective-C**, **OCaml**, **Perl**, **PHP**, **PowerShell**, **Python**, **R**, **Ruby**, **Rust** (hyper, reqwest, rust-server), **Scala** (akka, http4s, scalaz, sttp, swagger-async-httpclient, pekko), **Swift** (2.x, 3.x, 4.x, 5.x), **Typescript** (AngularJS, Angular (9.x - 17.x), Aurelia, Axios, Fetch, Inversify, jQuery, Nestjs, Node, redux-query, Rxjs), **XoJo**, **Zapier** |
|
||||||
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
| **Server stubs** | **Ada**, **C#** (ASP.NET Core, Azure Functions), **C++** (Pistache, Restbed, Qt5 QHTTPEngine), **Erlang**, **F#** (Giraffe), **Go** (net/http, Gin, Echo), **Haskell** (Servant, Yesod), **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, Jersey, RestEasy, Play Framework, [PKMST](https://github.com/ProKarma-Inc/pkmst-getting-started-examples), [Vert.x](https://vertx.io/), [Apache Camel](https://camel.apache.org/), [Helidon](https://helidon.io/)), **Julia**, **Kotlin** (Spring Boot, [Ktor](https://github.com/ktorio/ktor), [Vert.x](https://vertx.io/)), **PHP** (Laravel, Lumen, [Mezzio (fka Zend Expressive)](https://github.com/mezzio/mezzio), Slim, Silex, [Symfony](https://symfony.com/)), **Python** (FastAPI, Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Rust** ([rust-server](https://openapi-generator.tech/docs/generators/rust-server/)), **Scala** (Akka, [Finch](https://github.com/finagle/finch), [Lagom](https://github.com/lagom/lagom), [Play](https://www.playframework.com/), Scalatra) |
|
||||||
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
| **API documentation generators** | **HTML**, **Confluence Wiki**, **Asciidoc**, **Markdown**, **PlantUML** |
|
||||||
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
| **Configuration files** | [**Apache2**](https://httpd.apache.org/) |
|
||||||
@@ -120,8 +125,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.2.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.2.0-SNAPSHOT/) | 15.12.2023 | Minor release with breaking changes (with fallback) |
|
| 7.4.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.4.0-SNAPSHOT/) | 08.03.2024 | Minor release with breaking changes (with fallback) |
|
||||||
| [7.1.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.1.0) (latest stable release) | 13.11.2023 | Minor release with breaking changes (with fallback) |
|
| [7.3.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.3.0) (latest stable release) | 08.02.2024 | 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) |
|
||||||
@@ -184,16 +189,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.1.0/openapi-generator-cli-7.1.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.1.0/openapi-generator-cli-7.1.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar -O openapi-generator-cli.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
|
For **Windows** users, you will need to install [wget](http://gnuwin32.sourceforge.net/packages/wget.htm) or you can use Invoke-WebRequest in PowerShell (3.0+), e.g.
|
||||||
```
|
```
|
||||||
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.1.0/openapi-generator-cli-7.1.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.3.0/openapi-generator-cli-7.3.0.jar
|
||||||
```
|
```
|
||||||
|
|
||||||
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
After downloading the JAR, run `java -jar openapi-generator-cli.jar help` to show the usage.
|
||||||
@@ -477,7 +482,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
|
|||||||
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
-i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
|
||||||
-g java \
|
-g java \
|
||||||
-t modules/openapi-generator/src/main/resources/Java \
|
-t modules/openapi-generator/src/main/resources/Java \
|
||||||
--additional-properties artifactId=petstore-okhttp-gson,hideGenerationTimestamp:true \
|
--additional-properties artifactId=petstore-okhttp-gson,hideGenerationTimestamp=true \
|
||||||
-o samples/client/petstore/java/okhttp-gson
|
-o samples/client/petstore/java/okhttp-gson
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -617,10 +622,13 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [California State University, Northridge](https://www.csun.edu)
|
- [California State University, Northridge](https://www.csun.edu)
|
||||||
- [CAM](https://www.cam-inc.co.jp/)
|
- [CAM](https://www.cam-inc.co.jp/)
|
||||||
- [Camptocamp](https://www.camptocamp.com/en)
|
- [Camptocamp](https://www.camptocamp.com/en)
|
||||||
|
- [Carlsberg Group](https://www.carlsberggroup.com/)
|
||||||
|
- [Christopher Queen Consulting](https://www.christopherqueenconsulting.com/)
|
||||||
- [Cisco](https://www.cisco.com/)
|
- [Cisco](https://www.cisco.com/)
|
||||||
- [codecentric AG](https://www.codecentric.de/)
|
- [codecentric AG](https://www.codecentric.de/)
|
||||||
- [CoinAPI](https://www.coinapi.io/)
|
- [CoinAPI](https://www.coinapi.io/)
|
||||||
- [Commencis](https://www.commencis.com/)
|
- [Commencis](https://www.commencis.com/)
|
||||||
|
- [cronn GmbH](https://www.cronn.de/)
|
||||||
- [Crossover Health](https://crossoverhealth.com/)
|
- [Crossover Health](https://crossoverhealth.com/)
|
||||||
- [Cupix](https://www.cupix.com/)
|
- [Cupix](https://www.cupix.com/)
|
||||||
- [Datadog](https://www.datadoghq.com)
|
- [Datadog](https://www.datadoghq.com)
|
||||||
@@ -701,6 +709,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Splitit](https://www.splitit.com/)
|
- [Splitit](https://www.splitit.com/)
|
||||||
- [Stingray](http://www.stingray.com)
|
- [Stingray](http://www.stingray.com)
|
||||||
- [Suva](https://www.suva.ch/)
|
- [Suva](https://www.suva.ch/)
|
||||||
|
- [Svix](https://www.svix.com/)
|
||||||
- [Telstra](https://dev.telstra.com)
|
- [Telstra](https://dev.telstra.com)
|
||||||
- [Tencent](https://www.tencent.com)
|
- [Tencent](https://www.tencent.com)
|
||||||
- [The University of Aizu](https://www.u-aizu.ac.jp/en/)
|
- [The University of Aizu](https://www.u-aizu.ac.jp/en/)
|
||||||
@@ -917,6 +926,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- 2023-05-18 - [如何基于 Swagger 使用 OpenAPI Generator 生成 JMeter 脚本?](https://blog.51cto.com/u_15181572/6294974) by [高楼(Zee)](https://blog.51cto.com/u_15181572)
|
- 2023-05-18 - [如何基于 Swagger 使用 OpenAPI Generator 生成 JMeter 脚本?](https://blog.51cto.com/u_15181572/6294974) by [高楼(Zee)](https://blog.51cto.com/u_15181572)
|
||||||
- 2023-06-28 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
- 2023-06-28 - [Generate API contract using OpenAPI Generator Maven plugin](https://huongdanjava.com/generate-api-contract-using-openapi-generator-maven-plugin.html) by [Khanh Nguyen](https://huongdanjava.com/)
|
||||||
- 2023-06-30 - [Generate Client SDKs with OpenApi Generator in Springboot](https://medium.com/@ramavathvinayak/generate-client-sdks-with-openapi-generator-in-springboot-f9f012e73c0b) by [Vinayak Ramavath](https://medium.com/@ramavathvinayak)
|
- 2023-06-30 - [Generate Client SDKs with OpenApi Generator in Springboot](https://medium.com/@ramavathvinayak/generate-client-sdks-with-openapi-generator-in-springboot-f9f012e73c0b) by [Vinayak Ramavath](https://medium.com/@ramavathvinayak)
|
||||||
|
- 2023-12-10 - [UnityでOpenAPI Generatorを使う](https://www.youtube.com/watch?v=CbNwKVV5LRM) by [Soup Tori](https://www.youtube.com/@souptori8417)
|
||||||
|
|
||||||
## [6 - About Us](#table-of-contents)
|
## [6 - About Us](#table-of-contents)
|
||||||
|
|
||||||
@@ -1018,6 +1028,7 @@ Here is a list of template creators:
|
|||||||
* Scala (Akka): @cchafer
|
* Scala (Akka): @cchafer
|
||||||
* Scala (sttp): @chameleon82
|
* Scala (sttp): @chameleon82
|
||||||
* Scala (sttp4): @flsh86
|
* Scala (sttp4): @flsh86
|
||||||
|
* Scala (Pekko): @mickaelmagniez
|
||||||
* Swift: @tkqubo
|
* Swift: @tkqubo
|
||||||
* Swift 3: @hexelon
|
* Swift 3: @hexelon
|
||||||
* Swift 4: @ehyche
|
* Swift 4: @ehyche
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-generichost-net7.0-useDateTimeForDate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml
|
||||||
|
library: generichost
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{2E60EF87-DB0B-4D01-A36E-F5E90F7EC757}'
|
||||||
|
useDateTimeForDate: true
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# for .net standard
|
# for .net standard
|
||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient-net47
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net47
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# for .net standard
|
# for .net standard
|
||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient-net48
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net48
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp-restsharp-name-parameter-mappings
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-restsharp-name-parameter-mappings
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/name-parameter-mappings.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/name-parameter-mappings.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
nameMappings:
|
nameMappings:
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net7.0-useDateTimeForDate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{D0A67E81-4061-48EB-B4B8-C73BDF8B2D95}'
|
||||||
|
targetFramework: net7.0
|
||||||
|
useDateTimeForDate: true
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# for .net standard
|
# for .net standard
|
||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient-net5.0
|
outputDir: samples/client/petstore/csharp/OpenAPIClient-net5.0
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# for .net standard
|
# for .net standard
|
||||||
generatorName: csharp
|
generatorName: csharp
|
||||||
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
outputDir: samples/client/petstore/csharp/OpenAPIClient
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature-oneof-primitive-types.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/csharp
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
|||||||
6
bin/configs/go-echo-external-refs-test.yaml
Normal file
6
bin/configs/go-echo-external-refs-test.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: go
|
||||||
|
outputDir: samples/client/echo_api/go-external-refs
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/external-refs/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/go
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: go-gin-server
|
||||||
|
outputDir: samples/server/petstore/go-gin-api-server-interface-only
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/go-gin-server
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: petstoreserver
|
||||||
|
interfaceOnly: true
|
||||||
5
bin/configs/go-oneof-anyof-required.yaml
Normal file
5
bin/configs/go-oneof-anyof-required.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
generatorName: go
|
||||||
|
outputDir: samples/client/others/go/oneof-anyof-required
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-anyof-required.yaml
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -17,3 +17,6 @@ additionalProperties:
|
|||||||
enumNameMappings:
|
enumNameMappings:
|
||||||
s: LOWER_CASE_S
|
s: LOWER_CASE_S
|
||||||
S: UPPER_CASE_S
|
S: UPPER_CASE_S
|
||||||
|
operationIdNameMappings:
|
||||||
|
getArrayOfEnums: getFakeArrayofenums
|
||||||
|
fakeHealthGet: getFakeHealth
|
||||||
|
|||||||
8
bin/configs/java-resteasy-echo-api.yaml
Normal file
8
bin/configs/java-resteasy-echo-api.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/echo_api/java/resteasy
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-resteasy-echo
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
library: resteasy
|
||||||
7
bin/configs/java-wiremock.yaml
Normal file
7
bin/configs/java-wiremock.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: java-wiremock
|
||||||
|
outputDir: samples/server/petstore/java-wiremock
|
||||||
|
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-wiremock
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-wiremock
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: jetbrains-http-client
|
||||||
|
outputDir: samples/client/jetbrains/adyen/adyen/http/client
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutService-v71.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: jetbrains-http-client
|
||||||
|
outputDir: samples/client/jetbrains/adyen/checkoutbasic/http/client
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/CheckoutBasic.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
6
bin/configs/jetbrains-http-client-dota-new.yaml
Normal file
6
bin/configs/jetbrains-http-client-dota-new.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: jetbrains-http-client
|
||||||
|
outputDir: samples/client/opendota/jetbrains/http/client
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/opendota.json
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
6
bin/configs/jetbrains-http-client-github-new.yaml
Normal file
6
bin/configs/jetbrains-http-client-github-new.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: jetbrains-http-client
|
||||||
|
outputDir: samples/client/github/jetbrains/http/client
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jetbrains/github.json
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/jetbrains-http-client
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
generatorName: kotlin
|
|
||||||
outputDir: samples/client/petstore/kotlin-array-simple-string-jvm-okhttp3
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/issue_7199_array_simple_string.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
|
||||||
additionalProperties:
|
|
||||||
artifactId: kotlin-array-simple-string-jvm-okhttp3
|
|
||||||
library: jvm-okhttp3
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: kotlin
|
|
||||||
outputDir: samples/client/petstore/kotlin-default-values-jvm-okhttp3
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/issue_10865_default_values.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
|
||||||
additionalProperties:
|
|
||||||
artifactId: kotlin-default-values-jvm-okhttp3
|
|
||||||
library: jvm-okhttp3
|
|
||||||
sortParamsByRequiredFlag: false
|
|
||||||
@@ -6,3 +6,4 @@ additionalProperties:
|
|||||||
serializationLibrary: jackson
|
serializationLibrary: jackson
|
||||||
artifactId: kotlin-petstore-jackson
|
artifactId: kotlin-petstore-jackson
|
||||||
enumPropertyNaming: UPPERCASE
|
enumPropertyNaming: UPPERCASE
|
||||||
|
enumUnknownDefaultCase: "true"
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
generatorName: kotlin
|
|
||||||
outputDir: samples/client/petstore/kotlin-okhttp3
|
|
||||||
library: jvm-okhttp3
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
|
||||||
additionalProperties:
|
|
||||||
artifactId: kotlin-petstore-okhttp3
|
|
||||||
enumUnknownDefaultCase: true
|
|
||||||
10
bin/configs/kotlin-jvm-retrofit2-jackson.yaml
Normal file
10
bin/configs/kotlin-jvm-retrofit2-jackson.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-retrofit2-jackson
|
||||||
|
library: jvm-retrofit2
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
serializationLibrary: jackson
|
||||||
|
artifactId: kotlin-petstore-retrofit2-jackson
|
||||||
|
enumPropertyNaming: UPPERCASE
|
||||||
|
serializableModel: "true"
|
||||||
9
bin/configs/kotlin-jvm-spring-3-restclient-echo-api.yaml
Normal file
9
bin/configs/kotlin-jvm-spring-3-restclient-echo-api.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/echo_api/kotlin-jvm-spring-3-restclient
|
||||||
|
library: jvm-spring-restclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: jackson
|
||||||
|
useSpringBoot3: true
|
||||||
9
bin/configs/kotlin-jvm-spring-3-webclient-echo-api.yaml
Normal file
9
bin/configs/kotlin-jvm-spring-3-webclient-echo-api.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/echo_api/kotlin-jvm-spring-3-webclient
|
||||||
|
library: jvm-spring-restclient
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: jackson
|
||||||
|
useSpringBoot3: true
|
||||||
7
bin/configs/kotlin-server-javalin.yaml
Normal file
7
bin/configs/kotlin-server-javalin.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
generatorName: kotlin-server
|
||||||
|
outputDir: samples/server/petstore/kotlin-server/javalin
|
||||||
|
library: javalin5
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-server
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
5
bin/configs/kotlin-spring-boot-bigdecimal-default.yaml
Normal file
5
bin/configs/kotlin-spring-boot-bigdecimal-default.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-bigdecimal-default
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/issue_14584_bigdecimal_default.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
9
bin/configs/kotlin-spring-boot-request-cookie.yaml
Normal file
9
bin/configs/kotlin-spring-boot-request-cookie.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-request-cookie
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/petstore-with-fake-endpoints-for-testing-with-cookie.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
appendRequestToHandler: true
|
||||||
|
interfaceOnly: true
|
||||||
|
useSpringBoot3: true
|
||||||
9
bin/configs/kotlin-spring-boot-request.yaml
Normal file
9
bin/configs/kotlin-spring-boot-request.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-request
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
appendRequestToHandler: true
|
||||||
|
interfaceOnly: true
|
||||||
|
useSpringBoot3: true
|
||||||
10
bin/configs/manual/rust-axum-multipart-v3.yaml
Normal file
10
bin/configs/manual/rust-axum-multipart-v3.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/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-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
allowBlockingResponseSerialize: "true"
|
||||||
|
packageName: multipart-v3
|
||||||
|
enablePostProcessFile: true
|
||||||
10
bin/configs/manual/rust-axum-openapi-v3.yaml
Normal file
10
bin/configs/manual/rust-axum-openapi-v3.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/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-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
allowBlockingValidator: "true"
|
||||||
|
packageName: openapi-v3
|
||||||
|
enablePostProcessFile: true
|
||||||
9
bin/configs/manual/rust-axum-ops-v3.yaml
Normal file
9
bin/configs/manual/rust-axum-ops-v3.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/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-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: ops-v3
|
||||||
|
enablePostProcessFile: true
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/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-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: petstore-with-fake-endpoints-models-for-testing
|
||||||
|
publishRustRegistry: crates-io
|
||||||
|
enablePostProcessFile: true
|
||||||
9
bin/configs/manual/rust-axum-petstore.yaml
Normal file
9
bin/configs/manual/rust-axum-petstore.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/output/petstore
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: petstore
|
||||||
|
enablePostProcessFile: true
|
||||||
9
bin/configs/manual/rust-axum-ping-bearer-auth-v3.yaml
Normal file
9
bin/configs/manual/rust-axum-ping-bearer-auth-v3.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/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-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: ping-bearer-auth
|
||||||
|
enablePostProcessFile: true
|
||||||
9
bin/configs/manual/rust-axum-test.yaml
Normal file
9
bin/configs/manual/rust-axum-test.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust-axum
|
||||||
|
outputDir: samples/server/petstore/rust-axum/output/rust-axum-test
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/rust-server/rust-server-test.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust-axum
|
||||||
|
generateAliasAsModel: true
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: rust-server-test
|
||||||
|
enablePostProcessFile: true
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
generatorName: perl
|
generatorName: perl
|
||||||
outputDir: samples/client/petstore/perl
|
outputDir: samples/client/petstore/perl
|
||||||
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/perl/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/perl
|
templateDir: modules/openapi-generator/src/main/resources/perl
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
hideGenerationTimestamp: "true"
|
hideGenerationTimestamp: "true"
|
||||||
|
|||||||
@@ -6,3 +6,9 @@ library: asyncio
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
packageName: petstore_api
|
packageName: petstore_api
|
||||||
mapNumberTo: float
|
mapNumberTo: float
|
||||||
|
nameMappings:
|
||||||
|
_type: underscore_type
|
||||||
|
type_: type_with_underscore
|
||||||
|
modelNameMappings:
|
||||||
|
# The OpenAPI spec ApiResponse conflicts with the internal ApiResponse
|
||||||
|
ApiResponse: ModelApiResponse
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
generatorName: python
|
generatorName: python
|
||||||
outputDir: samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true
|
outputDir: samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
templateDir: modules/openapi-generator/src/main/resources/python
|
templateDir: modules/openapi-generator/src/main/resources/python
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
|||||||
@@ -10,3 +10,6 @@ additionalProperties:
|
|||||||
nameMappings:
|
nameMappings:
|
||||||
_type: underscore_type
|
_type: underscore_type
|
||||||
type_: type_with_underscore
|
type_: type_with_underscore
|
||||||
|
modelNameMappings:
|
||||||
|
# The OpenAPI spec ApiResponse conflicts with the internal ApiResponse
|
||||||
|
ApiResponse: ModelApiResponse
|
||||||
|
|||||||
6
bin/configs/r-echo-api.yaml
Normal file
6
bin/configs/r-echo-api.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
generatorName: r
|
||||||
|
outputDir: samples/client/echo_api/r
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/r
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
@@ -15,3 +15,5 @@ nameMappings:
|
|||||||
parameterNameMappings:
|
parameterNameMappings:
|
||||||
_type: underscore_type
|
_type: underscore_type
|
||||||
type_: type_with_underscore
|
type_: type_with_underscore
|
||||||
|
enumNameMappings:
|
||||||
|
delivered: SHIPPED
|
||||||
|
|||||||
9
bin/configs/rust-hyper-api-with-ref-param.yaml
Normal file
9
bin/configs/rust-hyper-api-with-ref-param.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/hyper/api-with-ref-param
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/api-with-ref-param.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: true
|
||||||
|
packageName: api-ref-param-hyper
|
||||||
|
|
||||||
8
bin/configs/rust-hyper-composed-oneof.yaml
Normal file
8
bin/configs/rust-hyper-composed-oneof.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/hyper/composed-oneof
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/composed-oneof.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: "false"
|
||||||
|
packageName: composed-oneof-hyper
|
||||||
8
bin/configs/rust-hyper-empty-object.yaml
Normal file
8
bin/configs/rust-hyper-empty-object.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/hyper/emptyObject
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/empty-object.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: "false"
|
||||||
|
packageName: empty-object-hyper
|
||||||
8
bin/configs/rust-hyper-oneOf-array-map-import.yaml
Normal file
8
bin/configs/rust-hyper-oneOf-array-map-import.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/hyper/oneOf-array-map
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOfArrayMapImport.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: false
|
||||||
|
packageName: oneof-array-map-hyper
|
||||||
8
bin/configs/rust-hyper-oneOf-reuseRef.yaml
Normal file
8
bin/configs/rust-hyper-oneOf-reuseRef.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/hyper/oneOf-reuseRef
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_reuseRef.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: false
|
||||||
|
packageName: oneof-reuse-ref-hyper
|
||||||
8
bin/configs/rust-hyper-oneOf.yaml
Normal file
8
bin/configs/rust-hyper-oneOf.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/hyper/oneOf
|
||||||
|
library: hyper
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneof_polymorphism_and_inheritance.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: false
|
||||||
|
packageName: oneof-hyper
|
||||||
9
bin/configs/rust-reqwest-api-with-ref-param.yaml
Normal file
9
bin/configs/rust-reqwest-api-with-ref-param.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/reqwest/api-with-ref-param
|
||||||
|
library: reqwest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/api-with-ref-param.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: true
|
||||||
|
packageName: api-ref-param-reqwest
|
||||||
|
|
||||||
8
bin/configs/rust-reqwest-composed-oneof.yaml
Normal file
8
bin/configs/rust-reqwest-composed-oneof.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/reqwest/composed-oneof
|
||||||
|
library: reqwest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/composed-oneof.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: "false"
|
||||||
|
packageName: composed-oneof-reqwest
|
||||||
8
bin/configs/rust-reqwest-empty-object.yaml
Normal file
8
bin/configs/rust-reqwest-empty-object.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: rust
|
||||||
|
outputDir: samples/client/others/rust/reqwest/emptyObject
|
||||||
|
library: reqwest
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/empty-object.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/rust
|
||||||
|
additionalProperties:
|
||||||
|
supportAsync: "false"
|
||||||
|
packageName: empty-object-reqwest
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user