Skip to content

Commit 4fd2a9d

Browse files
committed
Merge branch 'master' into feature/normalizer_REPLACE_ONE_OF_BY_DISCRIMINATOR_MAPPING
2 parents ee53365 + f9446c2 commit 4fd2a9d

1,472 files changed

Lines changed: 85128 additions & 3195 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/maven-release.yml

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- master
7+
tags:
8+
- 'v*'
9+
710
jobs:
811
build:
912
name: Build
@@ -12,17 +15,20 @@ jobs:
1215
- uses: actions/checkout@v5
1316
with:
1417
fetch-depth: 0
18+
1519
- name: Set up JDK 11
1620
uses: actions/setup-java@v5
1721
with:
1822
java-version: 11
1923
distribution: 'zulu'
24+
2025
- name: Cache Maven packages
2126
uses: actions/cache@v5
2227
with:
2328
path: ~/.m2
2429
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2530
restore-keys: ${{ runner.os }}-m2
31+
2632
- name: Build
2733
run: ./mvnw clean install -DskipTests=true
2834
#run: ./mvnw clean install
@@ -38,7 +44,7 @@ jobs:
3844
- uses: actions/checkout@v5
3945
with:
4046
fetch-depth: 0
41-
47+
4248
- id: install-secret-key
4349
name: Install gpg secret key
4450
run: |
@@ -58,4 +64,48 @@ jobs:
5864
run: ./mvnw -DskipTests=true --batch-mode -P release -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
5965
env:
6066
MAVEN_USERNAME: ${{ secrets.OSS_USERNAME }}
61-
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
67+
MAVEN_PASSWORD: ${{ secrets.OSS_PASSWORD }}
68+
69+
upload-release-asset:
70+
runs-on: ubuntu-latest
71+
name: Upload CLI JAR to GitHub Release
72+
needs: publish
73+
if: startsWith(github.ref, 'refs/tags/')
74+
permissions:
75+
contents: write
76+
steps:
77+
- uses: actions/checkout@v5
78+
with:
79+
fetch-depth: 0
80+
81+
- name: Set up JDK 11
82+
uses: actions/setup-java@v5
83+
with:
84+
java-version: 11
85+
distribution: 'zulu'
86+
87+
- name: Cache Maven packages
88+
uses: actions/cache@v5
89+
with:
90+
path: ~/.m2
91+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
92+
restore-keys: ${{ runner.os }}-m2
93+
94+
- name: Build CLI JAR
95+
run: ./mvnw clean package -pl modules/openapi-generator-cli -am -DskipTests=true
96+
97+
- name: Get project version
98+
id: get_version
99+
run: |
100+
VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
101+
echo "version=$VERSION" >> $GITHUB_OUTPUT
102+
103+
- name: Upload JAR as GitHub Release asset
104+
run: |
105+
VERSION="${{ steps.get_version.outputs.version }}"
106+
JAR="modules/openapi-generator-cli/target/openapi-generator-cli.jar"
107+
ASSET="openapi-generator-cli-${VERSION}.jar"
108+
cp "$JAR" "$ASSET"
109+
gh release upload "${{ github.ref_name }}" "$ASSET" --clobber
110+
env:
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/samples-dotnet10.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf
2828
- samples/client/petstore/csharp/generichost/latest/Tags
2929
- samples/client/petstore/csharp/generichost/latest/HelloWorld
30+
- samples/client/petstore/csharp/generichost/latest/NullTypes
3031
- samples/client/petstore/csharp/generichost/latest/OneOfList
3132
- samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset
3233
- samples/client/petstore/csharp/generichost/net10/AllOf

.github/workflows/samples-java-client-jdk11.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
- samples/client/petstore/java/webclient-swagger2
7474
- samples/client/petstore/java/webclient-useSingleRequestParameter
7575
- samples/client/petstore/java/vertx
76+
- samples/client/petstore/java/vertx5
7677
- samples/client/petstore/java/vertx-no-nullable
7778
- samples/client/petstore/java/vertx-supportVertxFuture
7879
- samples/client/petstore/java/jersey2-java8-localdatetime

