Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
02f432b
[java][okhttp] Add okhttp library supporting Gson, Jackson 2/3 and JS…
rar91279 Aug 19, 2026
15b7c37
[java] Rename okhttp-gson user-defined-templates config to match its …
rar91279 Aug 19, 2026
f3141fd
[java][okhttp] Add sample configurations for the okhttp library
rar91279 Aug 19, 2026
e8f10f9
[java][okhttp] Wire okhttp samples into CI and refresh generator docs
rar91279 Aug 19, 2026
cf8eb48
[java][okhttp] Regenerate samples for the okhttp library
rar91279 Aug 19, 2026
cafdd93
[java][okhttp] Regenerate samples against a clean build
rar91279 Aug 19, 2026
19d6117
[java][okhttp] Fix defects found in review of the new library
rar91279 Aug 19, 2026
cafcd91
[java][okhttp] Route the Jackson 3 JsonTypeName import through model.…
rar91279 Aug 19, 2026
3ae4290
Update generator docs: Add okhttp library details and support for `us…
rar91279 Aug 19, 2026
9e366d6
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 3, 2026
1b8663d
[java][okhttp] Adopt generateInsecureTlsHook and the collection-forma…
rar91279 Sep 3, 2026
8e3a141
[java][okhttp] Regenerate samples after the master merge and template…
rar91279 Sep 3, 2026
98e70bd
[java][okhttp] Address review findings: jsonb additionalProperties, b…
rar91279 Sep 3, 2026
b8112c1
[java][okhttp] Regenerate samples for the review fixes
rar91279 Sep 3, 2026
0a067d6
[java][okhttp] Fix the defects found in the five-agent sample review
rar91279 Sep 3, 2026
beb1c76
[java][okhttp] Regenerate samples for the review fixes
rar91279 Sep 3, 2026
ec5c82c
[java][okhttp] Close the okhttp-gson parity gaps: composed fromJson/t…
rar91279 Sep 4, 2026
d289677
[java][okhttp] Regenerate samples and port the invoker unit tests
rar91279 Sep 4, 2026
b6c18a6
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 4, 2026
45083ba
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 7, 2026
920a12a
[java][okhttp] Repoint the jackson/jsonb samples off the http-signatu…
rar91279 Sep 7, 2026
add7472
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 8, 2026
ff57109
[java][okhttp] Fix the defects found in the cubic review of the new l…
rar91279 Sep 8, 2026
69abe33
[java][okhttp] Build the jackson3 okhttp samples on JDK 17, not JDK 11
rar91279 Sep 8, 2026
b504403
fix from leak analyze of generated:
Sep 8, 2026
e9edfc5
fix from leak analysis of generated:
Sep 8, 2026
7fbdfd4
Fix missing semicolons in response close calls to ensure proper syntax
Sep 8, 2026
2fbd7e4
[java][okhttp] Add Jakarta EL and explicitly handle Bean Validation d…
rar91279 Sep 8, 2026
82f8bfe
[java][okhttp] Refactor imports, add unchecked JSON-B instance, impro…
rar91279 Sep 8, 2026
49d04be
[java][okhttp] Regenerate the okhttp samples after 82f8bfec184
rar91279 Sep 9, 2026
c532a71
[java][okhttp] Fix four JSON-B deserialization validation gaps
rar91279 Sep 9, 2026
18a40a3
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 9, 2026
60c5734
[java][okhttp] Add the Jackson Joda datatype module to the generated …
rar91279 Sep 9, 2026
1aa09f2
[java][okhttp] Delete stale user-defined-templates doc output
rar91279 Sep 9, 2026
309e21d
[java][okhttp] Fix two JSON-B additionalProperties serialization defects
rar91279 Sep 9, 2026
e373777
[java][okhttp] Fix seven defects found by a live PetClinic parameter …
rar91279 Sep 10, 2026
e44851c
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 14, 2026
17e8148
[java][okhttp] Keep additionalProperties across toBuilder()
rar91279 Sep 14, 2026
9a0e2ab
[java][okhttp] Stop setting useReflectionEqualsHashCode in okhttp con…
rar91279 Sep 14, 2026
a3c22df
Merge branch 'master' into java-generic-okhttp
rar91279 Sep 14, 2026
f169820
[java][okhttp] Regenerate okhttp-3.1 sample after merging master
rar91279 Sep 14, 2026
10b9597
Merge branch 'master' into java-generic-okhttp
rar91279 Oct 4, 2026
82795a1
[java][okhttp] Regenerate okhttp samples and docs after merging master
rar91279 Oct 4, 2026
4779fb5
[java][okhttp] List okhttp in the useJackson3 option description
rar91279 Oct 4, 2026
7ba89f4
[test][swift6] Pin generateAliasAsModel=false in nestedMapRefTypeTest
rar91279 Oct 1, 2026
bf46687
[java][okhttp] Serialize JSON header parameter content
rar91279 Oct 5, 2026
f71a2c1
[java][okhttp] Escape JavaDoc default values in generated API docs
rar91279 Oct 5, 2026
98df026
[java][okhttp] Do not seed addItem/putItem with the container default
rar91279 Oct 5, 2026
487aafc
[java][okhttp] Port the two inner-enum fixes from okhttp-gson
rar91279 Oct 5, 2026
a70c4fc
[java][okhttp] Update jackson-databind-nullable to 0.2.12
rar91279 Oct 5, 2026
c504caf
[java][okhttp] Make Gson oneOf/anyOf TypeAdapters null-safe
rar91279 Oct 5, 2026
3c849ef
[java][okhttp] Build the shared serializer eagerly in JSON
rar91279 Oct 5, 2026
cf23b9f
[java][okhttp] Detect byte[] responses independently of the serializer
rar91279 Oct 5, 2026
07ecf1e
[java][okhttp] Report OAuth token endpoint failures instead of sendin…
rar91279 Oct 5, 2026
2459810
[java][okhttp] Pass the token a request was sent with to updateAccess…
rar91279 Oct 5, 2026
9406758
[java][okhttp] Emit @XmlEnumValue from the raw enum value
rar91279 Oct 5, 2026
f9133eb
[java][okhttp] Serialize byte[] as base64 in the JSON-B variant
rar91279 Oct 5, 2026
6ad5274
[java][okhttp] Fall back to the raw body for String results in the JS…
rar91279 Oct 5, 2026
6c4821b
[java][okhttp] Omit the openapiFields sets from Jackson models
rar91279 Oct 5, 2026
a68f0c0
Fix cubicAI review concerns
rar91279 Oct 5, 2026
6a7029a
[java][okhttp] Import Arrays and Map in Jackson models only when used
rar91279 Oct 5, 2026
7a3905f
[java][okhttp] Handle JSON-B parents without a discriminator
rar91279 Oct 5, 2026
e89845d
Merge branch 'master' into java-generic-okhttp
rar91279 Oct 5, 2026
43c475e
[java][okhttp] Validate string enum values excluded by not (port of #…
rar91279 Oct 5, 2026
8f955bc
[java][okhttp] Enforce inherited not-enum constraints in Gson models
rar91279 Oct 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .github/workflows/gradle-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
- samples/client/petstore/java/jersey2-java8
- samples/client/petstore/java/okhttp-gson
- samples/client/petstore/java/okhttp-gson-group-parameter
- samples/client/petstore/java/okhttp
- samples/client/petstore/java/okhttp-group-parameter
- samples/client/petstore/java/webclient-swagger2
- samples/client/petstore/java/native
- samples/client/petstore/java/native-jakarta
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/samples-java-client-echo-api-jdk8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- samples/client/echo_api/java/apache-httpclient/**
- samples/client/echo_api/java/feign-gson/**
- samples/client/echo_api/java/okhttp-gson/**
- samples/client/echo_api/java/okhttp/**
- samples/client/echo_api/java/resttemplate/**
- samples/client/echo_api/java/resteasy/**
pull_request:
paths:
- samples/client/echo_api/java/apache-httpclient/**
- samples/client/echo_api/java/feign-gson/**
- samples/client/echo_api/java/okhttp-gson/**
- samples/client/echo_api/java/okhttp/**
- samples/client/echo_api/java/resteasy/**
jobs:
build:
Expand All @@ -26,6 +28,7 @@ jobs:
- samples/client/echo_api/java/apache-httpclient
- samples/client/echo_api/java/feign-gson
- samples/client/echo_api/java/okhttp-gson
- samples/client/echo_api/java/okhttp
Comment thread
rar91279 marked this conversation as resolved.
- samples/client/echo_api/java/resttemplate
- samples/client/echo_api/java/resteasy
steps:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/samples-java-client-jdk11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ on:
- samples/openapi3/client/petstore/java/native**
- samples/client/others/java/okhttp-gson-oneOf/**
- samples/client/others/java/okhttp-gson-oneOf-array/**
- samples/client/others/java/okhttp-oneOf/**
- samples/client/others/java/okhttp-oneOf-array/**
- samples/client/others/java/okhttp-jackson-oneOf/**
- samples/client/others/java/okhttp-jsonb-oneOf/**
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
- samples/client/others/java/webclient-useAbstractionForFiles/**
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
- samples/client/others/java/jersey2-oneOf-duplicates/**
- samples/client/others/java/jersey2-oneOf-Mixed/**
- samples/client/others/java/okhttp-gson-streaming/**
- samples/client/others/java/okhttp-streaming/**
- samples/client/echo_api/java/okhttp**
- samples/client/others/java/resteasy/**
- samples/client/others/java/apache-httpclient/**
- samples/client/others/java/resttemplate-list-schema-validation/**
Expand All @@ -35,12 +41,18 @@ on:
- samples/openapi3/client/petstore/java/native**
- samples/client/others/java/okhttp-gson-oneOf/**
- samples/client/others/java/okhttp-gson-oneOf-array/**
- samples/client/others/java/okhttp-oneOf/**
- samples/client/others/java/okhttp-oneOf-array/**
- samples/client/others/java/okhttp-jackson-oneOf/**
- samples/client/others/java/okhttp-jsonb-oneOf/**
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
- samples/client/others/java/webclient-useAbstractionForFiles/**
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
- samples/client/others/java/jersey2-oneOf-duplicates/**
- samples/client/others/java/jersey2-oneOf-Mixed/**
- samples/client/others/java/okhttp-gson-streaming/**
- samples/client/others/java/okhttp-streaming/**
- samples/client/echo_api/java/okhttp**
- samples/client/others/java/resteasy/**
- samples/client/others/java/apache-httpclient/**
- samples/client/others/java/resttemplate-list-schema-validation/**
Expand Down Expand Up @@ -94,24 +106,44 @@ jobs:
- samples/client/petstore/java/feign-hc5
- samples/client/petstore/java/feign-no-nullable
- samples/client/petstore/java/okhttp-gson-awsv4signature
- samples/client/petstore/java/okhttp-awsv4signature
- samples/openapi3/client/petstore/java/jersey2-java8-special-characters
- samples/openapi3/client/petstore/java/native
- samples/client/petstore/java/okhttp-gson-swagger1/
- samples/client/petstore/java/okhttp-swagger1/
- samples/client/petstore/java/resttemplate-swagger1/
- samples/openapi3/client/petstore/java/jersey2-java8-swagger1/
- samples/client/petstore/java/okhttp-gson-swagger2/
- samples/client/petstore/java/okhttp-swagger2/
- samples/client/petstore/java/resttemplate-swagger2/
- samples/openapi3/client/petstore/java/jersey2-java8-swagger2/
- samples/client/others/java/okhttp-gson-oneOf/
- samples/client/others/java/okhttp-gson-oneOf-array/
- samples/client/others/java/okhttp-oneOf/
- samples/client/others/java/okhttp-oneOf-array/
- samples/client/others/java/okhttp-jackson-oneOf/
- samples/client/others/java/okhttp-jsonb-oneOf/
- samples/client/echo_api/java/okhttp-gson-user-defined-templates/
- samples/client/echo_api/java/okhttp-user-defined-templates/
- samples/client/echo_api/java/okhttp-jackson-user-defined-templates/
- samples/client/others/java/resttemplate-useAbstractionForFiles/
- samples/client/others/java/webclient-useAbstractionForFiles/
- samples/client/others/java/jersey2-oneOf-duplicates/
- samples/client/others/java/jersey2-oneOf-Mixed/
- samples/client/others/java/resttemplate-list-schema-validation/
- samples/client/petstore/java/okhttp-gson-3.1-duplicated-operationid/
- samples/client/petstore/java/okhttp-3.1-duplicated-operationid/
- samples/client/others/java/okhttp-gson-streaming/
- samples/client/others/java/okhttp-streaming/
- samples/client/petstore/java/okhttp-jackson/
- samples/client/petstore/java/okhttp-jsonb/
- samples/client/petstore/java/okhttp-jackson-jspecify/
- samples/client/petstore/java/okhttp-jsonb-jspecify/
- samples/client/petstore/java/okhttp-nullable-required/
- samples/client/petstore/java/okhttp-jackson-nullable-required/
- samples/client/petstore/java/okhttp-jsonb-nullable-required/
- samples/client/petstore/java/okhttp-group-parameter/
- samples/client/petstore/java/okhttp-parcelableModel/
- samples/client/petstore/java/resteasy/
- samples/client/petstore/java/apache-httpclient/
steps:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/samples-java-client-jdk17.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- samples/client/petstore/java/restclient-*/**
- samples/client/petstore/java/native-jackson3/**
- samples/client/petstore/java/apache-httpclient-jackson3/**
- samples/client/petstore/java/okhttp-jackson3/**
- samples/client/petstore/java/okhttp-jackson3-jspecify/**
- samples/client/others/java/okhttp-jackson3-oneOf/**
- samples/client/petstore/java/native-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable/**
Expand All @@ -31,6 +34,9 @@ on:
- samples/client/petstore/java/restclient-*/**
- samples/client/petstore/java/native-jackson3/**
- samples/client/petstore/java/apache-httpclient-jackson3/**
- samples/client/petstore/java/okhttp-jackson3/**
- samples/client/petstore/java/okhttp-jackson3-jspecify/**
- samples/client/others/java/okhttp-jackson3-oneOf/**
- samples/client/petstore/java/native-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify/**
- samples/client/petstore/java/restclient-springBoot4-jackson3-jspecify-openapiNullable/**
Expand Down Expand Up @@ -70,6 +76,9 @@ jobs:
- samples/client/petstore/java/restclient-useSingleRequestParameter-static
- samples/client/petstore/java/native-jackson3
- samples/client/petstore/java/apache-httpclient-jackson3
- samples/client/petstore/java/okhttp-jackson3
- samples/client/petstore/java/okhttp-jackson3-jspecify
- samples/client/others/java/okhttp-jackson3-oneOf
- samples/client/others/java/webclient-sealedInterface
- samples/client/others/java/webclient-sealedInterface_3_1
- samples/client/petstore/java/webclient-springBoot4-jackson3
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/samples-java-petsore-client-jdk11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- samples/client/petstore/java/okhttp-gson/**
- samples/client/petstore/java/okhttp-gson-3.1/**
- samples/client/petstore/java/okhttp-gson-dynamicOperations/**
- samples/client/petstore/java/okhttp/**
- samples/client/petstore/java/okhttp-3.1/**
- samples/client/petstore/java/okhttp-dynamicOperations/**
- samples/client/petstore/java-micronaut-client/**
pull_request:
paths:
Expand All @@ -17,6 +20,9 @@ on:
- samples/client/petstore/java/okhttp-gson/**
- samples/client/petstore/java/okhttp-gson-3.1/**
- samples/client/petstore/java/okhttp-gson-dynamicOperations/**
- samples/client/petstore/java/okhttp/**
- samples/client/petstore/java/okhttp-3.1/**
- samples/client/petstore/java/okhttp-dynamicOperations/**
- samples/client/petstore/java-micronaut-client/**
jobs:
build:
Expand All @@ -31,6 +37,9 @@ jobs:
- samples/client/petstore/java/okhttp-gson
- samples/client/petstore/java/okhttp-gson-3.1
- samples/client/petstore/java/okhttp-gson-dynamicOperations
- samples/client/petstore/java/okhttp
- samples/client/petstore/java/okhttp-3.1
- samples/client/petstore/java/okhttp-dynamicOperations
- samples/client/petstore/java-micronaut-client
services:
petstore-api:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/samples-java-sbt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
paths:
- 'samples/client/petstore/java/okhttp-gson/**'
- 'samples/client/petstore/java/okhttp/**'
pull_request:
paths:
- 'samples/client/petstore/java/okhttp-gson/**'
- 'samples/client/petstore/java/okhttp/**'
jobs:
build:
name: Build sbt/Java client, servers
Expand All @@ -17,6 +19,7 @@ jobs:
sample:
# clients
- samples/client/petstore/java/okhttp-gson
- samples/client/petstore/java/okhttp
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
Expand Down
13 changes: 13 additions & 0 deletions bin/configs/java-okhttp-3.1-duplicated-operationid.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-3.1-duplicated-operationid
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_1/java/duplicated_operationid.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
validateSpec: false
additionalProperties:
serializationLibrary: gson
artifactId: petstore-okhttp-31-do
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: false
openapiNormalizer:
FIX_DUPLICATED_OPERATIONID: true
21 changes: 21 additions & 0 deletions bin/configs/java-okhttp-3.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-3.1
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_1/java/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
validateSpec: false
nameMappings:
_type: underscoreType
type_: typeWithUnderscore
parameterNameMappings:
_type: underscoreType
type_: typeWithUnderscore
additionalProperties:
serializationLibrary: gson
artifactId: petstore-okhttp-31
hideGenerationTimestamp: "true"
useOneOfDiscriminatorLookup: "true"
disallowAdditionalPropertiesIfNotPresent: false
enumPropertyNaming: legacy
openapiNormalizer:
FIX_DUPLICATED_OPERATIONID: true
12 changes: 12 additions & 0 deletions bin/configs/java-okhttp-awsv4signature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-awsv4signature
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
serializationLibrary: gson
artifactId: okhttp-awsv4signature
hideGenerationTimestamp: "true"
useOneOfDiscriminatorLookup: "true"
disallowAdditionalPropertiesIfNotPresent: false
withAWSV4Signature: true
10 changes: 10 additions & 0 deletions bin/configs/java-okhttp-dynamicOperations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-dynamicOperations
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
serializationLibrary: gson
artifactId: petstore-okhttp-dynamicoperations
hideGenerationTimestamp: "true"
dynamicOperations: "true"
9 changes: 9 additions & 0 deletions bin/configs/java-okhttp-echo-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
generatorName: java
outputDir: samples/client/echo_api/java/okhttp
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
serializationLibrary: gson
artifactId: echo-api-okhttp
hideGenerationTimestamp: "true"
11 changes: 11 additions & 0 deletions bin/configs/java-okhttp-group-parameter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-group-parameter
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-group-parameter.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
serializationLibrary: gson
artifactId: petstore-okhttp-group-parameter
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: false
useSingleRequestParameter: true
17 changes: 17 additions & 0 deletions bin/configs/java-okhttp-gson-user-defined-templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
generatorName: java
outputDir: samples/client/echo_api/java/okhttp-gson-user-defined-templates
library: okhttp-gson
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
hideGenerationTimestamp: "true"
files:
README.mustache:
destinationFilename: info.md
api_doc.mustache:
templateType: APIDocs
destinationFilename: Documentation.md
pojo.mustache:
templateType: Model
folder: modelCopy
destinationFilename: .java
16 changes: 16 additions & 0 deletions bin/configs/java-okhttp-jackson-jspecify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-jackson-jspecify
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
validateSpec: false
additionalProperties:
serializationLibrary: jackson
artifactId: petstore-okhttp-jackson-jspecify
hideGenerationTimestamp: "true"
generateBuilders: true
openApiNullable: "false"
useJspecify: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
11 changes: 11 additions & 0 deletions bin/configs/java-okhttp-jackson-nullable-required.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-jackson-nullable-required
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
serializationLibrary: jackson
artifactId: nullable-required-okhttp-jackson
hideGenerationTimestamp: "true"
useOneOfDiscriminatorLookup: "true"
disallowAdditionalPropertiesIfNotPresent: false
9 changes: 9 additions & 0 deletions bin/configs/java-okhttp-jackson-oneOf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
generatorName: java
outputDir: samples/client/others/java/okhttp-jackson-oneOf
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_twoPrimitives.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: okhttp-jackson-oneOf
hideGenerationTimestamp: "true"
serializationLibrary: jackson
17 changes: 17 additions & 0 deletions bin/configs/java-okhttp-jackson-user-defined-templates.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
generatorName: java
outputDir: samples/client/echo_api/java/okhttp-jackson-user-defined-templates
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: echo-api-okhttp-jackson-user-defined-templates
hideGenerationTimestamp: "true"
serializationLibrary: jackson
files:
api_doc.mustache:
templateType: APIDocs
destinationFilename: .md
pojo.mustache:
templateType: Model
folder: modelCopy
destinationFilename: .java
27 changes: 27 additions & 0 deletions bin/configs/java-okhttp-jackson.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-jackson
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-okhttp-gson.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
nameMappings:
_type: underscoreType
type_: typeWithUnderscore
parameterNameMappings:
_type: underscoreType
type_: typeWithUnderscore
additionalProperties:
serializationLibrary: jackson
openApiNullable: "false"
defaultToEmptyContainer: "array?|array|map?"
artifactId: petstore-okhttp-jackson2
hideGenerationTimestamp: "true"
useOneOfDiscriminatorLookup: true
disallowAdditionalPropertiesIfNotPresent: false
generateBuilders: true
removeEnumValuePrefix: true
enumNameMappings:
s: LOWER_CASE_S
S: UPPER_CASE_S
operationIdNameMappings:
getArrayOfEnums: getFakeArrayofenums
fakeHealthGet: getFakeHealth
17 changes: 17 additions & 0 deletions bin/configs/java-okhttp-jackson3-jspecify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
generatorName: java
outputDir: samples/client/petstore/java/okhttp-jackson3-jspecify
library: okhttp
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/jspecify.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
validateSpec: false
additionalProperties:
serializationLibrary: jackson
artifactId: petstore-okhttp-jackson3-jspecify
hideGenerationTimestamp: "true"
generateBuilders: true
useJackson3: "true"
openApiNullable: "false"
useJspecify: true
typeMappings:
OffsetDateTime: java.time.Instant
BigDecimal: java.math.BigDecimal
Loading