mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-01-24 18:57:10 +00:00
Compare commits
253 Commits
ruby-githu
...
prepare.7.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82b1ae8b8f | ||
|
|
3645253b34 | ||
|
|
785cf7b59d | ||
|
|
5b0d407aee | ||
|
|
0ce21b4f3d | ||
|
|
51228436e0 | ||
|
|
ec0a63dcf3 | ||
|
|
9779468cdc | ||
|
|
fb2878cb23 | ||
|
|
a3d03bad09 | ||
|
|
6abe6ff1c4 | ||
|
|
a529769bf3 | ||
|
|
1722f5591b | ||
|
|
20136f4b9a | ||
|
|
f484aeac2c | ||
|
|
833d1d3d38 | ||
|
|
8e7fd3cfb9 | ||
|
|
149fdcb61f | ||
|
|
e1edb9e645 | ||
|
|
e4a26ce307 | ||
|
|
1d79f3671a | ||
|
|
09a5800771 | ||
|
|
a9f439f1c6 | ||
|
|
c5ebcda902 | ||
|
|
b06fdb5781 | ||
|
|
5f28987b17 | ||
|
|
0b296bf50f | ||
|
|
39da542b99 | ||
|
|
6d7e8c69a0 | ||
|
|
7ccd039a7b | ||
|
|
8f8001ea1a | ||
|
|
5c28ab4db2 | ||
|
|
104c57319f | ||
|
|
cfcacf3074 | ||
|
|
5a6fcd3bd5 | ||
|
|
3b232f6a90 | ||
|
|
8ad6fff26f | ||
|
|
7cc0a7adac | ||
|
|
74f7351718 | ||
|
|
d59a54a18a | ||
|
|
c91df9edd4 | ||
|
|
b86213bea3 | ||
|
|
ce21b9e503 | ||
|
|
38c622019e | ||
|
|
74c551cd88 | ||
|
|
8d17f662de | ||
|
|
4f9f14a7d8 | ||
|
|
da778c46b0 | ||
|
|
abea33c32a | ||
|
|
7a431db7ef | ||
|
|
f125e1072f | ||
|
|
9a6f14ad47 | ||
|
|
2d3082a1b7 | ||
|
|
18b359ba17 | ||
|
|
39ea9b6da7 | ||
|
|
fc5ccdf3a5 | ||
|
|
bf5f7b0d6b | ||
|
|
41f97d8187 | ||
|
|
5a2503dc49 | ||
|
|
1e7ca08ccc | ||
|
|
c0d98864e0 | ||
|
|
788f67dd01 | ||
|
|
7b83462a83 | ||
|
|
453997bd16 | ||
|
|
e9bc44bebe | ||
|
|
7a48bd8ef5 | ||
|
|
1689d7b5b6 | ||
|
|
08858a91e6 | ||
|
|
e9c842f150 | ||
|
|
41c54e8122 | ||
|
|
b8df8e7f22 | ||
|
|
578bdbe679 | ||
|
|
1b557790e6 | ||
|
|
3d6e9d5693 | ||
|
|
b9d4b56d1c | ||
|
|
ea62c676c9 | ||
|
|
6be8fb3047 | ||
|
|
6e0fe098f1 | ||
|
|
41024dc23b | ||
|
|
9116411dac | ||
|
|
1c447a1605 | ||
|
|
4a7e0c9bdc | ||
|
|
65f99ebb21 | ||
|
|
5d12e71b40 | ||
|
|
5711f391e9 | ||
|
|
ddfcc95b61 | ||
|
|
c5e0d0840b | ||
|
|
8a4246cbaf | ||
|
|
a1b962d0b6 | ||
|
|
3b4494d751 | ||
|
|
2c4c24728f | ||
|
|
5ad2f84650 | ||
|
|
74be550d94 | ||
|
|
554e10dc34 | ||
|
|
6699ecd9d2 | ||
|
|
9655c22ff6 | ||
|
|
6210db308e | ||
|
|
e86daf9059 | ||
|
|
c52cc1f275 | ||
|
|
2c7efda060 | ||
|
|
107d72c5f5 | ||
|
|
a52e902cb5 | ||
|
|
547eee1970 | ||
|
|
c1c74c0ec8 | ||
|
|
7690545276 | ||
|
|
ecb1e9e2cb | ||
|
|
039de98d4f | ||
|
|
6892768009 | ||
|
|
fd72d4d521 | ||
|
|
1e3f6d0ed9 | ||
|
|
886e4a6dd0 | ||
|
|
57d304f3f6 | ||
|
|
59f7d09c2e | ||
|
|
ec8ca20dec | ||
|
|
2ab5365fb2 | ||
|
|
2326eef7cf | ||
|
|
d318752478 | ||
|
|
86ff873a03 | ||
|
|
28e2254e7a | ||
|
|
69da1ea470 | ||
|
|
b1f2a67bc3 | ||
|
|
48648a4051 | ||
|
|
a6c753ea69 | ||
|
|
81285b75e4 | ||
|
|
c596bb7d8a | ||
|
|
ce338a4a23 | ||
|
|
fb444bf15e | ||
|
|
a144678459 | ||
|
|
95b9438fd9 | ||
|
|
7beb8a6102 | ||
|
|
2107686d3d | ||
|
|
7486f12e62 | ||
|
|
600c051fa5 | ||
|
|
f37b8cce58 | ||
|
|
64c8711356 | ||
|
|
65359d8050 | ||
|
|
7ce0096e73 | ||
|
|
0ae50f5a10 | ||
|
|
3347204425 | ||
|
|
93d7821281 | ||
|
|
1e614d4b96 | ||
|
|
66b742038a | ||
|
|
9b8ab659ac | ||
|
|
f9d2b8b579 | ||
|
|
0120486e62 | ||
|
|
44075c9edf | ||
|
|
3d4f29eac7 | ||
|
|
351b601368 | ||
|
|
2c248e6c93 | ||
|
|
68b0dfe6d1 | ||
|
|
31e462dc3e | ||
|
|
74488fa3c3 | ||
|
|
8c54f18f7c | ||
|
|
57d12811ef | ||
|
|
676efae183 | ||
|
|
a4d05b38f5 | ||
|
|
75ae04ecfd | ||
|
|
808d106e0c | ||
|
|
9d810e0fbb | ||
|
|
91a499b8c6 | ||
|
|
eda2e67b94 | ||
|
|
8643bc1d66 | ||
|
|
2b22d172da | ||
|
|
d605afeef5 | ||
|
|
6eff628139 | ||
|
|
1d071288f8 | ||
|
|
816befc466 | ||
|
|
3d00fd2adc | ||
|
|
00d16496c8 | ||
|
|
57752d190c | ||
|
|
6572d5d9a6 | ||
|
|
c15ba67fc9 | ||
|
|
63ddce0c1b | ||
|
|
01139e6963 | ||
|
|
e7dae1a81e | ||
|
|
4e7bba659b | ||
|
|
88bba259e9 | ||
|
|
8c85e3cedc | ||
|
|
d840c495c4 | ||
|
|
7c000687e4 | ||
|
|
23a2aafe91 | ||
|
|
2afe7d29cd | ||
|
|
6ede03d546 | ||
|
|
ee85775afd | ||
|
|
94e8997cc7 | ||
|
|
552ab4c6d5 | ||
|
|
2b00bab60a | ||
|
|
ccd43a5ce4 | ||
|
|
592c262277 | ||
|
|
40b9d69d5a | ||
|
|
323f978674 | ||
|
|
4fe1c4ac73 | ||
|
|
ecaf3ea48a | ||
|
|
ce1e9e0866 | ||
|
|
fc12a1b63a | ||
|
|
bce0ea65fe | ||
|
|
117042aa44 | ||
|
|
c680f39ad7 | ||
|
|
211f51702d | ||
|
|
a4a24a8168 | ||
|
|
cbb27163a0 | ||
|
|
fdbabee87e | ||
|
|
cdd120d976 | ||
|
|
9d110fcb6b | ||
|
|
57324efd48 | ||
|
|
21d29dacc2 | ||
|
|
c27f9c3ebc | ||
|
|
486e0c5e61 | ||
|
|
4bedcb754b | ||
|
|
89b0bc48fa | ||
|
|
0b9172ef5c | ||
|
|
b199901aab | ||
|
|
941a5ccf13 | ||
|
|
5f13c53825 | ||
|
|
1240d103ff | ||
|
|
42af4f9529 | ||
|
|
81a3488556 | ||
|
|
08da0abfca | ||
|
|
fb277f82d5 | ||
|
|
6b1b5cc4c5 | ||
|
|
fd84c8fbd6 | ||
|
|
f092f72cc5 | ||
|
|
37cac71f87 | ||
|
|
b8d805980a | ||
|
|
b49ec6e033 | ||
|
|
4352a2fcd0 | ||
|
|
6f3dacafc4 | ||
|
|
2d2e1c41c4 | ||
|
|
a955bead08 | ||
|
|
d7b79a26c6 | ||
|
|
1d7d399ec2 | ||
|
|
4121803442 | ||
|
|
602549cb36 | ||
|
|
1c082c7287 | ||
|
|
7ab9364094 | ||
|
|
28e7e7f2eb | ||
|
|
e8a688a724 | ||
|
|
ddb15d4b9d | ||
|
|
885ea07b17 | ||
|
|
c0b72ee970 | ||
|
|
ee76a05def | ||
|
|
30096d63b7 | ||
|
|
44a3be170f | ||
|
|
e38f6c0580 | ||
|
|
2afac1aa28 | ||
|
|
bab5ca2452 | ||
|
|
c1931c10da | ||
|
|
d8d9744154 | ||
|
|
dc0d5c6839 | ||
|
|
89edad5b8a | ||
|
|
258d971f42 | ||
|
|
5e8dcc9f07 | ||
|
|
67b24330c9 |
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,6 +1,6 @@
|
|||||||
<!--
|
<!--
|
||||||
Please follow the issue template below for bug reports and feature requests.
|
Please follow the issue template below for bug reports and feature requests.
|
||||||
Also please indicate in the issue title which language/library is concerned. Eg: [JAVA] Bug generating foo with bar
|
Also please indicate in the issue title which language/library is concerned. E.g.: [JAVA] Bug generating foo with bar
|
||||||
-->
|
-->
|
||||||
|
|
||||||
##### Description
|
##### Description
|
||||||
|
|||||||
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -18,7 +18,7 @@ assignees: ''
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
Please follow the issue template below for bug reports.
|
Please follow the issue template below for bug reports.
|
||||||
Also please indicate in the issue title which language/library is concerned. Eg: [BUG][JAVA] Bug generating foo with bar
|
Also please indicate in the issue title which language/library is concerned. E.g.: [BUG][JAVA] Bug generating foo with bar
|
||||||
-->
|
-->
|
||||||
|
|
||||||
##### Description
|
##### Description
|
||||||
|
|||||||
2
.github/workflows/docker-release.yml
vendored
2
.github/workflows/docker-release.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.m2
|
path: ~/.m2
|
||||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
|||||||
3
.github/workflows/gradle-plugin-tests.yaml
vendored
3
.github/workflows/gradle-plugin-tests.yaml
vendored
@@ -19,8 +19,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
.github/workflows/gradle-test.yaml
vendored
5
.github/workflows/gradle-test.yaml
vendored
@@ -37,16 +37,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
# Cache Gradle Dependencies
|
# Cache Gradle Dependencies
|
||||||
- name: Setup Gradle Dependencies Cache
|
- name: Setup Gradle Dependencies Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
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@v4
|
uses: actions/cache@v5
|
||||||
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') }}
|
||||||
|
|||||||
16
.github/workflows/linux.yaml
vendored
16
.github/workflows/linux.yaml
vendored
@@ -27,15 +27,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v5
|
||||||
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@v4
|
- uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -44,12 +45,12 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
- uses: gradle/actions/setup-gradle@v5
|
||||||
with:
|
with:
|
||||||
gradle-version: '8.14.3'
|
gradle-version: '8.14.3'
|
||||||
|
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.19.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
@@ -61,7 +62,7 @@ jobs:
|
|||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
|
|
||||||
- name: Upload Maven build artifact
|
- name: Upload Maven build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
|
if: matrix.java == '11' && matrix.os == 'ubuntu-latest'
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
@@ -91,12 +92,13 @@ jobs:
|
|||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
- name: Setup Maven
|
- name: Setup Maven
|
||||||
uses: s4u/setup-maven-action@v1.18.0
|
uses: s4u/setup-maven-action@v1.19.0
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
cache: gradle
|
||||||
- name: Download build artifact
|
- name: Download build artifact
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: artifact
|
name: artifact
|
||||||
- name: Run Ensures Script
|
- name: Run Ensures Script
|
||||||
|
|||||||
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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/maven-release.yml
vendored
2
.github/workflows/maven-release.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
- name: Cache Maven packages
|
- name: Cache Maven packages
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: ~/.m2
|
path: ~/.m2
|
||||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||||
|
|||||||
14
.github/workflows/openapi-generator.yaml
vendored
14
.github/workflows/openapi-generator.yaml
vendored
@@ -21,8 +21,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -41,7 +42,7 @@ jobs:
|
|||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- run: ls -la modules/openapi-generator-cli/target
|
- run: ls -la modules/openapi-generator-cli/target
|
||||||
- name: Upload openapi-generator-cli.jar artifact
|
- name: Upload openapi-generator-cli.jar artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
path: modules/openapi-generator-cli/target/openapi-generator-cli.jar
|
||||||
@@ -59,8 +60,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -79,7 +81,7 @@ jobs:
|
|||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
|
||||||
- name: Publish unit test reports
|
- name: Publish unit test reports
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: surefire-test-results
|
name: surefire-test-results
|
||||||
path: '**/surefire-reports/TEST-*.xml'
|
path: '**/surefire-reports/TEST-*.xml'
|
||||||
@@ -97,7 +99,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Download openapi-generator-cli.jar artifact
|
- name: Download openapi-generator-cli.jar artifact
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target
|
path: modules/openapi-generator-cli/target
|
||||||
@@ -136,7 +138,7 @@ jobs:
|
|||||||
java-version: 11
|
java-version: 11
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Download openapi-generator-cli.jar artifact
|
- name: Download openapi-generator-cli.jar artifact
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: openapi-generator-cli.jar
|
name: openapi-generator-cli.jar
|
||||||
path: modules/openapi-generator-cli/target
|
path: modules/openapi-generator-cli/target
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
- samples/server/petstore/aspnet/fastendpoints-useValidators
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
2
.github/workflows/samples-clojure.yaml
vendored
2
.github/workflows/samples-clojure.yaml
vendored
@@ -34,7 +34,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
37
.github/workflows/samples-crystal.yaml
vendored
Normal file
37
.github/workflows/samples-crystal.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Samples Crystal clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/crystal/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/crystal/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build Crystal projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/crystal/
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Install Crystal
|
||||||
|
uses: crystal-lang/install-crystal@v1
|
||||||
|
- name: Shards Install
|
||||||
|
run: shards install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
- name: Run tests
|
||||||
|
run: crystal spec
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: pub-cache
|
cache-name: pub-cache
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-dotnet-fx.yaml
vendored
2
.github/workflows/samples-dotnet-fx.yaml
vendored
@@ -11,7 +11,7 @@ on:
|
|||||||
- samples/client/petstore/csharp/generichost/net4.8/**
|
- samples/client/petstore/csharp/generichost/net4.8/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net Framework projects
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/
|
- samples/client/petstore/csharp/restsharp/standard2.0/Petstore/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ on:
|
|||||||
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
|
- samples/client/petstore/csharp/unityWebRequest/standard2.0/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net Standard projects
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
# - samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 3.1.*
|
dotnet-version: 3.1.*
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
59
.github/workflows/samples-dotnet10.yaml
vendored
Normal file
59
.github/workflows/samples-dotnet10.yaml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: Samples C# .Net 10 Clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/**
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/**
|
||||||
|
- samples/client/petstore/csharp/httpclient/net10/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net10/**
|
||||||
|
- samples/client/petstore/csharp/unityWebRequest/net10/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/**
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/**
|
||||||
|
- samples/client/petstore/csharp/httpclient/net10/**
|
||||||
|
- samples/client/petstore/csharp/restsharp/net10/**
|
||||||
|
- samples/client/petstore/csharp/unityWebRequest/net10/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build .Net 10 projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
sample:
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/ComposedEnum
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/Tags
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/HelloWorld
|
||||||
|
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/AllOf
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/AnyOf
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/FormModels
|
||||||
|
# - samples/client/petstore/csharp/generichost/net10/ManualPetstoreTests
|
||||||
|
# - samples/client/petstore/csharp/generichost/net10/ManualSourceGenerationTests
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/NullReferenceTypes
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/OneOf
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/Petstore
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/SourceGeneration
|
||||||
|
- samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate
|
||||||
|
# restsharp
|
||||||
|
- samples/client/petstore/csharp/restsharp/net10/EnumMappings
|
||||||
|
# httpclient
|
||||||
|
- samples/client/petstore/csharp/httpclient/net10/Petstore
|
||||||
|
- samples/client/petstore/csharp/httpclient/net10/Petstore-nonPublicApi
|
||||||
|
# unity
|
||||||
|
# - samples/client/petstore/csharp/unityWebRequest/net10/Petstore
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- uses: actions/setup-dotnet@v5.0.0
|
||||||
|
with:
|
||||||
|
dotnet-version: '10.x'
|
||||||
|
- name: Build
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: dotnet test Org.OpenAPITools.sln
|
||||||
@@ -25,7 +25,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
- samples/server/petstore/aspnetcore-6.0-useSwashBuckle
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '6.0.x'
|
dotnet-version: '6.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
2
.github/workflows/samples-dotnet7-client.yml
vendored
2
.github/workflows/samples-dotnet7-client.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
- samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0.x'
|
dotnet-version: '7.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
- samples/client/echo_api/csharp/restsharp/net8/EchoApi
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Run echo server
|
- name: Run echo server
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
- samples/client/petstore/csharp/restsharp/net8/useVirtualForHooks/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
- samples/server/petstore/aspnetcore-8.0-use-centralized-package-version-management
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
4
.github/workflows/samples-dotnet8.yaml
vendored
4
.github/workflows/samples-dotnet8.yaml
vendored
@@ -15,7 +15,7 @@ on:
|
|||||||
- samples/client/petstore/csharp/unityWebRequest/net8/**
|
- samples/client/petstore/csharp/unityWebRequest/net8/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net 8 projects
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
- samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
13
.github/workflows/samples-dotnet9.yaml
vendored
13
.github/workflows/samples-dotnet9.yaml
vendored
@@ -3,31 +3,24 @@ name: Samples C# .Net 9 Clients
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/csharp/generichost/latest/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/**
|
- samples/client/petstore/csharp/generichost/net9/**
|
||||||
- samples/client/petstore/csharp/httpclient/net9/**
|
- samples/client/petstore/csharp/httpclient/net9/**
|
||||||
- samples/client/petstore/csharp/restsharp/net9/**
|
- samples/client/petstore/csharp/restsharp/net9/**
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/csharp/generichost/latest/**
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/**
|
- samples/client/petstore/csharp/generichost/net9/**
|
||||||
- samples/client/petstore/csharp/httpclient/net9/**
|
- samples/client/petstore/csharp/httpclient/net9/**
|
||||||
- samples/client/petstore/csharp/restsharp/net9/**
|
- samples/client/petstore/csharp/restsharp/net9/**
|
||||||
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
- samples/client/petstore/csharp/unityWebRequest/net9/**
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build .Net projects
|
name: Build .Net 9 projects
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/csharp/generichost/latest/ComposedEnum
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/Tags
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/HelloWorld
|
|
||||||
- samples/client/petstore/csharp/generichost/latest/OneOfList
|
|
||||||
- samples/client/petstore/csharp/generichost/net9/AllOf
|
- samples/client/petstore/csharp/generichost/net9/AllOf
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
- samples/client/petstore/csharp/generichost/net9/AnyOf
|
||||||
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
- samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare
|
||||||
@@ -48,9 +41,9 @@ jobs:
|
|||||||
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
#- samples/client/petstore/csharp/unityWebRequest/net9/Petstore
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-dotnet@v5.0.0
|
- uses: actions/setup-dotnet@v5.0.1
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.101'
|
dotnet-version: '9.0.x'
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: dotnet build Org.OpenAPITools.sln
|
run: dotnet build Org.OpenAPITools.sln
|
||||||
|
|||||||
7
.github/workflows/samples-go.yaml
vendored
7
.github/workflows/samples-go.yaml
vendored
@@ -6,13 +6,13 @@ on:
|
|||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
- 'samples/server/petstore/go-chi-server/**'
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
- 'samples/server/others/go-server/no-body-path-params/**'
|
- 'samples/server/others/go-server/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- 'samples/server/petstore/go-echo-server/**'
|
- 'samples/server/petstore/go-echo-server/**'
|
||||||
- 'samples/server/petstore/go-api-server/**'
|
- 'samples/server/petstore/go-api-server/**'
|
||||||
- 'samples/server/petstore/go-chi-server/**'
|
- 'samples/server/petstore/go-chi-server/**'
|
||||||
- 'samples/server/others/go-server/no-body-path-params/**'
|
- 'samples/server/others/go-server/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -26,6 +26,7 @@ jobs:
|
|||||||
- samples/server/petstore/go-api-server/
|
- samples/server/petstore/go-api-server/
|
||||||
- samples/server/petstore/go-chi-server/
|
- samples/server/petstore/go-chi-server/
|
||||||
- samples/server/others/go-server/no-body-path-params/
|
- samples/server/others/go-server/no-body-path-params/
|
||||||
|
- samples/server/others/go-server/optional-body/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-go@v6
|
- uses: actions/setup-go@v6
|
||||||
@@ -58,4 +59,4 @@ jobs:
|
|||||||
go mod tidy
|
go mod tidy
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: go test ./samples_tests -v
|
run: go test ./samples_tests -v
|
||||||
|
|||||||
3
.github/workflows/samples-groovy.yaml
vendored
3
.github/workflows/samples-groovy.yaml
vendored
@@ -26,8 +26,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -28,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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -29,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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -35,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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
11
.github/workflows/samples-java-client-jdk11.yaml
vendored
11
.github/workflows/samples-java-client-jdk11.yaml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
- samples/client/petstore/jaxrs-cxf-client/**
|
- samples/client/petstore/jaxrs-cxf-client/**
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client-swagger2/**
|
||||||
- samples/client/petstore/java-micronaut-client/**
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
@@ -27,6 +28,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'samples/client/petstore/java/**'
|
- 'samples/client/petstore/java/**'
|
||||||
- samples/client/petstore/jaxrs-cxf-client/**
|
- samples/client/petstore/jaxrs-cxf-client/**
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client-swagger2/**
|
||||||
- samples/client/petstore/java-micronaut-client/**
|
- samples/client/petstore/java-micronaut-client/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters/**
|
||||||
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/**
|
||||||
@@ -54,10 +56,12 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
# clients
|
# clients
|
||||||
|
- samples/client/petstore/jaxrs-cxf-client-swagger2
|
||||||
- samples/client/petstore/jaxrs-cxf-client
|
- samples/client/petstore/jaxrs-cxf-client
|
||||||
- samples/client/petstore/java/native
|
- samples/client/petstore/java/native
|
||||||
- samples/client/petstore/java/native-async
|
- samples/client/petstore/java/native-async
|
||||||
- samples/client/petstore/java/native-jakarta
|
- samples/client/petstore/java/native-jakarta
|
||||||
|
- samples/client/petstore/java/native-useGzipFeature
|
||||||
- samples/client/petstore/java/retrofit2
|
- samples/client/petstore/java/retrofit2
|
||||||
- samples/client/petstore/java/retrofit2rx2
|
- samples/client/petstore/java/retrofit2rx2
|
||||||
- samples/client/petstore/java/retrofit2rx3
|
- samples/client/petstore/java/retrofit2rx3
|
||||||
@@ -115,8 +119,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -128,7 +133,7 @@ jobs:
|
|||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package --no-transfer-progress
|
||||||
|
|
||||||
- name: Cache gradle dependencies
|
- name: Cache gradle dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-caches
|
cache-name: gradle-caches
|
||||||
with:
|
with:
|
||||||
@@ -136,7 +141,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
- name: Cache gradle wrapper
|
- name: Cache gradle wrapper
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-wrapper
|
cache-name: gradle-wrapper
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -42,8 +42,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -56,7 +57,7 @@ jobs:
|
|||||||
run: mvn clean package --no-transfer-progress
|
run: mvn clean package --no-transfer-progress
|
||||||
|
|
||||||
- name: Cache gradle dependencies
|
- name: Cache gradle dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-caches
|
cache-name: gradle-caches
|
||||||
with:
|
with:
|
||||||
@@ -64,7 +65,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/*.gradle', '**/*.gradle.kts') }}
|
||||||
|
|
||||||
- name: Cache gradle wrapper
|
- name: Cache gradle wrapper
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: gradle-wrapper
|
cache-name: gradle-wrapper
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-java-dubbo.yaml
vendored
2
.github/workflows/samples-java-dubbo.yaml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -32,7 +32,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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -33,7 +33,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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-java-sbt.yaml
vendored
2
.github/workflows/samples-java-sbt.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Setup sbt launcher
|
- name: Setup sbt launcher
|
||||||
uses: sbt/setup-sbt@v1
|
uses: sbt/setup-sbt@v1
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-java-wiremock.yaml
vendored
2
.github/workflows/samples-java-wiremock.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
51
.github/workflows/samples-javascript.yaml
vendored
Normal file
51
.github/workflows/samples-javascript.yaml
vendored
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
name: Samples JS clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
#- samples/client/petstore/javascript-flowtyped/**
|
||||||
|
- samples/client/petstore/javascript-es6/**
|
||||||
|
- samples/client/petstore/javascript-promise-es6/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
#- samples/client/petstore/javascript-flowtyped/**
|
||||||
|
- samples/client/petstore/javascript-es6/**
|
||||||
|
- samples/client/petstore/javascript-promise-es6/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node:
|
||||||
|
- "18.x"
|
||||||
|
- "20.x"
|
||||||
|
sample:
|
||||||
|
# clients
|
||||||
|
- samples/client/petstore/javascript-es6/
|
||||||
|
- samples/client/petstore/javascript-promise-es6/
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Add hosts to /etc/hosts
|
||||||
|
run: |
|
||||||
|
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
||||||
|
- name: Use Node.js 20.x
|
||||||
|
uses: actions/setup-node@v5
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
cache: 'npm' # Or 'yarn'
|
||||||
|
- name: npm install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: npm install
|
||||||
|
- name: npm test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: npm test
|
||||||
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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
10
.github/workflows/samples-jaxrs.yaml
vendored
10
.github/workflows/samples-jaxrs.yaml
vendored
@@ -20,10 +20,7 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs/jersey2-useTags
|
- samples/server/petstore/jaxrs/jersey2-useTags
|
||||||
- samples/server/petstore/jaxrs-jersey
|
- samples/server/petstore/jaxrs-jersey
|
||||||
- samples/server/petstore/jaxrs-spec
|
- samples/server/petstore/jaxrs-spec
|
||||||
- samples/server/petstore/jaxrs-spec-interface
|
- samples/server/petstore/jaxrs-spec-withxml
|
||||||
- samples/server/petstore/jaxrs-spec-interface-response
|
|
||||||
- samples/server/petstore/jaxrs-jersey
|
|
||||||
- samples/server/petstore/jaxrs-spec
|
|
||||||
- samples/server/petstore/jaxrs-spec-interface
|
- samples/server/petstore/jaxrs-spec-interface
|
||||||
- samples/server/petstore/jaxrs-spec-interface-response
|
- samples/server/petstore/jaxrs-spec-interface-response
|
||||||
- samples/server/petstore/jaxrs-datelib-j8
|
- samples/server/petstore/jaxrs-datelib-j8
|
||||||
@@ -37,6 +34,9 @@ jobs:
|
|||||||
- samples/server/petstore/jaxrs-cxf-cdi
|
- samples/server/petstore/jaxrs-cxf-cdi
|
||||||
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
- samples/server/petstore/jaxrs-cxf-non-spring-app
|
||||||
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
- samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations
|
||||||
|
- samples/server/petstore/jaxrs-spec-swagger-annotations
|
||||||
|
- samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta
|
||||||
|
- samples/server/petstore/jaxrs-spec-swagger-v3-annotations
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
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
@@ -64,7 +64,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-jdk21.yaml
vendored
2
.github/workflows/samples-jdk21.yaml
vendored
@@ -37,7 +37,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 21
|
java-version: 21
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
8
.github/workflows/samples-kotlin-client.yaml
vendored
8
.github/workflows/samples-kotlin-client.yaml
vendored
@@ -29,7 +29,6 @@ jobs:
|
|||||||
# needs Android configured
|
# needs Android configured
|
||||||
#- samples/client/petstore/kotlin-json-request-string
|
#- samples/client/petstore/kotlin-json-request-string
|
||||||
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
|
- samples/client/petstore/kotlin-jvm-okhttp4-coroutines
|
||||||
- samples/client/petstore/kotlin-jvm-volley
|
|
||||||
- samples/client/petstore/kotlin-moshi-codegen
|
- samples/client/petstore/kotlin-moshi-codegen
|
||||||
- samples/client/petstore/kotlin-multiplatform
|
- samples/client/petstore/kotlin-multiplatform
|
||||||
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
|
- samples/client/petstore/kotlin-multiplatform-kotlinx-datetime
|
||||||
@@ -44,12 +43,11 @@ jobs:
|
|||||||
- 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-array-integer-enum
|
||||||
- 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-multiplatform
|
- samples/client/petstore/kotlin-default-values-multiplatform
|
||||||
- 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-multiplatform
|
- samples/client/petstore/kotlin-array-simple-string-multiplatform
|
||||||
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
|
- samples/client/petstore/kotlin-bigdecimal-default-multiplatform
|
||||||
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
- samples/client/petstore/kotlin-bigdecimal-default-okhttp4
|
||||||
@@ -71,14 +69,16 @@ jobs:
|
|||||||
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
- samples/client/others/kotlin-jvm-okhttp-path-comments
|
||||||
- samples/client/others/kotlin-integer-enum
|
- samples/client/others/kotlin-integer-enum
|
||||||
- samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization
|
- samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization
|
||||||
|
- samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
||||||
- 'samples/server/petstore/kotlin-springboot-*/**'
|
- 'samples/server/petstore/kotlin-springboot-*/**'
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
||||||
|
- 'samples/server/petstore/kotlin-spring-declarative*/**'
|
||||||
# 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:
|
||||||
@@ -17,6 +18,7 @@ on:
|
|||||||
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
- 'samples/server/petstore/kotlin-server-modelMutable/**'
|
||||||
- 'samples/server/petstore/kotlin-springboot-*/**'
|
- 'samples/server/petstore/kotlin-springboot-*/**'
|
||||||
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
|
||||||
|
- 'samples/server/petstore/kotlin-spring-declarative*/**'
|
||||||
# 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/**
|
||||||
|
|
||||||
@@ -34,6 +36,8 @@ jobs:
|
|||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
- samples/server/petstore/kotlin-server-required-and-nullable-properties
|
||||||
- samples/server/petstore/kotlin-springboot-3
|
- samples/server/petstore/kotlin-springboot-3
|
||||||
|
- samples/server/petstore/kotlin-springboot-3-no-response-entity
|
||||||
|
- samples/server/petstore/kotlin-springboot-additionalproperties
|
||||||
- samples/server/petstore/kotlin-springboot-delegate-nodefaults
|
- samples/server/petstore/kotlin-springboot-delegate-nodefaults
|
||||||
- samples/server/petstore/kotlin-springboot-request-cookie
|
- samples/server/petstore/kotlin-springboot-request-cookie
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
@@ -43,6 +47,10 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
- samples/server/petstore/kotlin-server/ktor2
|
||||||
- samples/server/petstore/kotlin-misk
|
- samples/server/petstore/kotlin-misk
|
||||||
|
- samples/server/petstore/kotlin-spring-declarative-interface
|
||||||
|
- samples/server/petstore/kotlin-spring-declarative-interface-reactive-coroutines
|
||||||
|
- samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped
|
||||||
|
- samples/server/petstore/kotlin-spring-declarative-interface-wrapped
|
||||||
# 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:
|
||||||
@@ -51,8 +59,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -67,4 +76,4 @@ jobs:
|
|||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
|
|||||||
@@ -32,8 +32,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
10
.github/workflows/samples-kotlin-server.yaml
vendored
10
.github/workflows/samples-kotlin-server.yaml
vendored
@@ -29,6 +29,8 @@ jobs:
|
|||||||
sample:
|
sample:
|
||||||
# server
|
# server
|
||||||
- samples/server/petstore/kotlin-springboot
|
- samples/server/petstore/kotlin-springboot
|
||||||
|
- samples/server/petstore/kotlin-springboot-no-response-entity
|
||||||
|
- samples/server/petstore/kotlin-springboot-no-response-entity-delegate
|
||||||
- samples/server/petstore/kotlin-springboot-multipart-request-model
|
- samples/server/petstore/kotlin-springboot-multipart-request-model
|
||||||
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
- samples/server/petstore/kotlin-springboot-bigdecimal-default
|
||||||
- samples/server/petstore/kotlin-springboot-delegate
|
- samples/server/petstore/kotlin-springboot-delegate
|
||||||
@@ -39,6 +41,7 @@ jobs:
|
|||||||
- samples/server/petstore/kotlin-springboot-source-swagger2
|
- samples/server/petstore/kotlin-springboot-source-swagger2
|
||||||
- samples/server/petstore/kotlin-springboot-springfox
|
- samples/server/petstore/kotlin-springboot-springfox
|
||||||
- samples/server/petstore/kotlin-springboot-x-kotlin-implements
|
- samples/server/petstore/kotlin-springboot-x-kotlin-implements
|
||||||
|
- samples/server/petstore/kotlin-springboot-include-http-request-context-delegate
|
||||||
- samples/server/petstore/kotlin-server/ktor
|
- samples/server/petstore/kotlin-server/ktor
|
||||||
- samples/server/petstore/kotlin-server/ktor2
|
- samples/server/petstore/kotlin-server/ktor2
|
||||||
- samples/server/petstore/kotlin-server/jaxrs-spec
|
- samples/server/petstore/kotlin-server/jaxrs-spec
|
||||||
@@ -59,9 +62,10 @@ jobs:
|
|||||||
- uses: actions/setup-java@v5
|
- uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 11
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -76,4 +80,4 @@ jobs:
|
|||||||
arguments: wrapper
|
arguments: wrapper
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
|
|||||||
@@ -28,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@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ jobs:
|
|||||||
- "3.13"
|
- "3.13"
|
||||||
sample:
|
sample:
|
||||||
- samples/openapi3/client/petstore/python-aiohttp
|
- samples/openapi3/client/petstore/python-aiohttp
|
||||||
|
- samples/openapi3/client/petstore/python-httpx
|
||||||
- samples/openapi3/client/petstore/python
|
- samples/openapi3/client/petstore/python
|
||||||
- samples/openapi3/client/petstore/python-lazyImports
|
- samples/openapi3/client/petstore/python-lazyImports
|
||||||
services:
|
services:
|
||||||
@@ -52,7 +53,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
key: ${{ runner.os }}-python-${{ steps.py.outputs.python-version }}-
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
name: Samples Ruby
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- 'samples/client/echo_api/ruby-httpx/**'
|
|
||||||
- 'samples/client/echo_api/ruby-faraday/**'
|
|
||||||
- 'samples/client/echo_api/ruby-typhoeus/**'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- 'samples/client/echo_api/ruby-httpx/**'
|
|
||||||
- 'samples/client/echo_api/ruby-faraday/**'
|
|
||||||
- 'samples/client/echo_api/ruby-typhoeus/**'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build Ruby
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
sample:
|
|
||||||
- 'samples/client/echo_api/ruby-httpx/'
|
|
||||||
- 'samples/client/echo_api/ruby-faraday/'
|
|
||||||
- 'samples/client/echo_api/ruby-typhoeus/'
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v5
|
|
||||||
- name: Setup node.js
|
|
||||||
uses: actions/setup-node@v5
|
|
||||||
- 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: actions/setup-ruby@v1
|
|
||||||
with:
|
|
||||||
ruby-version: 3.2
|
|
||||||
bundler-cache: true
|
|
||||||
- name: Install bundle
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: bundle install
|
|
||||||
- name: Run rspec
|
|
||||||
working-directory: ${{ matrix.sample }}
|
|
||||||
run: rspec
|
|
||||||
47
.github/workflows/samples-ruby.yaml
vendored
47
.github/workflows/samples-ruby.yaml
vendored
@@ -1,18 +1,16 @@
|
|||||||
name: Samples Ruby
|
name: Samples Ruby
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/ruby/**
|
- 'samples/client/echo_api/ruby-httpx/**'
|
||||||
- samples/client/petstore/ruby-faraday/**
|
- 'samples/client/echo_api/ruby-faraday/**'
|
||||||
- samples/client/petstore/ruby-httpx/**
|
- 'samples/client/echo_api/ruby-typhoeus/**'
|
||||||
- samples/client/petstore/ruby-autoload/**
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- samples/client/petstore/ruby/**
|
- 'samples/client/echo_api/ruby-httpx/**'
|
||||||
- samples/client/petstore/ruby-faraday/**
|
- 'samples/client/echo_api/ruby-faraday/**'
|
||||||
- samples/client/petstore/ruby-httpx/**
|
- 'samples/client/echo_api/ruby-typhoeus/**'
|
||||||
- samples/client/petstore/ruby-autoload/**
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -22,28 +20,21 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
sample:
|
sample:
|
||||||
- samples/client/petstore/ruby/
|
- 'samples/client/echo_api/ruby-httpx/'
|
||||||
#- samples/client/petstore/ruby-faraday/
|
- 'samples/client/echo_api/ruby-faraday/'
|
||||||
#- samples/client/petstore/ruby-httpx/
|
- 'samples/client/echo_api/ruby-typhoeus/'
|
||||||
#- samples/client/petstore/ruby-autoload/
|
|
||||||
services:
|
|
||||||
petstore-api:
|
|
||||||
image: swaggerapi/petstore
|
|
||||||
ports:
|
|
||||||
- 80:8080
|
|
||||||
env:
|
|
||||||
SWAGGER_HOST: http://petstore.swagger.io
|
|
||||||
SWAGGER_BASE_PATH: /v2
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
#- name: Add hosts to /etc/hosts
|
- name: Setup node.js
|
||||||
# run: |
|
uses: actions/setup-node@v5
|
||||||
# sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
- name: Run echo server
|
||||||
# cat /etc/hosts
|
run: |
|
||||||
- uses: ruby/setup-ruby@v1
|
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
|
||||||
|
(cd http-echo-server && npm install && npm start &)
|
||||||
|
- uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.4' # Not needed with a .ruby-version, .tool-versions or mise.toml
|
ruby-version: 3.0
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
bundler-cache: true
|
||||||
- name: Install bundle
|
- name: Install bundle
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: bundle install
|
run: bundle install
|
||||||
|
|||||||
9
.github/workflows/samples-rust-server.yaml
vendored
9
.github/workflows/samples-rust-server.yaml
vendored
@@ -39,7 +39,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: cargo build --all-targets --all-features
|
run: |
|
||||||
|
set -e
|
||||||
|
cargo build --all-targets --all-features
|
||||||
|
cargo build --all-targets --no-default-features
|
||||||
- name: Tests
|
- name: Tests
|
||||||
working-directory: ${{ matrix.sample }}
|
working-directory: ${{ matrix.sample }}
|
||||||
run: |
|
run: |
|
||||||
@@ -57,6 +60,10 @@ jobs:
|
|||||||
cargo build --bin ${package##*/} --features cli
|
cargo build --bin ${package##*/} --features cli
|
||||||
target/debug/${package##*/} --help
|
target/debug/${package##*/} --help
|
||||||
fi
|
fi
|
||||||
|
# Test the validate feature if it exists
|
||||||
|
if cargo read-manifest | grep -q '"validate"'; then
|
||||||
|
cargo build --features validate --all-targets
|
||||||
|
fi
|
||||||
cargo fmt
|
cargo fmt
|
||||||
cargo test
|
cargo test
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|||||||
2
.github/workflows/samples-scala-client.yaml
vendored
2
.github/workflows/samples-scala-client.yaml
vendored
@@ -58,7 +58,7 @@ jobs:
|
|||||||
- name: Setup sbt launcher
|
- name: Setup sbt launcher
|
||||||
uses: sbt/setup-sbt@v1
|
uses: sbt/setup-sbt@v1
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-scala-jdk8.yaml
vendored
2
.github/workflows/samples-scala-jdk8.yaml
vendored
@@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Setup sbt launcher
|
- name: Setup sbt launcher
|
||||||
uses: sbt/setup-sbt@v1
|
uses: sbt/setup-sbt@v1
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-scala-server.yaml
vendored
2
.github/workflows/samples-scala-server.yaml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- name: Setup sbt launcher
|
- name: Setup sbt launcher
|
||||||
uses: sbt/setup-sbt@v1
|
uses: sbt/setup-sbt@v1
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-spring-jdk17.yaml
vendored
2
.github/workflows/samples-spring-jdk17.yaml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-spring.yaml
vendored
2
.github/workflows/samples-spring.yaml
vendored
@@ -68,7 +68,7 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: maven-repository
|
cache-name: maven-repository
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/samples-swift5.yaml
vendored
2
.github/workflows/samples-swift5.yaml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: swift-actions/setup-swift@v2
|
- uses: swift-actions/setup-swift@v3
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
with:
|
with:
|
||||||
swift-version: '5'
|
swift-version: '5'
|
||||||
|
|||||||
145
.github/workflows/samples-typescript-client.yaml
vendored
Normal file
145
.github/workflows/samples-typescript-client.yaml
vendored
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
name: Samples TS clients
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/client/others/typescript-angular/**
|
||||||
|
- samples/client/others/typescript-angular-v20/**
|
||||||
|
# comment out angular released before Nov 2023
|
||||||
|
#- samples/client/petstore/typescript-angular-v12-provided-in-root/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v13-provided-in-root/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v14-provided-in-root/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v15-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v17-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v18-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v20-provided-in-root/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/default/**
|
||||||
|
# comment out due to build failure
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/default/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/jquery/**
|
||||||
|
# comment out due to build failure
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/jquery/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/object_params/**
|
||||||
|
# comment out due to build failure
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/object_params/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/builds/inversify/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/inversify/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/deno/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/browser/**
|
||||||
|
# comment out due to build failure
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/browser/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/builds/nullable-enum/**
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/default/**
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/es6-target/**
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/with-npm-version/**
|
||||||
|
- samples/client/petstore/typescript-fetch/tests/default/**
|
||||||
|
# comment out due to build failure
|
||||||
|
#- samples/client/petstore/typescript-node/npm/**
|
||||||
|
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/**
|
||||||
|
- samples/client/petstore/typescript-axios/builds/with-npm-version/**
|
||||||
|
# comment out due to build failure
|
||||||
|
#- samples/client/petstore/typescript-axios/tests/default/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/client/others/typescript-angular/**
|
||||||
|
- samples/client/others/typescript-angular-v20/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v12-provided-in-root/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v13-provided-in-root/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v14-provided-in-root/**
|
||||||
|
#- samples/client/petstore/typescript-angular-v15-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v17-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v18-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
|
||||||
|
- samples/client/petstore/typescript-angular-v20-provided-in-root/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/default/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/default/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/jquery/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/jquery/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/object_params/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/object_params/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/builds/inversify/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/inversify/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/deno/**
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/browser/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/browser/**
|
||||||
|
#- samples/openapi3/client/petstore/typescript/builds/nullable-enum/**
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/default/**
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/es6-target/**
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/with-npm-version/**
|
||||||
|
- samples/client/petstore/typescript-fetch/tests/default/**
|
||||||
|
#- samples/client/petstore/typescript-node/npm/**
|
||||||
|
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/**
|
||||||
|
- samples/client/petstore/typescript-axios/builds/with-npm-version/**
|
||||||
|
#- samples/client/petstore/typescript-axios/tests/default/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
petstore-api:
|
||||||
|
image: swaggerapi/petstore
|
||||||
|
ports:
|
||||||
|
- 80:8080
|
||||||
|
env:
|
||||||
|
SWAGGER_HOST: http://petstore.swagger.io
|
||||||
|
SWAGGER_BASE_PATH: /v2
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node:
|
||||||
|
#- "18.x"
|
||||||
|
- "20.x"
|
||||||
|
sample:
|
||||||
|
- samples/client/others/typescript-angular/
|
||||||
|
- samples/client/others/typescript-angular-v20/
|
||||||
|
#- samples/client/petstore/typescript-angular-v12-provided-in-root/
|
||||||
|
#- samples/client/petstore/typescript-angular-v13-provided-in-root/
|
||||||
|
#- samples/client/petstore/typescript-angular-v14-provided-in-root/
|
||||||
|
#- samples/client/petstore/typescript-angular-v15-provided-in-root/
|
||||||
|
- samples/client/petstore/typescript-angular-v16-provided-in-root/
|
||||||
|
- samples/client/petstore/typescript-angular-v17-provided-in-root/
|
||||||
|
- samples/client/petstore/typescript-angular-v18-provided-in-root/
|
||||||
|
- samples/client/petstore/typescript-angular-v19-provided-in-root/
|
||||||
|
- samples/client/petstore/typescript-angular-v20-provided-in-root/
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/default/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/default/
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/jquery/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/jquery/
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/object_params/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/object_params/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/builds/inversify/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/inversify/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/deno/
|
||||||
|
- samples/openapi3/client/petstore/typescript/builds/browser/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/tests/browser/
|
||||||
|
#- samples/openapi3/client/petstore/typescript/builds/nullable-enum/
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/default/
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/es6-target/
|
||||||
|
- samples/client/petstore/typescript-fetch/builds/with-npm-version/
|
||||||
|
- samples/client/petstore/typescript-fetch/tests/default/
|
||||||
|
#- samples/client/petstore/typescript-node/npm/
|
||||||
|
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/
|
||||||
|
- samples/client/petstore/typescript-axios/builds/with-npm-version/
|
||||||
|
#- samples/client/petstore/typescript-axios/tests/default/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Add hosts to /etc/hosts
|
||||||
|
run: |
|
||||||
|
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
|
||||||
|
- name: Set up JDK 17
|
||||||
|
uses: actions/setup-java@v5
|
||||||
|
with:
|
||||||
|
java-version: '17' # Specify your desired Java version
|
||||||
|
distribution: 'temurin' # Or 'adopt', 'oracle', etc.
|
||||||
|
cache: maven # Cache Maven dependencies for faster builds
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v5
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
cache: 'npm' # Or 'yarn'
|
||||||
|
- name: mvn integration-test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: mvn integration-test
|
||||||
@@ -16,9 +16,9 @@ jobs:
|
|||||||
# clients
|
# clients
|
||||||
- samples/client/others/typescript/encode-decode/test
|
- samples/client/others/typescript/encode-decode/test
|
||||||
node-version:
|
node-version:
|
||||||
- 16
|
|
||||||
- 18
|
|
||||||
- 20
|
- 20
|
||||||
|
- 22
|
||||||
|
- 24
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
|||||||
34
.github/workflows/samples-typescript-server.yaml
vendored
Normal file
34
.github/workflows/samples-typescript-server.yaml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Samples TS servers
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/typescript-nestjs-server/**
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- samples/server/petstore/typescript-nestjs-server/**
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build projects
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
node:
|
||||||
|
- "18.x"
|
||||||
|
- "20.x"
|
||||||
|
sample:
|
||||||
|
- samples/server/petstore/typescript-nestjs-server/
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v5
|
||||||
|
- name: Use Node.js 20.x
|
||||||
|
uses: actions/setup-node@v5
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node }}
|
||||||
|
cache: 'npm' # Or 'yarn'
|
||||||
|
- name: npm install
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: npm install
|
||||||
|
- name: npm test
|
||||||
|
working-directory: ${{ matrix.sample }}
|
||||||
|
run: npm test
|
||||||
5
.github/workflows/windows.yaml
vendored
5
.github/workflows/windows.yaml
vendored
@@ -24,8 +24,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
cache: gradle
|
||||||
- name: Cache maven dependencies
|
- name: Cache maven dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
env:
|
env:
|
||||||
cache-name: cache-maven-repository
|
cache-name: cache-maven-repository
|
||||||
with:
|
with:
|
||||||
@@ -39,7 +40,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.18.0
|
uses: s4u/setup-maven-action@v1.19.0
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
maven-version: 3.8.8
|
maven-version: 3.8.8
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -49,6 +49,8 @@ nb-configuration.xml
|
|||||||
*.xml~
|
*.xml~
|
||||||
*.t~
|
*.t~
|
||||||
|
|
||||||
|
**/.angular
|
||||||
|
|
||||||
/target
|
/target
|
||||||
/generated-files
|
/generated-files
|
||||||
test-output/
|
test-output/
|
||||||
|
|||||||
@@ -11,43 +11,15 @@ export NODE_ENV=test
|
|||||||
|
|
||||||
if [ "$NODE_INDEX" = "1" ]; then
|
if [ "$NODE_INDEX" = "1" ]; then
|
||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
|
||||||
|
|
||||||
sudo apt-get -y install cpanminus
|
sudo apt-get -y install cpanminus
|
||||||
|
|
||||||
# install rust
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
||||||
source "$HOME/.cargo/env"
|
|
||||||
|
|
||||||
echo "Testing perl"
|
echo "Testing perl"
|
||||||
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
(cd samples/client/petstore/perl && /bin/bash ./test.bash)
|
||||||
|
|
||||||
echo "Testing ruby"
|
|
||||||
(cd samples/client/petstore/ruby && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
|
||||||
|
|
||||||
echo "Testing rust"
|
|
||||||
(cd samples/server/petstore/rust-axum && mvn integration-test)
|
|
||||||
|
|
||||||
elif [ "$NODE_INDEX" = "2" ]; then
|
elif [ "$NODE_INDEX" = "2" ]; then
|
||||||
echo "Running node $NODE_INDEX to test Go"
|
echo "Running node $NODE_INDEX to test cpp-restsdk"
|
||||||
# install haskell
|
|
||||||
#curl -sSLk https://get.haskellstack.org/ | sh
|
|
||||||
#stack upgrade
|
|
||||||
#stack --version
|
|
||||||
|
|
||||||
# install curl
|
|
||||||
#sudo apt-get -y build-dep libcurl4-gnutls-dev
|
|
||||||
#sudo apt-get -y install libcurl4-gnutls-dev
|
|
||||||
|
|
||||||
# Install golang version 1.18
|
|
||||||
go version
|
|
||||||
sudo mkdir /usr/local/go1.18
|
|
||||||
wget -c https://dl.google.com/go/go1.18.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/go1.18
|
|
||||||
export PATH="/usr/local/go1.18/go/bin:$PATH"
|
|
||||||
go version
|
|
||||||
|
|
||||||
# install cpprestsdk
|
# install cpprestsdk
|
||||||
sudo apt-get install libcpprest-dev
|
sudo apt-get install libcpprest-dev
|
||||||
@@ -62,58 +34,15 @@ elif [ "$NODE_INDEX" = "3" ]; then
|
|||||||
|
|
||||||
echo "Running node $NODE_INDEX ... "
|
echo "Running node $NODE_INDEX ... "
|
||||||
|
|
||||||
# Install node@stable (for angular 6)
|
echo "Testing ruby"
|
||||||
set +e
|
(cd samples/client/petstore/ruby && mvn integration-test)
|
||||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
(cd samples/client/petstore/ruby-faraday && mvn integration-test)
|
||||||
export NVM_DIR="/opt/circleci/.nvm"
|
(cd samples/client/petstore/ruby-httpx && mvn integration-test)
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
(cd samples/client/petstore/ruby-autoload && mvn integration-test)
|
||||||
#nvm install stable
|
|
||||||
# install v16 instead of the latest stable version
|
|
||||||
nvm install 18
|
|
||||||
nvm alias default 18
|
|
||||||
node --version
|
|
||||||
|
|
||||||
# Each step uses the same `$BASH_ENV`, so need to modify it
|
|
||||||
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
|
|
||||||
echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
|
|
||||||
|
|
||||||
(cd samples/client/others/typescript-angular && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v12-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v13-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v14-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v15-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v16-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v17-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v18-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-angular-v19-provided-in-root && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/default && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/default && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/jquery && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/jquery && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/object_params && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/object_params && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/inversify && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/inversify && mvn integration-test)
|
|
||||||
#(cd samples/openapi3/client/petstore/typescript/tests/deno && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/browser && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/tests/browser && mvn integration-test)
|
|
||||||
(cd samples/openapi3/client/petstore/typescript/builds/nullable-enum && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-fetch/builds/default && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-fetch/builds/es6-target && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-fetch/builds/with-npm-version && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-fetch/tests/default && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-node/npm && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-rxjs/builds/with-npm-version && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/javascript-flowtyped && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/javascript-es6 && mvn integration-test)
|
|
||||||
(cd samples/client/petstore/javascript-promise-es6 && mvn integration-test)
|
|
||||||
(cd samples/server/petstore/typescript-nestjs-server && mvn integration-test)
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "Running node $NODE_INDEX ..."
|
echo "Running node $NODE_INDEX ..."
|
||||||
java -version
|
java -version
|
||||||
|
./mvnw clean install
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.16.0`):
|
[Master](https://github.com/OpenAPITools/openapi-generator/tree/master) (`7.19.0`):
|
||||||
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
[](https://circleci.com/gh/OpenAPITools/openapi-generator)
|
||||||
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
[](https://app.bitrise.io/app/4a2b10a819d12b67)
|
||||||
|
|
||||||
@@ -148,8 +148,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.16.0 (upcoming minor release) [SNAPSHOT](https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-cli/7.16.0-SNAPSHOT/) | 22.09.2025 | Minor release with breaking changes (with fallback) |
|
| 7.19.0 (upcoming minor release) [SNAPSHOT](https://github.com/OpenAPITools/openapi-generator/wiki/FAQ#how-to-test-with-the-latest-master-of-openapi-generator) | 22.01.2026 | Minor release with breaking changes (with fallback) |
|
||||||
| [7.15.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.15.0) (latest stable release) | 22.08.2025 | Minor release with breaking changes (with fallback) |
|
| [7.18.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v7.18.0) (latest stable release) | 22.12.2025 | Minor release with breaking changes (with fallback) |
|
||||||
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
| [6.6.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v6.6.0) | 11.05.2023 | Minor release with breaking changes (with fallback) |
|
||||||
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
| [5.4.0](https://github.com/OpenAPITools/openapi-generator/releases/tag/v5.4.0) | 31.01.2022 | Minor release with breaking changes (with fallback) |
|
||||||
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
| [4.3.1](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.3.1) | 06.05.2020 | Patch release (enhancements, bug fixes, etc) |
|
||||||
@@ -212,16 +212,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.15.0/openapi-generator-cli-7.15.0.jar`
|
JAR location: `https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.0.jar`
|
||||||
|
|
||||||
For **Mac/Linux** users:
|
For **Mac/Linux** users:
|
||||||
```sh
|
```sh
|
||||||
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.15.0/openapi-generator-cli-7.15.0.jar -O openapi-generator-cli.jar
|
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.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.15.0/openapi-generator-cli-7.15.0.jar
|
Invoke-WebRequest -OutFile openapi-generator-cli.jar https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.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.
|
||||||
@@ -456,7 +456,7 @@ openapi-generator-cli version
|
|||||||
To use a specific version of "openapi-generator-cli"
|
To use a specific version of "openapi-generator-cli"
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
openapi-generator-cli version-manager set 7.15.0
|
openapi-generator-cli version-manager set 7.18.0
|
||||||
```
|
```
|
||||||
|
|
||||||
Or install it as dev-dependency:
|
Or install it as dev-dependency:
|
||||||
@@ -480,7 +480,7 @@ pip install openapi-generator-cli
|
|||||||
|
|
||||||
To install a specific version
|
To install a specific version
|
||||||
```
|
```
|
||||||
pip install openapi-generator-cli==7.15.0
|
pip install openapi-generator-cli==7.18.0
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
You can also install with [jdk4py](https://github.com/activeviam/jdk4py) instead of java binary. (python>=3.10 is required)
|
||||||
@@ -506,7 +506,7 @@ java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generat
|
|||||||
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
(if you're on Windows, replace the last command with `java -jar modules\openapi-generator-cli\target\openapi-generator-cli.jar generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php -o c:\temp\php_api_client`)
|
||||||
|
|
||||||
<!-- RELEASE_VERSION -->
|
<!-- RELEASE_VERSION -->
|
||||||
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.15.0/openapi-generator-cli-7.15.0.jar)
|
You can also download the JAR (latest release) directly from [maven.org](https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.18.0/openapi-generator-cli-7.18.0.jar)
|
||||||
<!-- /RELEASE_VERSION -->
|
<!-- /RELEASE_VERSION -->
|
||||||
|
|
||||||
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
To get a list of **general** options available, please run `java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar help generate`
|
||||||
@@ -1182,6 +1182,7 @@ Here is a list of template creators:
|
|||||||
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
* Scala Finch: @jimschubert [:heart:](https://www.patreon.com/jimschubert)
|
||||||
* Scala Lagom: @gmkumar2005
|
* Scala Lagom: @gmkumar2005
|
||||||
* Scala Play: @adigerber
|
* Scala Play: @adigerber
|
||||||
|
* TypeScript NestJS: @aryobenholzner
|
||||||
* Documentation
|
* Documentation
|
||||||
* AsciiDoc: @man-at-home
|
* AsciiDoc: @man-at-home
|
||||||
* HTML Doc 2: @jhitchcock
|
* HTML Doc 2: @jhitchcock
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ additionalProperties:
|
|||||||
shardVersion: 1.0.0
|
shardVersion: 1.0.0
|
||||||
moduleName: Petstore
|
moduleName: Petstore
|
||||||
shardName: petstore
|
shardName: petstore
|
||||||
|
#paramsEncoder: Crest::EnumeratedFlatParamsEncoder
|
||||||
strictSpecBehavior: false
|
strictSpecBehavior: false
|
||||||
modelNameMappings:
|
modelNameMappings:
|
||||||
PropertyNameMapping: AnotherPropertyNameMapping
|
PropertyNameMapping: AnotherPropertyNameMapping
|
||||||
|
|||||||
14
bin/configs/csharp-generichost-net10-allOf.yaml
Normal file
14
bin/configs/csharp-generichost-net10-allOf.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/AllOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/allOf.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
14
bin/configs/csharp-generichost-net10-anyOf.yaml
Normal file
14
bin/configs/csharp-generichost-net10-anyOf.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/AnyOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
14
bin/configs/csharp-generichost-net10-anyOfNoCompare.yaml
Normal file
14
bin/configs/csharp-generichost-net10-anyOfNoCompare.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/anyOf.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: false
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
17
bin/configs/csharp-generichost-net10-formModels.yaml
Normal file
17
bin/configs/csharp-generichost-net10-formModels.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/FormModels
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: false
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
skipFormModel: false
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
|
inlineSchemaOptions:
|
||||||
|
RESOLVE_INLINE_ENUMS: true
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/SourceGeneration
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useSourceGeneration: true
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
14
bin/configs/csharp-generichost-net10-nrt.yaml
Normal file
14
bin/configs/csharp-generichost-net10-nrt.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/NullReferenceTypes
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
14
bin/configs/csharp-generichost-net10-oneOf.yaml
Normal file
14
bin/configs/csharp-generichost-net10-oneOf.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/OneOf
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: true
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
11
bin/configs/csharp-generichost-net10-useDateTimeForDate.yaml
Normal file
11
bin/configs/csharp-generichost-net10-useDateTimeForDate.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/dates-api.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{2E60EF87-DB0B-4D01-A36E-F5E90F7EC757}'
|
||||||
|
useDateTimeForDate: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
14
bin/configs/csharp-generichost-net10.yaml
Normal file
14
bin/configs/csharp-generichost-net10.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for csharp generichost
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/generichost/net10/Petstore
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
nullableReferenceTypes: false
|
||||||
|
equatable: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
modelPropertySorting: alphabetical
|
||||||
|
operationParameterSorting: alphabetical
|
||||||
14
bin/configs/csharp-httpclient-net10-nonPublicApi.yaml
Normal file
14
bin/configs/csharp-httpclient-net10-nonPublicApi.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# for .net standard httpclient
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/httpclient/net10/Petstore-nonPublicApi
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
library: httpclient
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
equatable: true
|
||||||
|
nonPublicApi: true
|
||||||
13
bin/configs/csharp-httpclient-net10.yaml
Normal file
13
bin/configs/csharp-httpclient-net10.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# for .net standard httpclient
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/httpclient/net10/Petstore
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
library: httpclient
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
equatable: true
|
||||||
15
bin/configs/csharp-restsharp-net10.yaml
Normal file
15
bin/configs/csharp-restsharp-net10.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# for .net standard
|
||||||
|
generatorName: csharp
|
||||||
|
library: restsharp
|
||||||
|
outputDir: samples/client/petstore/csharp/restsharp/net10/EnumMappings
|
||||||
|
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
|
||||||
|
additionalProperties:
|
||||||
|
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
|
||||||
|
useCompareNetObjects: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
targetFramework: net10.0
|
||||||
|
equatable: true
|
||||||
|
enumNameMappings:
|
||||||
|
delivered: Shipped
|
||||||
9
bin/configs/csharp-unityWebRequest-net10.yaml
Normal file
9
bin/configs/csharp-unityWebRequest-net10.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# for .net Unity
|
||||||
|
generatorName: csharp
|
||||||
|
outputDir: samples/client/petstore/csharp/unityWebRequest/net10/Petstore
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/csharp/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/csharp
|
||||||
|
library: unityWebRequest
|
||||||
|
additionalProperties:
|
||||||
|
targetFramework: net10.0
|
||||||
|
equatable: true
|
||||||
8
bin/configs/go-server-optional-body.yaml
Normal file
8
bin/configs/go-server-optional-body.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: go-server
|
||||||
|
outputDir: samples/server/others/go-server/optional-body
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/optional_body.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/go-server
|
||||||
|
additionalProperties:
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
packageName: petstoreserver
|
||||||
|
addResponseHeaders: true
|
||||||
9
bin/configs/java-native-useGzipFeature.yaml
Normal file
9
bin/configs/java-native-useGzipFeature.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/client/petstore/java/native-useGzipFeature
|
||||||
|
library: native
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-native-useGzipFeature
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
useJakartaEe: "true"
|
||||||
8
bin/configs/jaxrs-cxf-client-swagger2.yaml
Normal file
8
bin/configs/jaxrs-cxf-client-swagger2.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: jaxrs-cxf-client
|
||||||
|
outputDir: samples/client/petstore/jaxrs-cxf-client-swagger2
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-cxf-petstore-swagger2
|
||||||
|
documentationProvider: swagger2
|
||||||
|
annotationLibrary: swagger2
|
||||||
11
bin/configs/jaxrs-spec-swagger-annotations.yaml
Normal file
11
bin/configs/jaxrs-spec-swagger-annotations.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-swagger-annotations
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jaxrs-spec/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-petstore-server
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
|
useSwaggerAnnotations: "true"
|
||||||
12
bin/configs/jaxrs-spec-swagger-v3-annotations-jakarta.yaml
Normal file
12
bin/configs/jaxrs-spec-swagger-v3-annotations-jakarta.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jaxrs-spec/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-petstore-server-jakarta-swagger-v3
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
|
useSwaggerV3Annotations: "true"
|
||||||
|
useJakartaEe: "true"
|
||||||
11
bin/configs/jaxrs-spec-swagger-v3-annotations.yaml
Normal file
11
bin/configs/jaxrs-spec-swagger-v3-annotations.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-swagger-v3-annotations
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jaxrs-spec/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-petstore-server
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
implicitHeadersRegex: (api_key|enum_header_string)
|
||||||
|
generateBuilders: "true"
|
||||||
|
useSwaggerV3Annotations: "true"
|
||||||
10
bin/configs/jaxrs-spec-withxml.yaml
Normal file
10
bin/configs/jaxrs-spec-withxml.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
generatorName: jaxrs-spec
|
||||||
|
outputDir: samples/server/petstore/jaxrs-spec-withxml/
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/jaxrs-spec/petstore-with-fake-endpoints-models-for-testing.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/spec
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: jaxrs-spec-withxml-petstore-server
|
||||||
|
serializableModel: "true"
|
||||||
|
hideGenerationTimestamp: "true"
|
||||||
|
generateBuilders: "true"
|
||||||
|
withXml: true
|
||||||
8
bin/configs/kotlin-array-integer-enum.yaml
Normal file
8
bin/configs/kotlin-array-integer-enum.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/petstore/kotlin-array-integer-enum
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/issue15204-int-array-enum.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-array-integer-enum
|
||||||
|
serializableModel: "true"
|
||||||
|
dateLibrary: java8
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
generatorName: kotlin
|
|
||||||
outputDir: samples/client/petstore/kotlin-array-simple-string-jvm-volley
|
|
||||||
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-volley
|
|
||||||
library: jvm-volley
|
|
||||||
serializationLibrary: gson
|
|
||||||
generateRoomModels: false
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
generatorName: kotlin
|
|
||||||
outputDir: samples/client/petstore/kotlin-default-values-jvm-volley
|
|
||||||
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-volley
|
|
||||||
library: jvm-volley
|
|
||||||
sortParamsByRequiredFlag: false
|
|
||||||
serializationLibrary: gson
|
|
||||||
generateRoomModels: true
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
generatorName: kotlin
|
|
||||||
outputDir: samples/client/petstore/kotlin-jvm-volley
|
|
||||||
library: jvm-volley
|
|
||||||
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
|
||||||
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
|
||||||
additionalProperties:
|
|
||||||
artifactId: kotlin-petstore-jvm-volley
|
|
||||||
generateRoomModels: "true"
|
|
||||||
serializationLibrary: "gson"
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
generatorName: kotlin
|
||||||
|
outputDir: samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/polymorphism-oneof-discriminator.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: kotlin-oneOf-discriminator
|
||||||
|
serializableModel: "false"
|
||||||
|
dateLibrary: java8
|
||||||
|
library: jvm-retrofit2
|
||||||
|
enumUnknownDefaultCase: true
|
||||||
|
serializationLibrary: kotlinx_serialization
|
||||||
|
generateOneOfAnyOfWrappers: true
|
||||||
14
bin/configs/kotlin-spring-boot-3-no-response-entity.yaml
Normal file
14
bin/configs/kotlin-spring-boot-3-no-response-entity.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-3-no-response-entity
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: none
|
||||||
|
useSwaggerUI: "false"
|
||||||
|
serviceImplementation: "true"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
useSpringBoot3: "true"
|
||||||
|
requestMappingMode: api_interface
|
||||||
14
bin/configs/kotlin-spring-boot-additionalproperties.yaml
Normal file
14
bin/configs/kotlin-spring-boot-additionalproperties.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-additionalproperties
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: samples/server/petstore/kotlin-springboot-additionalproperties/src/main/resources/openapi.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: none
|
||||||
|
useSwaggerUI: "false"
|
||||||
|
serviceImplementation: "true"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
useSpringBoot3: "true"
|
||||||
|
requestMappingMode: api_interface
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-include-http-request-context-delegate
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/petstore-with-x-kotlin-implements.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: swagger1
|
||||||
|
useSwaggerUI: false
|
||||||
|
serviceImplementation: false
|
||||||
|
skipDefaultInterface: true
|
||||||
|
interfaceOnly: false
|
||||||
|
serializableModel: true
|
||||||
|
beanValidations: true
|
||||||
|
includeHttpRequestContext: true
|
||||||
|
reactive: true
|
||||||
|
delegatePattern: true
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-no-response-entity-delegate
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: none
|
||||||
|
useSwaggerUI: "false"
|
||||||
|
serviceImplementation: "true"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
useResponseEntity: "false"
|
||||||
|
delegatePattern: true
|
||||||
|
requestMappingMode: controller
|
||||||
14
bin/configs/kotlin-spring-boot-no-response-entity.yaml
Normal file
14
bin/configs/kotlin-spring-boot-no-response-entity.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
generatorName: kotlin-spring
|
||||||
|
outputDir: samples/server/petstore/kotlin-springboot-no-response-entity
|
||||||
|
library: spring-boot
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
|
additionalProperties:
|
||||||
|
documentationProvider: none
|
||||||
|
annotationLibrary: none
|
||||||
|
useSwaggerUI: "false"
|
||||||
|
serviceImplementation: "true"
|
||||||
|
serializableModel: "true"
|
||||||
|
beanValidations: "true"
|
||||||
|
useResponseEntity: "false"
|
||||||
|
requestMappingMode: controller
|
||||||
@@ -5,10 +5,11 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/petstore-with
|
|||||||
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
templateDir: modules/openapi-generator/src/main/resources/kotlin-spring
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
documentationProvider: none
|
documentationProvider: none
|
||||||
annotationLibrary: none
|
annotationLibrary: swagger1
|
||||||
useSwaggerUI: "false"
|
useSwaggerUI: false
|
||||||
serviceImplementation: "false"
|
serviceImplementation: false
|
||||||
skipDefaultInterface: "true"
|
skipDefaultInterface: true
|
||||||
interfaceOnly: "true"
|
interfaceOnly: true
|
||||||
serializableModel: "true"
|
serializableModel: true
|
||||||
beanValidations: "true"
|
beanValidations: true
|
||||||
|
includeHttpRequestContext: true
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user