William Cheng
5d8b80a5cd
[Java] rename x-contentType to x-content-type ( #11895 )
...
* rename x-contentType to x-content-type
* undo changes
2022-03-18 09:50:42 +08:00
William Cheng
7cbdf4c163
[java][jersey2] update junit from 4.x to 5.x (major upgrade) ( #11898 )
...
* update java jersey2 junit to 5.x
* update jersey2-java8-special-characters
* update jersey2-java8-localdatetime
* update samples/openapi3/client/petstore/java/jersey2-java8
* better code format
2022-03-18 09:50:26 +08:00
William Cheng
a4d320489d
fix warning, update build.gradle, build.sbt ( #11896 )
2022-03-18 09:50:05 +08:00
bgong-mdsol
fa9c7a669b
[java][native] add connection timeout ( #11890 )
...
* java-native: add connection timeout
update connection timeout
* updated samples for connection timeout
2022-03-18 09:45:27 +08:00
William Cheng
9a1e6d778a
[Java][okhttp-gson] update junit to 5.8.2 from 4.13.2 ( #11882 )
...
* update junit to 5.8.2 in java okhttp-gson client
* undo changes to yaml
* update samples
* update tests
* fix indentation
* restore tests
* update samples
2022-03-16 16:33:47 +08:00
William Cheng
941d4845d7
minor fix to java okhttp-gson pom.xml
2022-03-16 01:03:17 +08:00
William Cheng
82b7dee480
update java jersey2 dependencies to newer versions ( #11878 )
2022-03-15 18:38:34 +08:00
William Cheng
2db3070b2d
Update java (okhttp-gson) client dependencies to newer versions ( #11877 )
...
* update java okhttp-gson client dependencies to newer versions
* update samples
2022-03-15 18:38:12 +08:00
Radek Postołowicz
c22997b9b8
Cleanup Jackson type info mess fixes ( #9441 ) ( #11691 )
...
* Cleanup Jackson type info mess fixes (#9441 )
* fixup! add import mapping for JsonIgnoreProperties
2022-03-07 09:36:05 +08:00
William Cheng
482032d14f
fix warnings due to incorrect docstring ( #11815 )
2022-03-07 09:23:09 +08:00
Oleh Kurpiak
2e0dc573b3
[Java][WebClient] allow sync requests ( #11780 )
2022-03-04 22:58:03 +08:00
Mico Piira
4daead1aea
[Java] Fix reactor-netty dependency ( #11747 )
...
The spring-boot-starter-webflux uses
io.projectreactor.netty:reactor-netty-http
dependency so the io.projectreactor.ipc:reactor-netty
is actually not used at all
2022-03-01 17:39:58 +08:00
William Cheng
9d86d1db5e
fix typo in java feign client ( #11751 )
2022-03-01 11:22:19 +08:00
William Cheng
683984896e
update maven-javadoc-plugin to newer version ( #11737 )
2022-02-27 16:57:16 +08:00
William Cheng
b0877a112d
fix oneOf discriminator lookup in java okhttp-gson client ( #11735 )
2022-02-27 15:42:54 +08:00
sullis
f1d0724f2a
[java] junit 4.13.2 ( #11733 )
2022-02-27 13:18:19 +08:00
William Cheng
33ec0540b2
fix typo in the comments ( #11729 )
2022-02-26 15:45:30 +08:00
William Cheng
ae86945653
Add test for RFC3999DateFormat clone method ( #11706 )
...
* add test for RFC3999DateFormat clone method
* better comment
2022-02-24 13:15:07 +08:00
Chris White
d153134dec
Fixed RFC3999DateFormat clone NPE ( #11705 )
2022-02-24 12:29:23 +08:00
William Cheng
df39875502
fix buils warning in java native client ( #11688 )
2022-02-22 17:04:14 +08:00
William Cheng
df05e6f4bc
Update parser to 2.0.29 ( #11388 )
...
* update parser to 2.0.29
* better handling of null in dereferencing
* update parser to 2.0.30
* update core to newer version
* add new files
* rollback to previous stable version
* remove files
* Fixes for python-experimental NullableShape component
Co-authored-by: Justin Black <justin.a.black@gmail.com>
2022-02-21 18:37:52 +08:00
sullis
3c8f249c6c
[java] logback 1.2.10 ( #11659 )
...
Latest version of logback
https://logback.qos.ch/news.html
2022-02-19 18:52:39 +08:00
Paul-Etienne François
d45cb6511f
[Java][Native] Fix an issue leading to an altered String parameter when consuming formatted strings like XML ( #11640 )
...
* Fix the generated request builder when using a string body parameter
* Update the samples according to the fix for #11638
2022-02-18 11:50:15 +08:00
William Cheng
b979eccf68
Add Github action file to test Java clients ( #11633 )
...
* add github action file to test java clients
* update tests
2022-02-17 15:49:34 +08:00
Laurens-W
52e3265c34
[Java][RestTemplate] Use class level RestTemplate for uri encoding ( #11606 )
...
* Move static logic to initialization method when no RestTemplate is provided.
Otherwise, use the settings from the RestTemplate that was provided.
* Move code outside of withXml
Run required scripts
Co-authored-by: Westerlaken, H.L. (Laurens) <laurens.westerlaken@devolksbank.nl>
2022-02-15 16:31:51 +08:00
Lennart Schwahn
ba04720898
fix #6134 by considering the type List<File> ( #11361 )
...
The method buildRequestBodyMultipart in ApiClient.java now recognizes if
an input parameter is an instance of List.
2022-02-15 10:35:46 +08:00
Marek Hudik
c937bae888
fixes #11579 : Java RestTemplate Mustache template doesn't use reserved words for local variables ( #11583 )
...
* fixes #11579 : Java RestTemplate Mustache template doesn't use reserved words for local variables
* fixes #11579 : Java RestTemplate samples
Co-authored-by: Marek Hudik <marek.hudik@broadcom.com>
2022-02-14 10:59:11 +08:00
cachescrubber
9dfe8c63ee
[Bug][Java] defaultValues for date and date-time params ( #11536 )
...
* Add default value support to cookie and header params
* Generate Samples
* Replace "OffsetDateTime.parse(..)" with toString();
* Generate Samples
* Revert "Replace "OffsetDateTime.parse(..)" with toString();"
This reverts commit 2e37411b305343e99542c094a691e1419a67b1b5.
* Format java.util.Date to ISO Date in AbstractJavaCodegen.toDefaultParameterValue
* Generate Samples
* Generate Samples
* Use toParameterDefault()
* Generate Samples
* Implement testDateTimeFormParameterHasDefaultValue unit test
* Add more test coverage.
* Remove postProcessParameter() since is has no effect after using toDefaultParameterValue()
* Use LocalDate.parse() in toDefaultValue()
* Generate Samples
* Return a defaultValue only if dateTimeLibrary is java8.
2022-02-12 15:14:26 +08:00
William Cheng
3cb4b7d08e
[Java] remove tabs from java templates ( #11557 )
...
* remove tabs from java templates
* replaces tabs with spaces in java templates
2022-02-10 10:47:08 +08:00
William Cheng
8455c1cd23
Remove the option to support JDK7 from Java generator and templates ( #11547 )
...
* remove java8 from java client generator and templates
* update tests
* remove threetenbp
* update spring templates to remove java8
* remove java8 from jaxrs template
* fix jaxrs spec
* fix feign
* remove CustomInstantDeserializer.java
* fix jersey1
* fix undertow
* various update
* fix jaxrs jersey1
* fix java inflector
* fix jaxrs cxf
* add new files
* update doc
2022-02-10 10:35:29 +08:00
William Cheng
b6c445cdc3
update swagger core, jackson to newer version ( #11545 )
2022-02-08 13:31:20 +08:00
William Cheng
7c1f6c5d6a
update build.gradle, build.sbt in java okhttp-gson client ( #11543 )
2022-02-08 10:57:58 +08:00
William Cheng
51800471fa
[java][Okhttp] replace okhttp-gson with okhttp-gson-nextgen ( #11538 )
...
* replace okhttp-gson with okhttp-gson-nextgen
* add new files
* update doc
* clean up pom
* update test
* restore error handling in doc
* add back changes
* uncomment tests
* update samples
2022-02-08 00:05:44 +08:00
cachescrubber
194b3fda26
[Bug][Java/Spring] OAS3 related bugfixes and enhancements ( #11526 )
...
* Content mediatype is hardcoded in api.mustache #11511
* Generate Samples
* OAS3 incorrect data type when providing a default value #11367
* Generate Samples
* Fix JsonTypeName annotation handling in Java and JavaSpring
* Generate Samples
* getIsClassnameSanitized: use null safe equals
2022-02-05 17:29:58 +08:00
William Cheng
e2d32b2061
fix javadoc warnings in feign client ( #11527 )
2022-02-05 15:18:36 +08:00
William Cheng
31f2f11beb
update samples
2022-02-05 14:47:51 +08:00
ruijlpires
92ccb629e9
Fix duplicated Authorization headers when renewing a token on a retry ( #11513 )
...
Add a leeway time to avoid a skew in the local clock
2022-02-05 14:28:05 +08:00
William Cheng
c8b84c4d03
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-30 18:01:35 +08:00
William Cheng
3ed6343933
remove deprecated options in java client generator ( #11456 )
2022-01-30 15:57:02 +08:00
William Cheng
5d2a3698e2
[java][okttp-gson-nextgen] update docstring in ApiClient, RetryingOAuth ( #11395 )
...
* update docstring in apiclient, retryingoauth (java client)
* update samples
2022-01-25 17:04:32 +08:00
William Cheng
b7c8de9425
update samples
2022-01-21 17:45:53 +08:00
William Cheng
33bce99b8e
Avoid using import mapping in model generation ( #11217 )
...
* remove import mapping logic in model generation, better handle of file, list
* add new files for file, list
* fix some tests
* update tests, doc
* skip file as reserved word in feign client
* add new files
* remove file from reserved word list in spring generator
2022-01-16 23:57:53 +08:00
mvistein
c12456de8e
[Java-okhttp-gson] Do not set content-type if content type is null #2 ( #11315 )
...
* Fixing empty Content-Type in HTTP requests
* Updating samples
2022-01-16 10:29:47 +08:00
jiangyuan
0427681bc4
fix java apache-httpclient set basePath ( #11277 )
2022-01-16 10:23:15 +08:00
Paul-Etienne François
249968e397
[Java][Native] Fix the Content-Type and Accept headers that were forced to application/json ( #11303 )
...
* [Java][Native] Fix the Content-Type and Accept headers that were forced to application/json
* Update the generated samples after fixing issue no. 6779
2022-01-16 00:51:40 +08:00
Sorin Florea
a4325ec520
ISSUE-11242: Fix Java native path param encoding ( #11257 )
2022-01-10 21:23:28 +08:00
S2021Git
361b593da2
Not creating "Accept:null" header for Java-Jersey2 generator ( #11084 )
...
* updated ApiClient.mustache for jersey2
* updated samples
* corrected indentation
* updated samples
2022-01-04 16:41:24 +08:00
William Cheng
d17a472b89
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-03 18:03:00 +08:00
William Cheng
2db3e6bb25
update java samples
2022-01-02 17:55:26 +08:00
William Cheng
238639a500
update java sampes
2022-01-02 17:28:17 +08:00