Skip to content

Commit 89db019

Browse files
committed
Merge branch 'master' into bugfix/pageable-scan-resolve-allof-constraints
# Conflicts: # modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java
2 parents 1f6e6ed + 74f7b07 commit 89db019

231 files changed

Lines changed: 10768 additions & 159 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/samples-kotlin-client.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ on:
77
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
88
- samples/client/others/kotlin-integer-enum/**
99
- samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/**
10+
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization*/**
11+
- samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization*/**
1012
pull_request:
1113
paths:
1214
- 'samples/client/petstore/kotlin*/**'
1315
- 'samples/client/others/kotlin-jvm-okhttp-parameter-tests/**'
1416
- samples/client/others/kotlin-integer-enum/**
15-
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization/**
1617
- samples/client/others/kotlin-jvm-spring-3-restclient-nullable-return/**
18+
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization*/**
19+
- samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization*/**
1720

1821
jobs:
1922
build:
@@ -78,6 +81,8 @@ jobs:
7881
- samples/client/petstore/kotlin-allOf-discriminator-kotlinx-serialization
7982
- samples/client/others/kotlin-oneOf-discriminator-kotlinx-serialization
8083
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization
84+
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization-nonPublicApi
85+
- samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization-explicitApi
8186
steps:
8287
- uses: actions/checkout@v5
8388
- uses: actions/setup-java@v5

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
- 'samples/server/petstore/kotlin-spring-sealed-interfaces/**'
1515
- 'samples/server/petstore/kotlin-springboot-sort-validation/**'
1616
- 'samples/server/petstore/kotlin-springboot-paged-model/**'
17+
- 'samples/server/petstore/kotlin-server/ktor-delegate-pattern/generated/**'
1718
# comment out due to gradle build failure
1819
# - samples/server/petstore/kotlin-spring-default/**
1920
pull_request:
@@ -29,6 +30,7 @@ on:
2930
- 'samples/server/petstore/kotlin-spring-sealed-interfaces/**'
3031
- 'samples/server/petstore/kotlin-springboot-sort-validation/**'
3132
- 'samples/server/petstore/kotlin-springboot-paged-model/**'
33+
- 'samples/server/petstore/kotlin-server/ktor-delegate-pattern/generated/**'
3234
# comment out due to gradle build failure
3335
# - samples/server/petstore/kotlin-spring-default/**
3436

@@ -63,6 +65,7 @@ jobs:
6365
- samples/server/petstore/kotlin-server/javalin
6466
- samples/server/petstore/kotlin-server/javalin-6
6567
- samples/server/petstore/kotlin-server/ktor
68+
- samples/server/petstore/kotlin-server/ktor-delegate-pattern/generated
6669
- samples/server/petstore/kotlin-server/ktor2
6770
- samples/server/petstore/kotlin-server-modelMutable
6871
- samples/server/petstore/kotlin-misk

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818
- samples/server/petstore/springboot-paged-model/**
1919
- samples/openapi3/server/petstore/spring-boot-oneof-sealed/**
2020
- samples/openapi3/server/petstore/spring-boot-oneof-interface/**
21+
- samples/client/petstore/spring-http-interface-oauth/**
2122
pull_request:
2223
paths:
2324
- samples/openapi3/client/petstore/spring-cloud-3-with-optional/**
@@ -35,6 +36,7 @@ on:
3536
- samples/server/petstore/springboot-paged-model/**
3637
- samples/openapi3/server/petstore/spring-boot-oneof-sealed/**
3738
- samples/openapi3/server/petstore/spring-boot-oneof-interface/**
39+
- samples/client/petstore/spring-http-interface-oauth/**
3840
jobs:
3941
build:
4042
name: Build Java Spring (JDK17)
@@ -60,6 +62,7 @@ jobs:
6062
- samples/server/petstore/springboot-paged-model
6163
- samples/openapi3/server/petstore/spring-boot-oneof-sealed
6264
- samples/openapi3/server/petstore/spring-boot-oneof-interface
65+
- samples/client/petstore/spring-http-interface-oauth
6366
steps:
6467
- uses: actions/checkout@v5
6568
- uses: actions/setup-java@v5

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,6 @@ samples/client/jetbrains/adyen/checkout71/http/client/Apis/http-client.private.e
312312

313313
# Generated by the run-in-docker.sh
314314
\?/
315+
316+
# AI agent caches
317+
.junie

CI/circle_parallel.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,5 @@ elif [ "$NODE_INDEX" = "3" ]; then
4343
else
4444
echo "Running node $NODE_INDEX ..."
4545
java -version
46-
./mvnw clean install
4746

4847
fi
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
generatorName: kotlin
2+
outputDir: samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization-explicitApi
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/oneof-anyof-non-discriminator.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
5+
additionalProperties:
6+
artifactId: kotlin-oneOf-anyOf-kotlinx-serialization
7+
serializableModel: "false"
8+
dateLibrary: java8
9+
library: jvm-retrofit2
10+
enumUnknownDefaultCase: true
11+
serializationLibrary: kotlinx_serialization
12+
generateOneOfAnyOfWrappers: true
13+
explicitApi: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
generatorName: kotlin
2+
outputDir: samples/client/others/kotlin-oneOf-anyOf-kotlinx-serialization-nonPublicApi
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/kotlin/oneof-anyof-non-discriminator.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/kotlin-client
5+
additionalProperties:
6+
artifactId: kotlin-oneOf-anyOf-kotlinx-serialization
7+
serializableModel: "false"
8+
dateLibrary: java8
9+
library: jvm-retrofit2
10+
enumUnknownDefaultCase: true
11+
serializationLibrary: kotlinx_serialization
12+
generateOneOfAnyOfWrappers: true
13+
nonPublicApi: true
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: kotlin-server
2+
outputDir: samples/server/petstore/kotlin-server/ktor-delegate-pattern/generated
3+
library: ktor
4+
inputSpec: modules/openapi-generator/src/test/resources/3_1/petstore.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/kotlin-server
6+
additionalProperties:
7+
hideGenerationTimestamp: "true"
8+
serializableModel: "true"
9+
delegatePattern: "true"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
generatorName: spring
2+
library: spring-http-interface
3+
outputDir: samples/client/petstore/spring-http-interface-oauth
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-addpet-only.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
6+
additionalProperties:
7+
artifactId: spring-http-interface-oauth-petstore
8+
snapshotVersion: "true"
9+
hideGenerationTimestamp: "true"
10+
modelNameSuffix: 'Dto'
11+
generatedConstructorWithRequiredArgs: "false"
12+
clientRegistrationId: "petstore-oauth"
13+
useSpringBoot4: "true"
14+
useJackson3: true
15+
openApiNullable: false

docs/generators/java-camel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
4343
|camelSecurityDefinitions|generate camel security definitions| |true|
4444
|camelUseDefaultValidationErrorProcessor|generate default validation error processor| |true|
4545
|camelValidationErrorProcessor|validation error processor bean name| |validationErrorProcessor|
46+
|clientRegistrationId|Client registration ID for OAuth2 in Spring HTTP Interface (@ClientRegistrationId annotation). Requires library=spring-http-interface and useSpringBoot4=true (Spring Security 7).| |null|
4647
|configPackage|configuration package for generated code| |org.openapitools.configuration|
4748
|containerDefaultToNull|Set containers (array, set, map) default to null| |false|
4849
|dateLibrary|Option. Date library to use|<dl><dt>**joda**</dt><dd>Joda (for legacy app only)</dd><dt>**legacy**</dt><dd>Legacy java.util.Date</dd><dt>**java8-localdatetime**</dt><dd>Java 8 using LocalDateTime (for legacy app only)</dd><dt>**java8**</dt><dd>Java 8 native JSR310 (preferred for jdk 1.8+)</dd></dl>|java8|

0 commit comments

Comments
 (0)