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
12cdacabbf
[Inline model resolver] better handling of inline responses and bug fixes ( #12353 )
...
* better handling of inline response schemas, bug fixes
* update samples
* add new files
* better code format
* remove unused ruby files
* fix java test
* remove unused js spec files
* remove inline_response_default_test.dart
* fix webclient tests
* fix spring tests
2022-05-13 10:17:59 +08:00
William Cheng
8330e16d66
Better inline model resolver to handle inline schema in array item ( #12104 )
...
* better support of inline schema in array item
* update tests
* update samples
* regenerate samples
* fix allof naming, remove files
* add files
* update samples
* update readme
* fix tests
* update samples
* update samples
* add new files
* update test spec
* add back tests
* remove unused files
* comment out python test
* update js test using own spec
* remove files
* remove unused files
* remove files
* remove unused files
* better handling of allOf with a single type
* comment out go test
* remove test_all_of_with_single_ref_single_ref_type.py
* fix inline resolver, uncomment go test
2022-04-20 10:28:15 +08:00
Peter Leibiger
478ed9b8ed
Add a sample of an enum model array in query params ( #12107 )
2022-04-12 13:53:51 +08:00
Peter Leibiger
15e9d4ed8c
Add example allOf with single ref ( #10948 )
...
* Add example allOf with single ref
* fix dart-dio-next handling of that case
* Refactor without vendor extension
* Regenerate newer samples
2022-04-12 13:52:53 +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
Oleh Kurpiak
2e0dc573b3
[Java][WebClient] allow sync requests ( #11780 )
2022-03-04 22:58:03 +08:00
Chris White
d153134dec
Fixed RFC3999DateFormat clone NPE ( #11705 )
2022-02-24 12:29:23 +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
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
William Cheng
12e03b1937
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-02 15:41:37 +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
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
eb75515715
Merge branch '5.4.x' into 6.0.x
2021-11-21 09:50:47 +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
Vincent Galloy
955aadc284
10788: ApiClient for resttemplate should not produce warning ( #10789 )
...
Motivation:
Remove useless warnings for webclient and resttemplate
2021-11-09 14:38:57 +08:00
William Cheng
48f81eef45
use IllegalArgumentException instead ( #10745 )
2021-11-02 12:47:15 +08:00
William Cheng
150e304b4c
update samples
2021-09-25 13:56:00 +08:00
RomainPruvostMHH
04e67acd0a
Fix issue 8352: [Java][RestTemplate][WebClient] Incorrect handling of free form query parameters ( #10428 )
...
* [Java][RestTemplate][WebClient] fix issue #8352 handling of free-form
query parameters with Java
* replace tab by spaces
* commit samples files generated by the generate-samples.sh script
2021-09-21 11:40:56 +08:00
William Cheng
1231b1ab04
update samples, update html doc
2021-09-09 12:09:38 +08:00
Peter Leibiger
a558554961
Add OAS3 allowEmptyValue for query params ( #10312 )
...
* add the special case of empty query parameters to the fake API
2021-09-03 16:32:51 +08:00
Kaijia Feng
8cc2bc4fa7
[Java][RestTemplate][WebClient] Fix typo in comments ( #10311 )
2021-09-02 21:03:29 +08:00
Oleh Kurpiak
c148539ce3
[Java][Spring] fix imports for nullable helpers ( #10234 )
2021-09-02 11:01:12 +08:00
Nathan Baulch
5d68bd6a03
Fix thousands of spelling typos ( #10272 )
2021-08-28 22:58:24 +08:00
Thomas Zeeman
f2b50faeec
Fix unchecked conversion ( #10246 )
...
* Fix unchecked conversion
Update restttemplate and webclient templates to use <>-operator.
Also update samples.
* Update samples
2021-08-25 10:09:53 +08:00
agilob
7edddb6531
Add map property in url params ( #10154 )
...
* Add map property in request params
* Regenerate samples to include map in url property
2021-08-17 18:31:53 +08:00
William Cheng
fcdc9d49f7
update samples
2021-07-27 14:16:55 +08:00
unintended
68d48ea03a
Store uri template attribute for webclient to store in metrics ( #9964 )
...
* store URI template attribute for webclient
* generate samples
2021-07-27 14:13:24 +08:00
Oleh Kurpiak
aa4018d09b
[Java] fix nullable arrays when JsonNullable is used ( #10012 )
2021-07-27 13:57:07 +08:00
Jorge Rodríguez Martín
e568376a01
[Java][RestTemplate][WebClient] Templatized query params for metrics and evicts oom ( #9871 )
...
* [Java][RestTemplate] Templatized query params for metrics and evicts oom
* [Java][WebClient] Templatized query params for metrics and evicts oom
* [Java][RestTemplate] Templatized query params for metrics and evicts oom
* Update samples
* [Java] Add javadoc
* [Java] Update samples
2021-07-21 17:03:19 +08:00
William Cheng
2e1b028ccd
update samples
2021-07-19 11:43:03 +08:00
William Cheng
e263e6acc0
[Java] update test samples ( #9972 )
...
* remove new java samples
* java feign, webclient use fake petstore for tests
* update samples
2021-07-19 11:08:44 +08:00
Marcel Stör
c5f5d3dd6a
[Java] Add @javax.annotation.Nonnull to required getters ( #9593 )
...
* Add @javax.annotation.Nonnull to required getters
* Add updated samples
* Consider the nullable constraint
2021-07-19 10:48:58 +08:00
Jon Jensen
bd070308d9
[Java][*] Annotate deprecated operations and schemas ( #9478 )
...
Refs #3358
Ensure `deprecated` operations are annotated/documented as such on the
generated methods. Libraries updated:
* [feign]
* [google-api-client]
* [microprofile]
* [okhttp-gson]
* [resttemplate]
* [retrofit]
* [retrofit/play*]
* [webclient]
* [vertx]
Ensure `deprecated` schemas are annotated/documented as such on the
generated classes/fields. Libraries updated:
* [feign]
* [google-api-client]
* [jersey2]
* [microprofile]
* [native]
* [okhttp-gson]
* [rest-assured]
* [resteasy]
* [resttemplate]
* [retrofit*]
* [webclient]
* [vertx]
Also fix two minor bugs to get the java sample tests working:
* Fix an invalid jackson-datatype-threetenbp version number in vertx/pom.mustache
* Fix a bad return type in webclient/api_test.mustache when uniqueItems=true
Since this commit updates petstore-with-fake-endpoints-models-for-testing.yaml,
several other samples were updated, but it's just new files to reflect the
deprecated schemas, so there should be no consequential differences.
Relevant bits of the spec:
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#user-content-operationdeprecated
* https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#user-content-schemadeprecated
2021-07-19 10:27:03 +08:00
Guillaume TOURBIER
95a11a7f5d
[Java][WebClient] add ResponseEntity return for webclient ( #9327 )
...
* feat: add ResponseEntity return for webclient
fix : #5599
* refactor: merge functions
simplification to avoir duplicated code
2021-06-18 16:03:38 +08:00
Payal Gadura
98ae4ab614
Filter out problem+json mime type from JSON mime types ( #9680 )
2021-06-11 00:59:22 +08:00
William Cheng
85ff15ac8a
update samples
2021-05-10 19:05:02 +08:00
Guillaume TOURBIER
808c0b03bd
feat: add access to webclient and webclientBuilder ( #9329 )
...
* feat: add access to webclient and webclientBuilder
fix : #8602
* docs: add params for webclient & builder
2021-05-10 19:02:36 +08:00
Jakob
0af45b3823
[Java] add jackson annotations to setters ( #9041 )
...
* [Java] add jackson annotations to setters
Closes #6856
* [Java] fix conflictiong setter with JsonNullable
2021-03-30 11:17:15 +08:00
William Cheng
9d8494a89d
update samples
2021-03-15 22:55:36 +08:00
Backfighter
ad603f44fb
[Java][webclient] Fix deprecation warning: BodyInserters.fromObject ( #8963 )
...
* Fix deprecation warning: BodyInserters.fromObject
See for more information #8553
* [Java][webclient] Upgrade to spring 5.2.13
2021-03-14 00:12:48 +08:00
William Cheng
84813be309
remove supportJava6 option ( #8514 )
2021-01-26 10:27:09 +08:00
William Cheng
a407090bef
update samples
2020-12-18 12:28:41 +08:00
David Ruppelt
4f0e75b32d
remove default ContentType for java webclient ( #7945 )
2020-11-24 22:28:23 +08:00
dtiller
3f7a3f2b59
[TYPO] [WEBCLIENT] Issue 7425: Fixed comments that referred to RestTemplate. ( #7445 )
...
* Issue 7425: Fixed comments that referred to RestTemplate.
* Ran genreate-samples.sh
* Re-ran generate-samples.sh against all configs.
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2020-09-19 12:07:35 +08:00
Oleh Kurpiak
14a500c6fe
[Java][Client] Use java8 OffsetDateTime for clients ( #7190 )
...
* use java8 OffsetDateTime for clients
* use java8 OffsetDateTime for clients
* fix javadoc
* add javadoc to JavaTimeFormatter.mustache
* add javadoc to JavaTimeFormatter.mustache
* add javadoc to JavaTimeFormatter.mustache
2020-08-31 22:31:28 +08:00