Skip to content

Commit 7a25329

Browse files
committed
feat: add configuration files for optional getters in Java clients
1 parent 5e85ed2 commit 7a25329

5 files changed

Lines changed: 78 additions & 0 deletions

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ivm-java openjdk-21.0.8
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-optional-getters
3+
library: restclient
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
validateSpec: false
7+
additionalProperties:
8+
artifactId: petstore-restclient-optional-getters
9+
hideGenerationTimestamp: "true"
10+
containerDefaultToNull: "true"
11+
useSpringBoot4: true
12+
useJackson3: true
13+
openApiNullable: false
14+
useJspecify: true
15+
optionalGettersForNullableFieldsOnly: "true"
16+
typeMappings:
17+
OffsetDateTime: java.time.Instant
18+
BigDecimal: java.math.BigDecimal
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify-optional-getters
3+
library: resttemplate
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
validateSpec: false
7+
additionalProperties:
8+
artifactId: petstore-resttemplate-optional-getters
9+
hideGenerationTimestamp: "true"
10+
containerDefaultToNull: "true"
11+
useJakartaEe: true
12+
useSpringBoot4: true
13+
useJackson3: true
14+
openApiNullable: false
15+
useJspecify: true
16+
optionalGettersForNullableFieldsOnly: "true"
17+
typeMappings:
18+
OffsetDateTime: java.time.Instant
19+
BigDecimal: java.math.BigDecimal
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/webclient-springBoot4-jackson3-jspecify-optional-getters
3+
library: webclient
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
validateSpec: false
7+
additionalProperties:
8+
artifactId: petstore-webclient-optional-getters
9+
hideGenerationTimestamp: "true"
10+
containerDefaultToNull: "true"
11+
useSpringBoot4: true
12+
useJackson3: true
13+
openApiNullable: false
14+
useJspecify: true
15+
optionalGettersForNullableFieldsOnly: "true"
16+
typeMappings:
17+
OffsetDateTime: java.time.Instant
18+
BigDecimal: java.math.BigDecimal
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
generatorName: spring
2+
library: spring-boot
3+
outputDir: samples/openapi3/server/petstore/springboot-4-jspecify-optional-getters
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/JavaSpring
6+
validateSpec: false
7+
additionalProperties:
8+
groupId: org.openapitools.openapi3
9+
documentationProvider: springdoc
10+
interfaceOnly: true
11+
artifactId: springboot-optional-getters
12+
snapshotVersion: "true"
13+
useSpringBoot4: true
14+
useJackson3: true
15+
useBeanValidation: true
16+
withXml: true
17+
hideGenerationTimestamp: "true"
18+
generateConstructorWithAllArgs: true
19+
generateBuilders: true
20+
openApiNullable: false
21+
useJspecify: true
22+
optionalGettersForNullableFieldsOnly: "true"

0 commit comments

Comments
 (0)