William Cheng
2a1b4f90df
Add new option allArgConstructor
for java client, spring generators ( #18538 )
...
* allArgConstructor for java
* Remove leftover from builder pattern branch
* Rename generateConstructorWithAllArgs and use x- in vendorExtensions
* Test issue #18340
* Add evidences for allVars issue (#18340 )
* remove eol
* update doc
---------
Co-authored-by: jpfinne <jeanpaul@finne.be>
2024-05-01 18:10:35 +08:00
William Cheng
807250a430
Prepare 7.6.0 ( #18412 )
...
* Revert "v7.5.0 release"
This reverts commit 1eafe2aebf33b13bee0ead66d62a6436e7db059d.
* update master to v7.6.0 snapshot
* update readme
* update samples
2024-04-17 19:05:37 +08:00
William Cheng
d6749f8a0e
update samples
2024-04-09 20:49:23 +08:00
Joakim Holm
3cb3fc2898
Add Generated annotations to more classes ( #17736 )
2024-04-09 16:39:53 +08:00
timo-a
f73db59b0e
Migrate generated tests for java resttemplate generator updateFeature/resttemplate junit5 ( #18222 )
...
* update(resttemplate): migrate java resttemplate templates to junit 5
* update(java defaults): migrate java defaults as well because resttemplate uses model_tests from default
* update(samples, java): update samples as described in the contribution guidelines
* fix tests: try double quotes
* fix tests: remaining double quotes
* update(samples): regenerate resttemplate
* update(samples): regenerate resttemplate-jakarta
* update(samples): regenerate resttemplate-swagger1
* update(samples): regenerate resttemplate-swagger2
* update(samples): regenerate resttemplate-withXml
* update(samples again): ./bin/generate-samples.sh ./bin/configs/*.yaml
2024-03-30 21:06:05 +08:00
Ross Bender
b59957a095
Java API invocation flexibility ( #18078 )
...
* add direct invocation methods for java (httpclient)
* add direct invocation methods for java (resttemplate)
* handle methods only if endpoints exist for api client
* preserve previous newline to minimize changes
* update httpclient/resttemplate samples
* add common methods in base class
* regenerate samples with base class
2024-03-18 21:51:32 +08:00
Dennis Melzer
96bf7ac915
Fix default empty collections when collection is optional ( #18080 )
...
* Fix optional empty collection as default
* Fix test
* Fix test
2024-03-14 20:28:27 +08:00
William Cheng
4ff7e0ec3f
Prepare 7.5.0 snapshot ( #18068 )
...
* Revert "7.4.0 release"
This reverts commit eda049348425171df772a7b9087cc97db718cfda.
* prepare 7.5.0 snapshot version
* update samples
* update doc
2024-03-11 11:10:52 +08:00
Ross Bender
cf2435f335
Add support for controlling output of OpenAPI Generator version in generated files ( #17952 )
...
* add initial openapi config and java generated files
* add java implementation for adding generator version
* regenerate sample client files
* remove tabs
* only show generated version if build info exists
* set build info for batch generation
* update generator doc for new global flag
* use existing property for generator version
* update templates to include generator version
* update templates for better generator version syntax
* revert undesired changes
* regenerate samples for openapi client
* update templates to correct formatting/newlines
* correct description text and add to usage doc
* add generator cli option for all codegen types
* use more concise version info; update existing codegens to support new prop
* correct wrong prop reference
* add initial test coverage for new prop
* update last (scala) templates with new prop
* update samples after upstream merge
* use consistent version output
* use better sample project id/name
* revert using option for generator version in templates
2024-03-09 15:52:08 +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
William Cheng
4acbd69c3d
update samples
2024-01-06 15:29:09 +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
dabdirb
e63563a8fc
fix #16889 replace deprecated response code function ( #17405 )
2023-12-15 13:41:14 +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
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
Tomohiko Ozawa
09704951f0
[Java][resttemplate] Enable access token refresh ( #16485 )
...
* use supplier to enable refreshing token
* update samples
* fix param name and doc
* update samples
2023-09-04 23:23:22 +08:00
William Cheng
e69c58623f
update samples
2023-08-17 12:03:43 +08:00
Noah Overcash
e8fc4d159e
Remove unused import in Java resttemplate auth templates ( #15899 )
...
* Remove unused import in Java resttemplate HttpBasicAuth
* Remove unused import in Java resttemplate HttpBearerAuth
* Update samples
2023-06-27 10:24:03 +08:00
William Cheng
af048ec62f
update samples
2023-06-24 08:10:14 +08:00
Frederic Jones
59ba00e1f3
Add support for swagger2 in [java] client generators ( #15456 )
...
* Add support for swagger2 in java client generator
* Target 7.x.x
* Upstream changes
2023-06-06 15:41:12 +08:00