.github/workflows/samples-java-client-jdk17.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- samples/client/petstore/java/webclient-jakarta/**
99
- samples/client/petstore/java/restclient-*/**
1010
- samples/client/petstore/java/native-jackson3/**
11+
- samples/client/petstore/java/apache-httpclient-jackson3/**
1112
- samples/client/petstore/java/native-jackson3-jspecify/**
1213
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
1314
- samples/client/others/java/webclient-sealedInterface/**
@@ -23,6 +24,7 @@ on:
2324
- samples/client/petstore/java/webclient-jakarta/**
2425
- samples/client/petstore/java/restclient-*/**
2526
- samples/client/petstore/java/native-jackson3/**
27+
- samples/client/petstore/java/apache-httpclient-jackson3/**
2628
- samples/client/petstore/java/native-jackson3-jspecify/**
2729
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
2830
- samples/client/others/java/webclient-sealedInterface/**
@@ -54,6 +56,7 @@ jobs:
5456
- samples/client/petstore/java/restclient-useSingleRequestParameter
5557
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
5658
- samples/client/petstore/java/native-jackson3
59+
- samples/client/petstore/java/apache-httpclient-jackson3
5760
- samples/client/others/java/webclient-sealedInterface
5861
- samples/client/others/java/webclient-sealedInterface_3_1
5962
- samples/client/petstore/java/webclient-springBoot4-jackson3

.github/workflows/samples-julia.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v5
19-
- uses: julia-actions/setup-julia@v2
19+
- uses: julia-actions/setup-julia@v3
2020
with:
2121
version: 1.8
2222
arch: x64

.github/workflows/samples-kotlin-client.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ on:
66
- 'samples/client/petstore/kotlin*/**'
77
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
88
- samples/client/others/kotlin-integer-enum/**
9+
- samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/**
910
pull_request:
1011
paths:
1112
- 'samples/client/petstore/kotlin*/**'
1213
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
1314
- samples/client/others/kotlin-integer-enum/**
1415
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/**
16+
- samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/**
1517

1618
jobs:
1719
build:
@@ -66,6 +68,7 @@ jobs:
6668
- samples/client/echo_api/kotlin-jvm-spring-3-webclient
6769
- samples/client/petstore/kotlin-jvm-spring-3-restclient
6870
- samples/client/echo_api/kotlin-jvm-spring-3-restclient
71+
- samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return
6972
- samples/client/petstore/kotlin-name-parameter-mappings
7073
- samples/client/others/kotlin-jvm-okhttp-parameter-tests
7174
- samples/client/others/kotlin-jvm-okhttp-path-comments

.github/workflows/samples-kotlin-server-jdk17.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,31 @@ on:
44
push:
55
paths:
66
- 'samples/server/others/kotlin-server/**'
7+
- 'samples/server/others/kotlin-springboot/**'
78
- 'samples/server/petstore/kotlin-springboot-3*/**'
89
- 'samples/server/petstore/kotlin-server/**'
910
- 'samples/server/petstore/kotlin-server-modelMutable/**'
1011
- 'samples/server/petstore/kotlin-springboot-*/**'
1112
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
1213
- 'samples/server/petstore/kotlin-spring-declarative*/**'
1314
- 'samples/server/petstore/kotlin-spring-sealed-interfaces/**'
15+
- 'samples/server/petstore/kotlin-springboot-sort-validation/**'
16+
- 'samples/server/petstore/kotlin-springboot-paged-model/**'
1417
# comment out due to gradle build failure
1518
# - samples/server/petstore/kotlin-spring-default/**
1619
pull_request:
1720
paths:
1821
- 'samples/server/others/kotlin-server/**'
22+
- 'samples/server/others/kotlin-springboot/**'
1923
- 'samples/server/petstore/kotlin-springboot-3*/**'
2024
- 'samples/server/petstore/kotlin-server/**'
2125
- 'samples/server/petstore/kotlin-server-modelMutable/**'
2226
- 'samples/server/petstore/kotlin-springboot-*/**'
2327
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
2428
- 'samples/server/petstore/kotlin-spring-declarative*/**'
2529
- 'samples/server/petstore/kotlin-spring-sealed-interfaces/**'
30+
- 'samples/server/petstore/kotlin-springboot-sort-validation/**'
31+
- 'samples/server/petstore/kotlin-springboot-paged-model/**'
2632
# comment out due to gradle build failure
2733
# - samples/server/petstore/kotlin-spring-default/**
2834

