William Cheng
6e113842cf
[resttemplate] Update springweb to newer version ( #17953 )
...
* update springweb to newer version
* update
2024-02-24 23:43:15 +08:00
William Cheng
436a3e0744
fix multi line description in allOf ( #17879 )
2024-02-16 15:26:15 +08:00
William Cheng
809c90aa24
Use unescaped media type in java native client ( #17872 )
...
* use unescaped media type in java native client
* add tests
2024-02-16 10:17:08 +08:00
Simon Podlipsky
1e9bccca16
feat: generate EOL in VERSION file ( #17829 )
...
The EOL is missing so let's add it in order to comply with POSIX standard:
Line
> A sequence of zero or more non- <newline> characters plus a terminating <newline> character.
2024-02-12 15:40:55 +08:00
William Cheng
783e68c7ac
7.4.0 snapshot ( #17818 )
...
* Revert "7.3.0-release (#17817 )"
This reverts commit d617b46c86b9075c5e0d63fe3798e2982f5259ac.
* update samples, docs, readme
2024-02-08 16:07:22 +08:00
Vasilii Sorokin
be81652269
[java] 14404 fix for json arrays ( #17812 )
2024-02-08 11:19:08 +08:00
William Cheng
7c7634dda9
add operation id option ( #17750 )
2024-02-01 17:21:49 +08:00
William Cheng
59f672d9aa
Add rule to remove x-internal in openapi normalizer ( #17734 )
...
* add rule to remove x-internal in normalizer
* update
* update doc
* better code format
* update samples
2024-01-30 21:11:25 +08:00
martin-mfg
9afea50cab
use map/array model class only if it is generated ( #17612 )
...
* fix
* tests
* generate samples
* refactor
2024-01-29 21:35:21 +08:00
dmbakker
9952776e9c
[java] fix Use jackson-jakarta-rs-json-provider when useJakartaEe is true ( #17600 )
...
* fix #17590 - use jackson-jakarta-rs-json-provider instead of jackson-jaxrs-json-provider in pom when useJakartaEe is true
* fix #17590 - fix indentation
* fix #17590 - updated samples
* fix #17590 - fixed groupid
---------
Co-authored-by: in376bak <dennis.bakker@duo.nl>
2024-01-28 00:38:18 +08:00
Jesenko Mehmedbasic
a092bbd83b
[BUG] [Java] Remove deprecation and serial warnings in ApiException.java and JSON.java ( #17716 )
...
* Add serialVersionUID to Java apiException.mustache templates
* Use 'enable()' and 'disable()' methods to handle object mapper features in JSON.mustache for the "native" Java generator instead of the deprecated 'configure()'
* Update samples
2024-01-27 10:42:27 +08:00
William Cheng
dccb147055
Fix allOf with a single item in inline model resolver ( #17683 )
...
* fix inline model resolver for allof with 1 item
* add files
* update sha
* more checks
2024-01-23 23:37:39 +08:00
William Cheng
27f766721a
support x-internal in models and operations ( #17639 )
2024-01-20 15:20:25 +08:00
William Cheng
64c763b87a
[OAS 3.1] Fix null type check in normalizer ( #17609 )
...
* fix null type check in normalizer
* add back ref check
* add files
2024-01-14 00:49:35 +08:00
William Cheng
c6efe8810d
better npe handling when processing openapi 3.1 spec
2024-01-13 11:21:08 +08:00
William Cheng
75ef9e0b02
update java samples
2024-01-12 12:51:33 +08:00
Marc Weiß
76560e34c9
replace deprecated ISO8601Utils with StdDateFormat ( #17052 )
2024-01-11 18:24:52 +08:00
Jorge Rodríguez Martín
61c40474af
[BUG][java][resttemplate] Fix NPE when query param with value null is exploded ( #17568 )
...
* Fix NPE when query param with value null is exploded
* Polish
* Add test
* Update tests
* Add integration test
2024-01-10 23:39:41 +08:00
Alexis Couvreur
dd5c7e3b9a
fix: ExampleGenerator correctly generates allOf composed schemas ( #17499 )
...
* fix: ExampleGenerator correctly generates allOf composed schemas
Changes the previous behavior of generating `null` examples for allOf composed schemas.
Fixes #17497
* fix: ExampleGenerator correctly generates anyOf and oneOf composed schemas
Changes the previous behavior of generating `null` examples for anyOf and oneOf composed schemas.
To generate a oneOf/anyOf example, we generate the example using the first valid schema available. In case of a $ref, we use the first valid reference.
Fixes #17497
2024-01-10 11:04:11 +08:00
Hansjörg Oppermann
8bab0ceb53
Generated methode ApiClient.parameterToPairs failed to handle empty collections #17460 ( #17463 )
...
* #17460 add missing empty collection check
* generate samples
2024-01-10 02:29:10 +08:00
Steven Sheehy
209344ba40
[java][native] Fix ObjectMapper deprecation warnings ( #17558 )
...
* Fix ObjectMapper deprecation warnings
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
* Fix missing JsonMapper import
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
---------
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
2024-01-09 16:37:59 +08:00
William Cheng
4acbd69c3d
update samples
2024-01-06 15:29:09 +08:00
martin-mfg
64f2cad9e8
fix #17258 - use model class only if it is generated ( #17490 )
...
* fix #16797 and #15796 spring child constructor missing parent params
* root cause and update the DefaultCodegen.java to add missing property when with multi inheritance
* rollback SpringCodegen.java
* update samples
* rollback with master cause #16992 fixed this issue too
* still using orignal design
* catchup master
* catchup master
* catchup master
* fix
* add tests
---------
Co-authored-by: dabdirb <dabdirb@gmail.com>
2024-01-05 10:30:28 +08:00
Ilamparithi Natarajan
ddc7d4b1b5
[java][resttemplate] rethrow original exception when retry limits exceeded ( #17488 )
...
in rest template, when the retry limits exceeded
rethrow the original exception
also add 429 (Too many requests) status code to the
retry logic
fix #17478
2024-01-05 09:57:24 +08:00
William Cheng
c215bc681d
better java resteasy echo api client tests ( #17473 )
2023-12-26 10:25:55 +08:00
Milad
8c014372aa
[Java RESTEasy client] updating test to use the Java RESTEasy echo api client ( #17367 ) ( #17470 )
...
* updating test to use the Java RESTEasy echo api client (#17367 )
* regenerated samples
* set source and target to 1.8 to fix workflow failure, adapted parser
2023-12-26 09:32:51 +08:00
William Cheng
5eab3cef19
Prepare 7.3.0-SNAPSHOT ( #17456 )
...
* Revert "v7.2.0 release (#17455 )"
This reverts commit fe638d009363c142c246ff089032f243e0b4ee01.
* set version to 7.3.0-SNAPSHOT
* update doc
2023-12-22 16:55:58 +08:00
Nikita Shmakov
3099a2fcd3
webclient explode query parameters support ( #17441 )
2023-12-21 19:35:07 +08:00
Milad
106047980b
[Java RESTEasy client] added filename directive for Java RESTEasy file uploads ( #17367 ) ( #17435 )
...
* added filename directive for Java RESTEasy file uploads (#17367 )
* regenerated samples
2023-12-21 19:34:30 +08:00
William Cheng
dc047b4e91
fix missing array description in 3.1 spec ( #17427 )
2023-12-19 11:35:46 +08:00
dabdirb
e63563a8fc
fix #16889 replace deprecated response code function ( #17405 )
2023-12-15 13:41:14 +08:00
William Cheng
367301de22
deref parameter in normalizer for 3.1 spec ( #17406 )
2023-12-15 12:18:07 +08:00
renaud-twd
a9179e95dd
fix: java apache httpclient should support UTF-8 by default ( #17395 )
...
* fix(java): apache-httpclient serialization error
fixes following related issue:
https://github.com/OpenAPITools/openapi-generator/issues/12797
* docs(java): update samples and docs
2023-12-15 09:01:10 +08:00
rubiniselvaraj
4c4388e3c8
Fix for handling error in resttemplate ( #17381 )
...
* Fix with handling error
* Fix with handling error
2023-12-13 12:56:02 +08:00
rubiniselvaraj
a792a79059
Implementing retry logic to restTemplate ( #17375 )
...
* Implementing retry logic to restTemplate
* Fixing the issue
* Adding import
* Fix
* Fix
* minor update, add tests
* fix
* Adding the maxRetryAttempt, threadWaitTime as additionalProperty
* Updating the apiClient
* Removing reduntant variable
* Generating samples
* Fixing format
---------
Co-authored-by: Rubini <rubini@Rubinis-MacBook-Air.local>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-12-12 22:01:36 +08:00
Aliaksei
809b3331a9
[4947][java]: adds support for validation of primitives in arrays ( #17165 )
...
* [4947][java]: adds support for validation of primitives in arrays
* [4947][java]: prevents generation '@Valid' for Object
* [4947][java]: test against different codegens and stick to primitive
* [4947][java]: code review
* [4947][java]: enhance getBeanValidation
* [4947][java]: adds email
* [4947][java]: removes unnecessary override
* [4947][java]: adds postProcessResponseWithProperty
* [4947][java]: adds missing import {{javaxPackage}}.validation.Valid
* [4947][java]: adds missing useBeanValidation
* [4947][java]: fix use rootJavaEEPackage for helidon
2023-12-11 20:55:38 +08:00
William Cheng
d4d5196907
Better handling of any type in v3.1 spec ( #17370 )
...
* fix NPE in the example generator
* fix any type in 3.1 spec
* use log error instead
2023-12-11 17:13:55 +08:00
William Cheng
dd36fa09f8
update logbak core to newer version ( #17360 )
2023-12-09 21:59:50 +08:00
William Cheng
4c4d0e485a
[java] Update logback to newer versions ( #17259 )
...
* update logback to newer versions
* update
2023-11-30 18:51:46 +08:00
Beppe Catanese
4a1db3f1e6
[JAVA] Jersey3 deprecate class attribute ( #17223 )
...
* Deprecate attribute
* Generate samples
2023-11-30 13:50:30 +08:00
Beppe Catanese
fd58539fe9
[JAVA] Jersey3 deprecated field only deprecates getter method ( #17221 )
...
* Deprecate build and setter methods
* Generate samples
2023-11-29 21:54:17 +08:00
Vignesh
87b86c78dc
feat: Support useSingleRequestParameter feature for java microprofile client generation ( #17072 )
2023-11-21 11:56:11 +08:00
William Cheng
0401c46147
Fix missing objects when defining inline anyOf, or oneOf ( #17141 )
...
* better handling of composed schema in inline model resolver
* better handling of example
2023-11-20 10:24:57 +08:00
William Cheng
6d93b0ec83
Fix handling of composed schema in inline model resolver ( #17138 )
...
* fix handling of composed schema in inline model resolver
* update samples
2023-11-19 23:24:49 +08:00
Tomohiko Ozawa
4bedeef643
[Java][apache-httpclient][feign][okhttp-gson] Enable access token refresh ( #17086 )
...
* add setter of bearer token supplier
* run generate-samples.sh
* add test of bearer auth
2023-11-18 12:46:18 +08:00
William Cheng
195f27de1f
update rest-assured dep to newer versions ( #17107 )
2023-11-17 10:35:54 +08:00
William Cheng
07620cebe2
update webclient dep to newer version, add tests ( #17106 )
2023-11-17 10:34:22 +08:00
Charles Treatman
c8b3da7388
[Java][okhttp-gson] remove unreachable code from templates ( #17057 )
...
* Remove checks for jackson and jsonb from okhttp-gson templates
* regenerate samples
2023-11-14 11:13:28 +08:00
William Cheng
91ac75ff05
Fix NPE in request body ( #17055 )
...
* fix null request body NPE
* fix typo
2023-11-14 10:41:21 +08:00
William Cheng
53289263d9
Prepare v7.2.0 ( #17050 )
...
* update version to 7.2.0-SNAPSHOT
* update samples
* update doc
2023-11-13 18:53:20 +08:00