William Cheng
9d6b12591e
Fix set, map import ( #12818 )
...
* fix set, map import
* update samples
* update tests
2022-07-10 14:58:55 +08:00
William Cheng
f242b5e1dd
Skip import of allOf composition schema ( #12798 )
...
* skip import of allOf composition schema
* update samples
* allow python generator to keep old behaviour
* update js import
2022-07-10 14:58:22 +08:00
William Cheng
6cae0fbb78
Merge remote-tracking branch 'origin/6.1.x'
2022-07-04 01:22:51 +08:00
William Cheng
9e412edb64
Prepare 6.0.1 release ( #12762 )
...
* update to v6.0.1
* update doc
* update samples
2022-07-03 23:36:46 +08:00
William Cheng
29ea48ee96
update jackson-databind-nullable to 0.2.3 ( #12693 )
2022-06-25 12:45:17 +08:00
William Cheng
5bd94b8fa0
prepare 6.1.x
2022-05-26 12:58:25 +08:00
William Cheng
36a9cf394d
update samples ( #12466 )
2022-05-26 12:13:59 +08:00
William Cheng
69f79fb789
Prepare 6.0.0 release ( #12463 )
...
* prepare 6.0.0 release
* update samples
* update meta codegen
2022-05-26 10:28:01 +08:00
William Cheng
ad3b5f7045
[Inline model resolver] various improvements ( #12293 )
...
* better handling of requestbody in the inline resolver
* remove commented code
* better request body naming
* fix unique naming
* minor code format change
* removed additional underscore from names, fix test
* more fixes, update tests
* fix all tests
* undo changes to default codegen
* update samples
* update python tests
* add new files
* update samples
2022-05-10 17:13:57 +08:00
Kirill Baurchanu
ffd31f557d
[Java][Native] Reference to Consumer is ambiguous ( #10744 )
...
* [java][native] reference to Consumer is ambiguous
* [java][native] reference to Consumer is ambiguous
Co-authored-by: Kirill Baurchanu <baurchanu.k@gmail.com>
Co-authored-by: Kirill_Baurchanu <kirill_baurchanu@epam.com>
2022-04-27 01:52:27 +08:00
William Cheng
2d4a01aa70
Revert "Prepare 6.0.0 beta release ( #12039 )"
...
This reverts commit 914b539eea7097ad2b4323d20c8f95144782cb68.
2022-04-04 12:17:12 +08:00
William Cheng
914b539eea
Prepare 6.0.0 beta release ( #12039 )
...
* update to 6.0.0-beta
* update samples
2022-04-04 10:29:49 +08:00
Mikko Maunu
8f4106f3e1
[Java][Native] Remove Javadoc warnings. fix #8692 ( #12017 )
2022-04-01 10:16:14 +08:00
William Cheng
7370c4d3f8
update java samples
2022-03-25 00:42:07 +08:00
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
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
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
683984896e
update maven-javadoc-plugin to newer version ( #11737 )
2022-02-27 16:57:16 +08:00
sullis
f1d0724f2a
[java] junit 4.13.2 ( #11733 )
2022-02-27 13:18:19 +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
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
William Cheng
b6c445cdc3
update swagger core, jackson to newer version ( #11545 )
2022-02-08 13:31:20 +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
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
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
William Cheng
d17a472b89
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-03 18:03:00 +08:00
William Cheng
238639a500
update java sampes
2022-01-02 17:28:17 +08:00
William Cheng
12e03b1937
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-02 15:41:37 +08:00
Justin Black
ac55ac9d55
Samples and docs regenerated ( #11194 )
2021-12-28 11:39:13 -08:00
William Cheng
6269a9810c
Prepare 5.3.1 release ( #11161 )
...
* prepare v5.3.1 release
* update samples
2021-12-21 18:20:13 +08:00
William Cheng
b72eba90cd
[java][okhttp-gson-nextgen] better oneOf implementation ( #11146 )
...
* add validJsonObject method
* add check for null
* fix list model generation
* fix optional fields validation
* add tests
* fix variable naming
* update tests
* add fromJson in oneOf, add tests
* convert JSON to static
* remove trailing space
* add fromString methods to all models
* add toJson, fix anyOf template
* remove workarounds
* undo changes to tests
* skip file schema test
* add new file
2021-12-18 23:22:55 +08:00
William Cheng
b2daa5a836
update jackson-databind-nullable to 0.2.2 ( #11121 )
2021-12-15 11:41:16 +08:00
Justin Black
cee5f75912
Feat adds content and header properties to CodegenResponse ( #11046 )
...
* Adds responseHeaders to codegenResponse
* Sets response headers in codegenResponse
* Samples updated
* Adds test of response headers
* Adds content to CodegenResponse
* Sets codegenResponse content
* Tests added, test content-data.yaml spec update
* Adds mediaTypeSchemaSuffix input to getContent
* Tests updated
* Updates how response content schema names are set
* Adds missing Locale to String.format invocations
2021-12-10 13:49:29 -08:00
William Cheng
e00efe7c8d
Merge remote-tracking branch 'origin/5.4.x' into 6.0.x
2021-12-07 00:12:13 +08:00
William Cheng
2b7910c875
Merge remote-tracking branch 'origin/master' into 5.4.x
2021-12-06 23:57:07 +08:00
Steve Mason
5bd0452893
[Java][Native] Drain InputStream when no response is being read ( #10956 )
...
The [docs for ofInputStream](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.BodySubscribers.html#ofInputStream() ) say:
> To ensure that all resources associated with the corresponding exchange are properly released the caller must ensure to either read all lines until the stream is exhausted, or call BaseStream.close() if it is unable or unwilling to do so. Calling close before exhausting the stream may cause the underlying HTTP connection to be closed and prevent it from being reused for subsequent operations.
When ObjectMapper.readValue is called with an InputStream it implicitly closes it, but when the library is not expecting a return type it's not passing the InputStream to Jackson, so the stream needs to be manually drained and closed as per the docs
Failure to do this leads to a leak of HttpClient socket handles, and ultimately the exception `java.net.BindException: Cannot assign requested address` when trying to make API calls
2021-11-25 14:44:57 +08:00
WILLIAM CHENG
eb75515715
Merge branch '5.4.x' into 6.0.x
2021-11-21 09:50:47 +08:00
WILLIAM CHENG
78fe5dc427
Merge remote-tracking branch 'origin/master' into 5.4.x
2021-11-21 09:43:21 +08:00
Oleh Kurpiak
e7c3bdacc2
[Java] fix deserialization of readonly properties ( #10113 )
...
* [Java] fix deserialization of readonly properties
* [Java] fix deserialization of readonly properties
* [Java] fix deserialization of readonly properties
* [Java] fix deserialization of readonly properties
2021-11-14 22:05:25 +08:00
Oleh Kurpiak
3bdbf0339a
[Java] deserialize to LinkedHashSet when unique items ( #10241 )
...
* [Java] deserialize to LinkedHashSet when unique items
* [Java] fix deserialization of readonly properties
* [Java] deserialize to LinkedHashSet when unique items
2021-11-14 22:03:02 +08:00
William Cheng
48f81eef45
use IllegalArgumentException instead ( #10745 )
2021-11-02 12:47:15 +08:00
WILLIAM CHENG
4f2b5ee36d
Merge remote-tracking branch 'origin/5.4.x' into 6.0.x
2021-11-01 00:54:44 +08:00
WILLIAM CHENG
ab603a7322
Merge remote-tracking branch 'origin/master' into 5.4.x
2021-11-01 00:49:06 +08:00
Martin Visser
59d5851797
Fix library generation compatibility with Gradle 7.2 ( #10716 )
...
* Make Java libraries compatible with Gradle 7
* Make kotlin-spring compatible with Gradle 7
* Update samples to comply to Gradle 7.2
* Generate samples
2021-10-29 12:36:12 +08:00
WILLIAM CHENG
42f4e863b7
prepare 5.4.0-SNAPSHOT
2021-10-25 12:13:33 +08:00
William Cheng
378465702c
Prepare v5.3.1 in the master ( #10681 )
...
* prepare v5.3.1
* update doc
* update readme
2021-10-25 01:16:07 +08:00