Skip to content

Commit e45e2c0

Browse files
committed
Merge remote-tracking branch 'upstream/master' into sttp4-client-oneof
2 parents 5a3afd8 + 4e4cace commit e45e2c0

13,475 files changed

Lines changed: 152567 additions & 109100 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/linux.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ jobs:
4545
restore-keys: |
4646
${{ runner.os }}-gradle-
4747
48-
- uses: gradle/actions/setup-gradle@v5
48+
- uses: gradle/actions/setup-gradle@v6
4949
with:
50+
cache-disabled: true
5051
gradle-version: '8.14.3'
5152

5253
- name: Setup Maven
53-
uses: s4u/setup-maven-action@v1.19.0
54+
uses: s4u/setup-maven-action@v1.20.0
5455
with:
5556
java-version: ${{ matrix.java }}
5657
maven-version: 3.8.8
@@ -92,7 +93,7 @@ jobs:
9293
- name: Check out code
9394
uses: actions/checkout@v5
9495
- name: Setup Maven
95-
uses: s4u/setup-maven-action@v1.19.0
96+
uses: s4u/setup-maven-action@v1.20.0
9697
with:
9798
java-version: 11
9899
maven-version: 3.8.8
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Maven plugin tests (JDK17)
2+
3+
on:
4+
push:
5+
paths:
6+
- modules/openapi-generator-maven-plugin/**
7+
pull_request:
8+
paths:
9+
- modules/openapi-generator-maven-plugin/**
10+
11+
jobs:
12+
test:
13+
name: Maven plugin tests
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v5
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v5
19+
with:
20+
java-version: 17
21+
distribution: 'temurin'
22+
- name: Cache maven dependencies
23+
uses: actions/cache@v5
24+
env:
25+
cache-name: cache-maven-repository
26+
with:
27+
path: |
28+
~/.m2/repository
29+
~/.gradle
30+
!~/.gradle/caches/*/plugin-resolution/
31+
!~/.m2/repository/org/openapitools/
32+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: |
34+
${{ runner.os }}-test-maven-plugin-${{ env.cache-name }}-
35+
${{ runner.os }}-test-maven-plugin-
36+
- name: Run tests
37+
env:
38+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
39+
run: |
40+
./mvnw clean install -DskipTests -Dmaven.javadoc.skip=true
41+
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
42+
./mvnw --no-snapshot-updates --quiet clean install -f modules/openapi-generator-maven-plugin/examples/multi-module/sample-external-ref-schema/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
43+
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
44+
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error

.github/workflows/maven-plugin-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ jobs:
4141
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
4242
./mvnw --no-snapshot-updates --quiet clean install -f modules/openapi-generator-maven-plugin/examples/multi-module/sample-external-ref-schema/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
4343
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
44-
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
45-
./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
44+
# test in JDK17 workflow instead
45+
#./mvnw --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error

.github/workflows/openapi-generator-test-results.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
report:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: dorny/test-reporter@v2
14+
- uses: dorny/test-reporter@v3
1515
with:
1616
artifact: surefire-test-results
1717
name: JUnit Test results

.github/workflows/samples-dotnet10.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- samples/client/petstore/csharp/generichost/latest/Tags
2929
- samples/client/petstore/csharp/generichost/latest/HelloWorld
3030
- samples/client/petstore/csharp/generichost/latest/OneOfList
31+
- samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset
3132
- samples/client/petstore/csharp/generichost/net10/AllOf
3233
- samples/client/petstore/csharp/generichost/net10/AnyOf
3334
- samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,29 @@ 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/native-jackson3-jspecify/**
12+
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
1113
- samples/client/others/java/webclient-sealedInterface/**
1214
- samples/client/others/java/webclient-sealedInterface_3_1/**
1315
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
1416
- samples/client/others/java/restclient-enum-in-multipart/**
1517
- samples/client/others/java/restclient-sealedInterface/**
18+
- samples/client/others/java/restclient-useAbstractionForFiles/**
1619
pull_request:
1720
paths:
1821
- samples/client/petstore/java/resttemplate-jakarta/**
1922
- samples/client/petstore/java/resttemplate-springBoot4-*/**
2023
- samples/client/petstore/java/webclient-jakarta/**
2124
- samples/client/petstore/java/restclient-*/**
2225
- samples/client/petstore/java/native-jackson3/**
26+
- samples/client/petstore/java/native-jackson3-jspecify/**
27+
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
2328
- samples/client/others/java/webclient-sealedInterface/**
2429
- samples/client/others/java/webclient-sealedInterface_3_1/**
2530
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
2631
- samples/client/others/java/restclient-enum-in-multipart/**
2732
- samples/client/others/java/restclient-sealedInterface/**
33+
- samples/client/others/java/restclient-useAbstractionForFiles/**
2834
jobs:
2935
build:
3036
name: Build Java Client JDK17
@@ -42,6 +48,8 @@ jobs:
4248
- samples/client/petstore/java/restclient-nullable-arrays
4349
- samples/client/petstore/java/restclient-springBoot4-jackson2
4450
- samples/client/petstore/java/restclient-springBoot4-jackson3
51+
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify
52+
- samples/client/petstore/java/native-jackson3-jspecify
4553
- samples/client/petstore/java/restclient-swagger2
4654
- samples/client/petstore/java/restclient-useSingleRequestParameter
4755
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
@@ -52,6 +60,7 @@ jobs:
5260
- samples/client/petstore/java/webclient-useSingleRequestParameter
5361
- samples/client/others/java/restclient-enum-in-multipart
5462
- samples/client/others/java/restclient-sealedInterface
63+
- samples/client/others/java/restclient-useAbstractionForFiles
5564
steps:
5665
- uses: actions/checkout@v5
5766
- uses: actions/setup-java@v5

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- samples/server/petstore/kotlin-springboot-reactive-without-flow
4040
- samples/server/petstore/kotlin-springboot-source-swagger1
4141
- samples/server/petstore/kotlin-springboot-source-swagger2
42-
- samples/server/petstore/kotlin-springboot-springfox
4342
- samples/server/petstore/kotlin-springboot-x-kotlin-implements
4443
- samples/server/petstore/kotlin-springboot-include-http-request-context-delegate
4544
- samples/server/petstore/kotlin-server/ktor2

.github/workflows/samples-python-client-echo-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- samples/client/echo_api/python
1919
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
2020
python-version:
21-
- "3.9"
2221
- "3.10"
2322
- "3.11"
2423
- "3.12"
2524
- "3.13"
25+
- "3.14"
2626
steps:
2727
- uses: actions/checkout@v5
2828
- uses: actions/setup-python@v6

.github/workflows/samples-python-petstore.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- samples/openapi3/client/petstore/python-aiohttp/**
7+
- samples/openapi3/client/petstore/python-httpx/**
78
- samples/openapi3/client/petstore/python/**
89
- .github/workflows/samples-python-petstore.yaml
910

@@ -27,11 +28,11 @@ jobs:
2728
fail-fast: false
2829
matrix:
2930
python-version:
30-
- "3.9"
3131
- "3.10"
3232
- "3.11"
3333
- "3.12"
3434
- "3.13"
35+
- "3.14"
3536
sample:
3637
- samples/openapi3/client/petstore/python-aiohttp
3738
- samples/openapi3/client/petstore/python-httpx

.github/workflows/samples-scala-jdk8.yaml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)