Christopher Molin
fdda9fc54c
[Java] Replace if with ? in Generated toIndentedString-methods ( #23209 )
...
* [Java] Refactor `toIndentedString`-method to use `String::valueOf`
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Replace Conventional if-statment with Ternary Operator in `toIndentedString`-methods
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Generate `j*` Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Generate `spring*` Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Generate `java-*` Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Generate `java-*` Samples
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
---------
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
2026-03-17 12:30:52 +08:00
Thorsten Hirsch
300e585a78
feature/jackson3 native ( fixes #22294 ) ( #23071 )
...
* add jackson 3 support to java native
* upgrade to jackson 3.0.4, fix whitespaces
* remove importMapping.put section
* require Java 17 for Jackson 3
* fix cubic-dev-ai issues, fix unit tests
* fix more cubic-dev-ai findings, includes a solution for missing jackson-databind-nullable
* use SerializationContext instead of SerializerProvider
* use JsonMapper instead of ObjectMapper for Jackson 3
* also fix Mapper in JSON.java for Jackson 3
* update samples
* fix mapper.copy()
* add JacksonException handling
* remove IOException where not thrown anymore
* Update jackson_annotations_version in build.gradle.mustache
* update samples after rebase
* fix FakeApi integration test
* add native-jackson3 to samples-java-client-jdk17 workflow
* fix compile errors
* update samples and docs
* update Jackson to v3.1.0, use {{jacksonPackage}}
* update docs and samples
* Update Jackson 3 compatibility note in documentation
Clarify the incompatibility of Jackson 3 with openApiNullable in the documentation.
* update the correct documentation
* Update docs/generators/java-microprofile.md once again
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* fail when an unsupported combination of parameters is used
* update docs
* add openApiNullable=false
* fix resttemplate and webclient
* sync docs: incompatible with openApiNullable
* update resttemplate/webclient with ai magic
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-03-13 16:36:05 +08:00
Mateusz "Serafin" Gajewski
2d82875882
Jackson deserializers fail when FAIL_ON_TRAILING_TOKENS is enabled due to parser.readValueAsTree() ( #23147 )
...
* Fix incorrect tree parsing with Jackson
* Regenerate Java samples
2026-03-06 22:18:45 +08:00
William Cheng
cbdee19f87
Update jackson dependencies in Java clients to newer versions ( #23105 )
...
* update jackson in java clients to newer versions
* revert doc
* update annotation
* update fegin
* update
2026-03-04 02:18:50 +08:00
William Cheng
9432aaf4a3
Prepare 7.21.0 snapshot ( #22984 )
...
* Revert "v7.20.0 release (#22983 )"
This reverts commit bd7fc7f45f .
* update to v7.21.0 snapshot version
* update samples, docs
* update readme
2026-02-16 19:08:09 +08:00
William Cheng
38f0796759
Update jackson-databind-nullable to v0.2.9 ( #22901 )
...
* update jackson databind nullable to v0.2.9
* update samples
2026-02-05 16:55:15 +08:00
William Cheng
9adfe986a3
Prepare v7.20.0 release ( #22738 )
...
* Revert "v7.19.0 release (#22732 )"
This reverts commit ff400e9a31 .
* prepare v7.20.0 release
* update samples
* update doc
2026-01-20 03:13:58 +08:00
William Cheng
23eff6672f
Prepare v7.19.0 snapshot ( #22569 )
...
* Revert "7.18.0 release (#22567 )"
This reverts commit 51228436e0 .
* prepare 7.19.0 snapshot
* update samples
* update doc
* fix date
2025-12-22 19:25:23 +08:00
Christopher Molin
149fdcb61f
[Java] Use Fully Qualified Name for java.util.Locale in Generated Classes ( #22342 )
...
* Remove Imports of `Locale` from all `model.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `modelEnum.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `oneof_model.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `api.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `anyof_model.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `pojo.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `ApiClient.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `ApiKeyAuth.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `JSON.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `HttpSignatureAuth.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `Play24CallFactory.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `Play25CallFactory.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `Play26CallFactory.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `apiException.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `clientConfiguration.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `RequestFactory.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `httpLoggingFilter.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `securityApiUtils.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Remove Imports of `Locale` from all `validatorUtils.mustache`-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Use `Locale`-class Via Fully Qualified Name
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated 'sample'-files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Revert Changes
* Inline `Locale` Imports
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated 'source' Files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update `kotlin-spring/model.mustache`
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated 'sample' Files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated 'sample' Files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated 'java-feign-hc5' Sample Files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Sample Files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
* Update Generated Kotlin Sample Files
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
---------
Signed-off-by: Chrimle <28791817+Chrimle@users.noreply.github.com >
2025-12-17 15:15:32 +08:00
William Cheng
59f7d09c2e
[java][jersey2][jersey3] Cleanup samples ( #22328 )
...
* clean up java jersey3 smaples
* clean up jersey3 samples
* update tests
2025-11-12 15:40:19 +08:00
William Cheng
1e614d4b96
update samples
2025-10-31 16:07:52 +08:00
Marcel Jacek
66b742038a
fix(java): default values from allOfs are not correctly definied ( #22200 )
...
* fix: extend check for default values of integer and number schema
* add testcases to openapi specs
* generate java clients with the updated fix
2025-10-31 15:58:20 +08:00
William Cheng
f9d2b8b579
Prepare v7.18.0 release ( #22250 )
...
* Revert "v7.17.0 release (#22248 )"
This reverts commit 0120486e62 .
* prepare v7.18.0 release
* update samples
* update doc
2025-10-30 01:25:35 +08:00
William Cheng
9d810e0fbb
update jackson databind nullable to v0.2.8 ( #22230 )
2025-10-27 00:35:51 +08:00
jheyens
ce1e9e0866
Jersey2/3: Fixes a bug in OAuth token renewal, where the previous HTTP 401 code is reused even after the retry succeeds ( #22134 )
...
* Jersey2/3: Fix a bug where, when using OAuth, the HTTP 401 status code persisted even if the second request after renewing the Bearer access token succeeded
* Jersey2/3: Regenerate samples
2025-10-16 16:32:05 +08:00
William Cheng
885ea07b17
Prepare 7.17.0 ( #22040 )
...
* Revert "v7.16.0 release"
This reverts commit 31299af0fc .
* prepare 7.17.0-SNAPSHOT
* update doc, samples
2025-09-28 17:25:13 +08:00
Tilman Holube
75804e4e31
Bump Jackson to 2.19.2 and databind-nullable to 0.2.7 ( #22017 )
2025-09-24 13:49:19 +08:00
William Cheng
6e443f1354
fix: honor required fields in jackson @JsonProperty annotations ( #21876 )
...
* fix: honor required fields in jackson @JsonProperty annotations
* add samples
* fix: trigger build
* fix: undo
* update to handle nullable as well
---------
Co-authored-by: Erik Lagerholm <erik.lagerholm@volvocars.com >
2025-09-03 16:41:59 +08:00
Jochen Schalanda
babb3e272b
[Java] Add missing Locale to String.format() invocations ( #21871 )
...
* [Java] Add missing Locale to String.format() invocations
* chore: ./bin/generate-samples.sh ./bin/configs/*.yaml
2025-09-03 14:52:49 +08:00
Jochen Schalanda
d1df75c61d
[Java] Remove unnecessary String.format from jersey2, jersey3, native ( #21870 )
2025-09-03 14:17:49 +08:00
William Cheng
20be2decde
Prepare v7.16.0 release ( #21794 )
...
* Revert "v7.15.0 release (#21792 )"
This reverts commit 2c816f89cb .
* prepare 7.15.0 release
* update samples
2025-08-22 19:17:23 +08:00
Iurii Ignatko
f5da0ea4a1
Remove [this-escape] warnings in generated ApiClient classes ( #21620 )
2025-07-28 16:43:14 +08:00
Ron Reynolds
cfe476f32d
immutable Pair, better performant HttpBearerAuth, consistent code-style ( #20743 )
...
* make Pair immutable and in google-code-style
* apply google-code-style to JavaTimeFormatter (to make it consistent with most other auto-generated java)
* move upperCaseBearer to ctor (scheme is final and private; only needs to be fixed once); also replaced Optional with ternary (perf and cleaner code)
* apply google-code-style to Authentication to make it consistent with rest of auth code
* fresh samples
2025-06-26 17:10:36 +08:00
William Cheng
046be5dba1
Prepare 7.15.0 ( #21445 )
...
* Revert "v7.14.0 release (#21443 )"
This reverts commit 5eb083e5ce .
* prepare v7.15.0 snapshot
* update samples
* update readme
* update doc
2025-06-25 21:34:58 +08:00
Steven Blakowski
cef971cf9a
[Java][RestTemplate] Gradle Build include non-compatible Spring Dependency with jakarta disabled ( #21426 )
...
* [Java][resttemplate] fix spring-web dependency for gradle without jakarta enabled
* fix samples
2025-06-19 16:11:37 +08:00
William Cheng
bce88c93ba
update swagger pareer to 2.1.28 ( #21325 )
2025-06-02 15:33:27 +08:00
Alex B
57bf6925bb
[Java] Make Java ApiClient extendable ( #21251 )
...
* Make all Java ApiClients in templates extendable
* Make all Java ApiClients in samples extendable
* Fix compilation of enum constructor
* Fix compilation of enum constructor in templates
2025-05-11 22:47:40 +08:00
ksn-partisia
ecd5d253a8
[Bug] [Java] Fix java compilation warnings in RFC3339JavaTimeModule and RFC3339InstantDeserializer ( #21243 )
...
* Fix java compilation warnings in RFC3339JavaTimeModule and RFC3339InstantDeserializer
* Regen missing samples
2025-05-09 11:00:07 +08:00
martin-mfg
9a289e9713
adjust jersey2/jersey3 templates ( #21171 )
...
* respect useJakartaEE in jersey3
* useJakarteEE=true in jersey3 samples
* don't force jakarta package for jersey3
* adjust whitespace between jersey2 and jersey3
* enforce useJakartaEe for jersey3, warn on misuse for jersey 2
* set useJakartaEe for jersey3, generate samples
2025-04-29 15:01:43 +08:00
William Cheng
dbf720c093
Prepare 7.14.0 release ( #21159 )
...
* Revert "v7.13.0 release (#21157 )"
This reverts commit 4b805ff6b7 .
* prepare v7.14.0 release
* update samples
2025-04-27 22:04:03 +08:00
Michael Düsterhus
27a705efd5
[fix][java]Add missing generated annotation to Authentication.mustache ( #21125 )
...
* Add generated annotation to Authentication.mustache
* Update Authentication.mustache jersey2
* Update Authentication.mustache jersey3
* Update Authentication.mustache okhttp
* Update Authentication.mustache restclient
* Update Authentication.mustache resttemplate
* Update Authentication.mustache vertx
* Update Authentication.mustache webclient
* doc: regenerate samples
2025-04-25 16:35:51 +08:00
jheyens
e767496357
Jersey2: Move setting of authentication parameters before generating target URL to consider API keys in URL parameters ( #20688 )
...
* Move setting of authentication parameters before generating target URL to consider API keys in URL parameters
* Regenerate Jersey2/3 examples
2025-04-23 16:04:26 +08:00
jheyens
a66dd20783
Jersey2: Do not reinitialize ClientConfig with default values when building HTTP Client ( #20687 )
...
* Do not reinitialize ClientConfig with default values when building HTTP Client
* Regenerate Jersey2/3 examples
2025-04-23 15:24:22 +08:00
Nicolas Vervelle
8ca3543436
Issue 20804: Add java nullability annotations ( #20806 )
...
* issue-20804: Add nullability annotations to Java generated clients
Motivation:
Be able to use generated clients in code checked by tools like NullAway.
* issue-20804: Add nullability annotations to Java generated clients
Motivation:
Be able to use generated clients in code checked by tools like NullAway.
* issue-20804: Add nullability annotations to Java generated clients
Motivation:
Be able to use generated clients in code checked by tools like NullAway.
2025-03-25 23:01:17 +08:00
kenji yoshida
7d977b63dc
Update scala version ( #20953 )
2025-03-24 13:55:46 +08:00
William Cheng
3ad5303f99
update samples
2025-03-03 19:29:07 +08:00
martin-mfg
2b8d496c80
[ #19921 ] Add RFC 3339 compatible Jackson module for java.time types, regenerate samples ( #20700 )
...
Co-authored-by: Christian Beikov <christian.beikov@gmail.com >
2025-03-03 17:42:18 +08:00
Ron Reynolds
5cef0803b8
Java client enhanced Configuration with ApiClient Supplier ( #20738 )
...
* enhanced Configuration.mustache (thread-safe, lazy-eval, plugable factory
* removed comment in Configuration.mustache
* fresh samples
2025-03-03 13:52:10 +08:00
William Cheng
a79aad8420
Prepare 7.13.0 ( #20758 )
...
* Revert "v7.12.0 release"
This reverts commit 073723cb4d .
* set version to v7.13.0-SNAPSHOT
* update samples
* update doc
2025-02-28 13:48:36 +08:00
Ron Reynolds
eb668b6a76
reuse Configuration.defaultApiClientin no-arg Api ctors and make ref volatile (fixes issue #20633 ) ( #20635 )
...
* made Configuration.defaultApiClient volatile so that if it's changed the new value is immediately visible to all other threads
* made no-arg api ctor use Configuration.getDefaultApiClient() instead of creating new ApiClient every time
* replaced all use of URLEncoder.encode with ApiClient.urlEncode; just code cleanup; no functional changes
* disabled AbstractJavaCodegenTest.testGeneratedExampleValues as it fails, possibly due to timezone (Locale.ROOT) of local system
* replaced thread-unsafe SimpleDateFormat with DateTimeFormatter and re-enabled unit-test
* removed unused import
* ran the generate-sample scripts and generated a HUGE number of changes!
* added missing import of Configuration to api.mustache (and, thus, all native samples)
* added missing import for ApiClient to anyof and oneof model mustaches
2025-02-19 14:47:55 +08:00
William Cheng
1fa07bf46c
Prepare 7.12.0 ( #20512 )
...
* Revert "v7.11.0 release (#20508 )"
This reverts commit a7240eeefe .
* prepare 7.12.0 snapshot version
* update samples
* update readme
2025-01-21 00:10:09 +08:00
martin-mfg
d87a70dd93
update sample tests, fix Java tests ( #20300 )
...
* replace removed forkMode
* remove junit runner where it's not needed
* update samples without skipping test files, but skip files named "FILES"
* revert overwriting custom tests, add custom java tests to list
* add one sample to CircleCI, fix various Java tests
2024-12-15 17:09:58 +08:00
William Cheng
654f62ce3c
Prepare 7.11.0 ( #20130 )
...
* Revert "prepare 7.10.0 release (#20128 )"
This reverts commit 12dfe8fe74 .
* update to 7.11.0-SNAPSHOT, update samples
* update docs
2024-11-18 20:15:29 +08:00
Christian Beikov
4185782ddc
[ #20125 ] Remove unnecessary model package import to avoid ambiguous class references ( #20124 )
...
* Remove unnecessary model package import to avoid ambiguous class references
* Regenerate JSON files
2024-11-18 17:43:14 +08:00
jasonjyu
51a0bd00b7
Replaced deprecated 'summary' attribute with recommended 'caption' element ( #19961 )
2024-11-18 17:34:55 +08:00
DielN
216ba30172
[JAVA] Add missing dependencies in templates ( #20075 )
...
* Add commons-lang3 dependency for useReflectionEqualsHashCode
* Fix feign-no-nullable config/sample
* Add commons-lang3 dependency to jersey2
* Add & update mutiny dependency for microprofile
* Regenerate samples
2024-11-14 14:08:26 +08:00
ksn-partisia
b627e1cc67
[Bug] [Java] Fix raw type compilation warning in ApiClient for jersey2 and jersey3 ( #19966 )
...
* Add type annotation to raw type Iterable in jersey templates
* Regenerate samples
2024-10-30 14:24:32 +08:00
Nicolas Vervelle
65b1859161
Add nullability annotations to Java generated clients ( #19617 )
...
* issue-1960: Add nullability annotations to Java generated clients
Motivations:
Have generated clients properly annotated for nullability to be able to check code using them with tools like NullAway
Modifications:
* Add nullable_var_annotations template to handle nullability annotation on vars
* Add pojo templates to use the nullability template
* Adapt tests
* issue-1960: Add nullability annotations to Java generated clients
Modifications:
* Run export_docs_generator.sh script to update samples
2024-10-16 16:14:29 +08:00
martin-mfg
b730e36937
[JAVA] fix several anyOf/oneOf problems ( #19817 )
...
* erasure duplicates
* sanitize beanValidation
* oneOf maps
* anyOf
* update samples
2024-10-10 14:50:18 +08:00
martin-mfg
d60200de38
improve java enums ( #19815 )
2024-10-09 10:46:17 +08:00