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
William Cheng
33ec0540b2
fix typo in the comments ( #11729 )
2022-02-26 15:45:30 +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
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
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
William Cheng
c8b84c4d03
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-30 18:01:35 +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
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