Mike Friesen
97c1dc8a1a
#18252 - [REQ] add sessionToken support to AWS4Auth ( #18253 )
2024-04-11 11:56:40 +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
William Cheng
83b45fd1e8
[java][okhttp-gson] Fix oneof, anyof for array type ( #18324 )
...
* fix oneof, anyof for array type in java okhttp-gson
* fix oneof
* fix add tests
* clean up comments
* update
* add new files
2024-04-08 22:20:23 +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
Andre Wachsmuth
8ca914d64f
[okhttp-gson] Make initializer block for GSON builder static #16860 ( #16892 )
...
* [okhttp-gson] Make initializer block for GSON builder static #16860
Make initializer block for GSON builder static, see #16860
* update sapmles
---------
Co-authored-by: Andre Wachsmuth <awa@xima.de>
2024-02-28 12:04:44 +08:00
Jesenko Mehmedbasic
a092bbd83b
[BUG] [Java] Remove deprecation and serial warnings in ApiException.java and JSON.java ( #17716 )
...
* Add serialVersionUID to Java apiException.mustache templates
* Use 'enable()' and 'disable()' methods to handle object mapper features in JSON.mustache for the "native" Java generator instead of the deprecated 'configure()'
* Update samples
2024-01-27 10:42:27 +08:00
Marc Weiß
76560e34c9
replace deprecated ISO8601Utils with StdDateFormat ( #17052 )
2024-01-11 18:24:52 +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
Charles Treatman
c8b3da7388
[Java][okhttp-gson] remove unreachable code from templates ( #17057 )
...
* Remove checks for jackson and jsonb from okhttp-gson templates
* regenerate samples
2023-11-14 11:13:28 +08:00
Charles Treatman
166ebc50b0
[Java][okhttp-gson] validateJsonElement does not validate enum values ( #16865 )
...
* validate enum properties in validateJsonElement
* regenerate samples
* add test for enum validation in okhttp-gson models
2023-11-08 14:14:48 +08:00
William Caine
134dc98a71
fix: Using Map.Entry to avoid "reference to Entry is ambiguous" ( #16445 )
...
* fix: Using Map.Entry to avoid "reference to Entry is ambiguous"
when spec defines a model Entry it conflicts. Also rest of mustache
uses Map.Entry to matching it
* fix: Map.Entry - update samples
2023-08-30 12:57:53 +08:00
William Cheng
ff19825610
[java] Remove hardcoded arrays in template ( #16340 )
...
* remove hardcoded arrays in template
* better model import in java client
* update
* better code format
* minor refactoring
* update
2023-08-19 10:20:48 +08:00
William Cheng
5b2ceac93d
fix anyOf in handling primitive types in java client ( #16264 )
2023-08-06 13:48:13 +08:00
William Cheng
82516c75d2
Fix implements in oneof, anyof templates in java okhttp client generator ( #16241 )
...
* fix implements in oneof, anyof templates in java okhttp
* add tests
* update samples
2023-08-03 21:09:00 +08:00
Marc Miltenberger
adac3b127f
Support for multipart/form-data; charset="utf-8" in Java GSON Generator ( #16211 )
...
* Support for multipart/form-data; charset="utf-8"
Previously, it was only checked for an exact equal string, which failed when there were additional options such as charset.
* Update samples
2023-07-29 00:22:19 +08:00
karzang
e9d98666a1
[Java][Client] Fix #12556 Support primitives and arrays in oneOf ( #13897 )
...
* [Java][Client] Fix #12556 Support primitives and arrays in oneOf
* Regenerate petstore samples
* Regenerate petstore test samples
* Treat 'BigDecimal' as primtive datatype
* Fix integration tests
2023-06-29 16:46:55 +08:00
bcalvez
7a73f75f70
[java][okhttp-gson] Remove JAX-RS dependency from generated okhttp-gson java client ( #15896 )
...
* Remove JAX-RS dependency from generated okhttp-gson java client
* update samples
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-27 16:53:10 +08:00
Beppe Catanese
3d2ec72461
[JAVA] Okhttp-gson: blank line between annotations and method signature ( #15430 )
...
* Remove extra blank line
* Regenerate samples
2023-05-08 14:39:46 +08:00
William Cheng
bec32ae67f
update samples
2023-05-03 09:43:43 +08:00
Robin Karlsson
b247ad75e1
[java] Add public static version field ( #15108 )
2023-04-14 01:06:54 +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
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
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
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
cachescrubber
5221682086
[Java][Client] Support annotationLibrary=none to remove swagger annotations ( #13869 )
...
* Support annotationLibrary=none in JavaClientCodegen
* Add example using annotationLibrary=swagger1
* Support annotationLibrary=none in libraries
* Fix missing curly brace.
* fix if statement condition
* Support {{#swagger1AnnotationLibrary}} in java/rest-assured
* Adopt JavaModelTest
* Generate docs
* Generate samples
* clean up java feign files
* clean up feign samples
* fix resttemplate, native
* fix resttemplate withXml
* fix webclient
* fix java-jersey2, vertix
* fix googleapi client
* fix rest assured
* fix rest assured
* update apache-httpclient
* fix jersey2 special character
* fix resteasy
* fix jersey2
* update samples
* fix jersey2, okhttp streaming
* update okhttp-gson
* update samples
Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-11-04 17:07:46 +08:00
William Cheng
4c19c725a7
minor improvements on java client based on intellji ide ( #13864 )
2022-10-30 23:31:04 +08:00
William Cheng
f409fb6184
various improvements to java okhttp-gson client ( #13794 )
2022-10-23 10:52:54 +08:00
Andrew Hatch
9e5c919560
fix parameter ordering for RequestBody.create ( #13778 ) ( #13779 )
2022-10-22 21:03:57 +08:00
William Cheng
ca56242e4f
[java][okhttp-gson] minor improvements ( #13792 )
...
* use replace instead of replaceAll
* avoid using instance to accessd static methods
* use entrySet instead of keySet
* use statis class instead of instance for static method
* update samples
2022-10-22 13:31:59 +08:00
Andrew Hatch
c0a9f0ea51
[java][okhttp-gson] support JSON array values ( #13672 )
2022-10-17 01:35:58 +08:00
William Cheng
3ae37e27a5
[java][okhttp-gson] fix validateJsonObject ( #13630 )
...
* fix required check in java okhttp client
* fix validateJsonObject in okhttp-gson, add test
* move java-micronaut-client to test circleci
2022-10-07 23:06:34 +08:00
William Cheng
b6ca40031a
fix issue when discriminator property is an enum string ( #13001 )
2022-07-24 17:55:08 +08:00
William Cheng
ee8566260c
[JAVA] Generated api client doesn't work for plain text body types ( #12993 )
...
Co-authored-by: Ilya Kuchmin <kuchmin@haulmont.com>
2022-07-23 13:07:26 +08:00
Mauro Valota
ea7a319a65
[java] fixed pojo template for nullable fields ( #12630 )
...
* [java] fixed pojo template for nullable fields
* regenerated samples
2022-07-23 11:19:48 +08:00
Linus Klöckner
57496ff0b0
[java][okhttp-gson] Complex values in form data get serialized as JSON instead of String ( #12779 )
...
* Java: fix complex object serialization in form-data
* Java: update samples
2022-07-13 15:47:39 +08:00
Tomasz Janiszewski
0140f84f80
Keep AST small when usign builder ( #12610 )
2022-06-17 15:14:48 +08:00
William Cheng
3143390d59
[java][okhttp-gson] Add streaming support in group parameters ( #12601 )
...
* add streaming support in group paramters
* add tests
2022-06-16 16:20:32 +08:00
William Cheng
45a3b15b69
[java][okhttp-gson] Fix NPE in the response header, junit5 issue in surefire plugin ( #12525 )
...
* fix okhttp pom to work correctly with junit5
* fix version, fix NPE in response headers
2022-06-04 16:25:15 +08:00
Panos Argyrakis
981c090e0f
[Java][OkHTTP] Include HTTP response data in ApiException getMessage() ( #12207 )
...
* added getMessage() override
* Updated samples
* Updated test to expect new message format
* Updated pattern to expect specific message
* updated to platform agnostic line separators
2022-04-26 11:26:36 +08:00
Oleh Kurpiak
12454de3ac
[Java][OkHTTP] fix empty request body handling ( #12172 )
2022-04-20 00:17:28 +08:00
William Cheng
c533deb9a9
improve errorObjectType to avoid regression ( #12131 )
2022-04-14 16:31:42 +08:00
William Cheng
5cef7e613a
add response headers to api exception ( #12042 )
2022-04-05 17:24:41 +08:00
William Cheng
4e16146638
more checks in validateJsonObject ( #12041 )
2022-04-05 17:24:22 +08:00
William Cheng
6c1b68da91
[Java][okhttp-gson] better support for additional properties ( #11964 )
...
* add support for additiional properties in okhttp-gson java client
* deserialize with additional properties
* better handling of non-primitive type
* use entry set instead
* support disallowAdditionalPropertiesIfNotPresent
* remove additional properties in serialization
2022-03-27 16:56:25 +08:00
William Cheng
a4d320489d
fix warning, update build.gradle, build.sbt ( #11896 )
2022-03-18 09:50:05 +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
482032d14f
fix warnings due to incorrect docstring ( #11815 )
2022-03-07 09:23:09 +08:00