William Cheng
a4b5b85067
Update jackson nullable version to newer version v0.2.6 ( #14823 )
...
* update jackson nullable to newer version
* update samples
* update samples
* update samples
2023-02-27 18:38:31 +08:00
sbilz
f4e53db8cf
Java Jersey glassfish fix renewing OAuth-Accesstoken #14734 ( #14735 )
2023-02-25 22:01:33 +08:00
catostrophe
5c9999b7cf
Stop using org.springframework.util.Base64Utils in Java generators ( #14813 )
...
This utility class has been marked as deprecated for future removal since Spring 6.0.5. All Java generators, except WebClient and RestTemplate, are already using Base64 directly.
2023-02-25 21:56:18 +08:00
William Cheng
c50a775e0c
prepare 6.5.0 release ( #14749 )
2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release ( #14748 )
...
* prepare 6.4.0 release
* update samples
2023-02-19 18:53:20 +08:00
William Cheng
d7e75ebe5d
fix anyof toUrlQuery string in java native ( #14715 )
2023-02-16 14:46:57 +08:00
William Cheng
71c2abf81c
[Java] fix default value for JsonNullable ( #14703 )
...
* fix java webclient default value
* update default value in java okhttp client
* fix java native client default value in JsonNullable
* improve java okhttp-gson default value template
* update java rest-related templates
* update feign samples
* update jersey3 templates
* update jersey2 templates
* update default value in jaxrs templates
* fix spring default value
* update jaxrs pojo, fix tests
* update samples
* suport set
2023-02-16 10:37:36 +08:00
Andre Vegas
d7edbad8d6
[java][apache-httpclient] update httpclient dependency to the latest 5.x ( #14673 )
...
* #14672 - adding generator with apache http client 5
* #14672 - adding generator with apache http client 5
* #14672 - adding generator with apache http client 5
* #14672 - adding generator with apache http client 5
2023-02-15 15:12:39 +08:00
William Cheng
b6abace9dc
[JAVA] java.net.http.HttpClient (java native) conditionally depend on apache ( #14670 )
...
* JAVA-NATIVE conditionally depend on apache
* add hasFormParamsInSpec in abstract java codegen
* use hasFormParamsInSpec instead
* minor fix
---------
Co-authored-by: Sergey Prytkov <sergey@razz.team>
2023-02-11 22:06:44 +08:00
Beppe Catanese
68b944e6e6
Preserve order of securitySchemes ( #14536 )
...
* Remove alphabetical sort
* Update integration testing expectations
* Regenerate files
2023-02-10 22:20:19 +08:00
Tom Deering
4664f6c46c
[Java] Fix APIClient basePath Configuration ( #14600 )
...
* Nullify serverIndex in java ApiClient.setBasePath
Restores previous behavior broken between v6.2.1 and v6.3.0
* Regenerate samples
2023-02-09 18:27:57 +08:00
William Cheng
687bace3f3
[Java][native] add spotless gradle/mvn plugin ( #14641 )
...
* add spotless plugin to java native client
* apply spotless
* Revert "apply spotless"
This reverts commit 485d50bbde417044f8aabaef76dee906afc6798c.
2023-02-09 10:29:40 +08:00
Robin Karlsson
ca19fa0ef3
[java][jersey] Fix ALLOW_COERCION_OF_SCALARS ( #14619 )
...
* Remove dead code
* Refactor containsKey before get
* Minor refactor
* Use JsonMapper.builder() to build ObjectMapper
Fix a bug where ALLOW_COERCION_OF_SCALARS wasn't set properly.
* Update samples
* Oops, fix a typo
2023-02-06 10:34:21 +08:00
Sergey Prytkov
c2bad96ce1
[JAVA] java.net.http.HttpClient (java native) form data generator ( #14554 )
...
* java native form data generator
* merge master; add test
* change test
* store body echo response
* review fixes
2023-02-04 00:19:48 +08:00
pravussum
4f1708c3fb
[Java/Microprofile] Add support for Jackson serialization & async interfaces using Mutiny in Java Microprofile library ( #11554 )
2023-02-03 19:39:01 +08:00
William Cheng
31a89e35cb
Prepare 6.4.0 ( #14582 )
...
* update to 6.4.0 snapshot
* update samples
* update doc
2023-02-01 22:44:40 +08:00
William Cheng
8f2676c5c2
Prepare v6.3.0 release ( #14580 )
...
* 6.3.0 release
* fix maven plugin test
* update samples
* update doc
* fix tests in windows
2023-02-01 20:52:29 +08:00
William Cheng
32499a19fc
fix empty body in java apache client ( #14574 )
2023-02-01 15:41:55 +08:00
William Cheng
fd45b74128
[Java] better default value handling ( #14130 )
...
* add test for array default value
* update null return
* minor fixes
* move default value tests to echo api spec
* add new files
* remove unused files
* fix enum array default, add tests
* better array init
* Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
* Update modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
* revert the fix
* improve default value handling
* update native samples, add tests
* update samples
* fix tests
* use conditional test for timezone
* add tests to apache http client echo api
* add option to default container to null
* fix map default value
* minor refactoring
* update samples
* fix javadoc
* fix pom.xml
* add tests in java native echo client
* add java apache client echo tests
* fix test
* fix test
---------
Co-authored-by: Leonard Brünings <lord_damokles@gmx.net>
2023-01-30 20:19:00 +08:00
William Cheng
4ecb9f4186
[java][native] Fix urlQuery string method in oneOf ( #14488 )
...
* better tests, fix oneOf in urlquery string method
* update samples
* update
2023-01-20 01:57:32 +08:00
William Cheng
6cd7989e9e
[Java][native][apache-httpclient] Update toUrlQueryString to support form style for object ( #14478 )
...
* update toUrlQueryString
* add new files
* minor bug fixes
* support object in query parameter - java apache httpclient
* rename variable - java native
* update samples
* fix try catch
2023-01-19 16:13:51 +08:00
William Cheng
a584f32d68
Add workflow to test java apache client with jdk8 ( #14437 )
...
* add workflow to test java apache client with jdk8
* fix url encode issue with jdk8
* update samples
* minor improvements in java native client
* minor fix
2023-01-12 22:12:08 +08:00
William Cheng
e825f27b0b
[java][apache-httpclient] Add deep object url query parameter support ( #14417 )
...
* add deep object url query parameter to java apache-httpclient
* update doc string
2023-01-11 11:04:14 +08:00
Maxime Dufour
c6ea564600
[Java][Client Default] Support of AWS Signature V4 ( #14287 )
...
* Add support of AWSV4 Signature in Java
* Add Petstore sample for AWSV4 Signature
* Update other sample examples
* Sync Documentation and sample
* Specify only available for okhttp-gson in doc
2023-01-10 19:29:20 +08:00
William Cheng
d269a2a09d
Add deepObject query string support in Java native client ( #14378 )
...
* add deepObject query string support in java native client
* fix array of query parameters
* minor fix
* update samples
* fix test
2023-01-06 17:10:06 +08:00
William Cheng
c514dc3c1b
add java native jakarta samples for test ( #14381 )
2023-01-05 21:55:53 +08:00
s-jepsen
f848651b84
Fix @Generated annotation import for Java Native client. ( #14376 )
...
* Fix @Generated annotation import.
Apply fix to generatedAnnotation.mustache
Add changes to generated clients.
* Add changed files.
2023-01-05 15:42:20 +08:00
Antoine Rey
917892db7d
#14141 Add externalDocs to @Operation to the JavaSpring generator ( #14177 )
...
* #14141 Add externalDocs to @Operation to the JavaSpring generator
* #14141 Add externalDocs to @Operation to the JavaSpring generator : fix mustache template with #hasExternalDocs
* #14141 Add externalDocs to @Operation to the JavaSpring generator: fix indentation
* #14141 Add externalDocs to @Operation to the JavaSpring generator: fix carriage return
* #14141 Add externalDocs to @Operation to the JavaSpring generator: regenerate the spring-boot-oas3.yaml sample
* #14141 Add externalDocs to @Operation to the JavaSpring generator: generate-samples.sh
* #14141 Add externalDocs to @Operation to the JavaSpring generator: remove hasExternalDocs
* Fix ExternalDocumentation import generation and order
* #14141 Add externalDocs to @Operation to the JavaSpring generator: generate-samples.sh
2023-01-04 10:15:23 +08:00
William Cheng
421e7c9d3e
[Java] Better tests for jakarta option (webclient, resttemplate) ( #14363 )
...
* test java jakarta in new workflow jdk 17
* update workflow
* skip jakarta test in jdk11
2023-01-02 20:55:39 +08:00
Paul Parenko
fd2b141c53
when using useJakartaEe=true
also set java 17 ( #14360 )
...
webclient now uses Sring Boot 3.0.1 with `useJakartaEe`
2023-01-02 20:29:32 +08:00
Paul Parenko
456cca1a28
[Java] Fix #14276 Java Templates uses jakarta or javax package if useJakartaEe is enabled ( #14343 )
...
* Fix #14276 Java Templates uses jakarta or javax package if useJakartaEe
is true
* generated samples after useJakartaEe changes
* generated docs after useJakartaEe changes
2023-01-02 16:28:44 +08:00
hahny93
851ddecda3
Update Java/Feign api.mustache to accept its own convinience Map Class ( #14008 )
...
* Update Java/Feign api.mustache to accept convinience Map
Hi, I just saw, that the generated Map Class is never used outside of tests, but it would be the perfect fit for the changed mehods, as its use-case is exactly the same.
Also a useful change to prevent problems with Collection types and their generics parameters (f.e. Map<x, y>). See: https://stackoverflow.com/questions/62823341/openapi-generator-maven-plugin-breaks-old-feign-with-querymap
* PR checklist
Steps as requested per checklist: done.
2022-12-21 14:44:03 +08:00
Maxime Dufour
9450984af8
[Java][Client] Generate servers for okhttp-gson ( #14179 )
...
* [Java][Client] Generate servers for okhttp-gson
* Update sample tests
2022-12-17 21:58:47 +08:00
William Cheng
1cda5462f9
update resttemplate spring web to latest 5.x ( #14275 )
2022-12-17 15:53:51 +08:00
John Mitchell
2a33229158
Support for GSON Decoder in Java Feign Generator ( #14254 )
...
* Supporting Gson decoder in Feign
* Supporting Gson decoder in Feign
* Fixing test failures - and ensuring Jackson is used as the default if nothing selected (back compatible)
* Adding in sample files
* Updating docs
* Switching to echo server version
* Adding feign-gson to the github workflow
* Empty-Commit
2022-12-17 15:40:14 +08:00
William Cheng
11d31117a8
fix java apache client optional body, add tests ( #14227 )
2022-12-08 20:58:47 +08:00
William Cheng
1fad61e2f8
Fix response body in Java native client ( #14222 )
...
* fix response body in java native client
* add new files
* update samples
2022-12-08 17:29:53 +08:00
William Cheng
b8b25e8ae0
Fix query parameters encoding in Java apache-httpclient ( #14195 )
...
* fix query parameters encoding in java apache-httpclient
* rearrange tests
* add new files
2022-12-08 00:30:07 +08:00
Oleh Kurpiak
2524e8fb0a
[Java][WebClient] global blocking operations config ( #14076 )
...
* [Java][WebClient] global blocking operations config
* update samples
2022-12-06 13:30:47 +08:00
William Cheng
0103d400c2
update java samples
2022-12-05 14:33:04 +08:00
Brendan Burns
d6e7f70cb4
Modify Java ApiException to have a more informative message. ( #14154 )
...
* Modify ApiException to have a more informative message.
* Address comments.
2022-12-05 14:16:50 +08:00
William Cheng
3a26da76b0
Better tests for Java native client ( #14132 )
...
* add echo tests with java native client
* fix echo server
* fix github
* add npm install
* update samples
* add license header
* update smaples
* add test for array of string
* fix java native respone type casting
* better code format
* add license header
2022-11-29 14:18:14 +08:00
William Cheng
fabd0a8be2
update jackson databind to newer versions ( #14136 )
2022-11-29 10:55:03 +08:00
William Cheng
d5ce79ac24
fix build warning in java apache client ( #14127 )
2022-11-26 17:39:50 +08:00
William Cheng
743202241e
[Java][native][apache-httpclient] update dependencies to newer versions ( #14110 )
...
* update java native dependencies to newer versions
* update java native, apache-httpclient to newer version
2022-11-24 23:55:14 +08:00
William Cheng
980062f2bb
Improve Java native, apache-httpclient with better spec ( #14109 )
...
* improve java native, apache client with better spec
* fix java native async tests
* regenerate java native tests
2022-11-24 21:48:09 +08:00
William Cheng
09c070a27e
update test, suppress warnings in java apache client ( #14098 )
2022-11-23 20:32:01 +08:00
Sorin Florea
d74cefba83
[JAVA][APACHE] Fix apache http client query parameters ( #14020 )
...
* Fix apache http client query parameters
* Update samples
2022-11-23 14:35:01 +08:00
Oleh Kurpiak
40e04df096
[Java][Native] handle empty response body ( #13993 )
2022-11-17 23:27:59 +08:00
Juan Ávila
5e50ff47b0
[JAVA][RETROFIT2] Include java.util.Set in fullJavaUtil imports ( #14048 )
...
* Include java.util.Set in fullJavaUtil imports
* Update java-retrofit2 samples
2022-11-17 21:55:45 +08:00