@@ -38,6 +44,9 @@ jobs:
3844
matrix:
3945
sample:
4046
# server
47+
- samples/server/others/kotlin-springboot/oneOf-discriminator
48+
- samples/server/others/kotlin-springboot/oneOf-discriminator-const
49+
- samples/server/others/kotlin-springboot/oneOf-enum-discriminator
4150
- samples/server/others/kotlin-server/polymorphism-allof-and-discriminator
4251
- samples/server/others/kotlin-server/polymorphism-and-discriminator-disabled-jackson-fix
4352
- samples/server/others/kotlin-server/polymorphism-and-discriminator
@@ -62,6 +71,8 @@ jobs:
6271
- samples/server/petstore/kotlin-spring-declarative-interface-reactive-reactor-wrapped
6372
- samples/server/petstore/kotlin-spring-declarative-interface-wrapped
6473
- samples/server/petstore/kotlin-spring-sealed-interfaces
74+
- samples/server/petstore/kotlin-springboot-sort-validation
75+
- samples/server/petstore/kotlin-springboot-paged-model
6576
# comment out due to gradle build failure
6677
# - samples/server/petstore/kotlin-spring-default/
6778
steps:

.github/workflows/samples-kotlin-server-jdk21.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
push:
55
paths:
66
- 'samples/server/others/kotlin-server/**'
7+
- 'samples/server/others/kotlin-springboot/**'
78
- 'samples/server/petstore/kotlin-server/**'
89
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
910
pull_request:
1011
paths:
1112
- 'samples/server/others/kotlin-server/**'
13+
- 'samples/server/others/kotlin-springboot/**'
1214
- 'samples/server/petstore/kotlin-server/**'
1315
- 'samples/server/petstore/kotlin-server-required-and-nullable-properties/**'
1416

@@ -23,6 +25,9 @@ jobs:
2325
fail-fast: false
2426
matrix:
2527
sample:
28+
- samples/server/others/kotlin-springboot/oneOf-discriminator
29+
- samples/server/others/kotlin-springboot/oneOf-discriminator-const
30+
- samples/server/others/kotlin-springboot/oneOf-enum-discriminator
2631
- samples/server/others/kotlin-server/polymorphism-allof-and-discriminator
2732
- samples/server/others/kotlin-server/polymorphism-and-discriminator-disabled-jackson-fix
2833
- samples/server/others/kotlin-server/polymorphism-and-discriminator

.github/workflows/samples-spring-jdk17.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
- samples/server/petstore/springboot-lombok-tostring/**
1515
- samples/server/petstore/springboot-file-delegate-optional/**
1616
- samples/server/petstore/springboot-petstore-with-api-response-examples/**
17+
- samples/server/petstore/springboot-sort-validation/**
18+
- samples/server/petstore/springboot-paged-model/**
1719
- samples/openapi3/server/petstore/spring-boot-oneof-sealed/**
1820
- samples/openapi3/server/petstore/spring-boot-oneof-interface/**
1921
pull_request:
@@ -29,6 +31,8 @@ on:
2931
- samples/server/petstore/springboot-lombok-tostring/**
3032
- samples/server/petstore/springboot-file-delegate-optional/**
3133
- samples/server/petstore/springboot-petstore-with-api-response-examples/**
34+
- samples/server/petstore/springboot-sort-validation/**
35+
- samples/server/petstore/springboot-paged-model/**
3236
- samples/openapi3/server/petstore/spring-boot-oneof-sealed/**
3337
- samples/openapi3/server/petstore/spring-boot-oneof-interface/**
3438
jobs:
@@ -52,6 +56,8 @@ jobs:
5256
- samples/server/petstore/springboot-lombok-tostring
5357
- samples/server/petstore/springboot-file-delegate-optional
5458
- samples/server/petstore/springboot-petstore-with-api-response-examples
59+
- samples/server/petstore/springboot-sort-validation
60+
- samples/server/petstore/springboot-paged-model
5561
- samples/openapi3/server/petstore/spring-boot-oneof-sealed
5662
- samples/openapi3/server/petstore/spring-boot-oneof-interface
5763
steps:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,3 +309,6 @@ samples/client/petstore/ocaml-recursion-test/_build/
309309

310310
# jetbrain http client
311311
samples/client/jetbrains/adyen/checkout71/http/client/Apis/http-client.private.env.json
312+
313+
# Generated by the run-in-docker.sh
314+
\?/

0 commit comments

Comments
 (0)