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
martin-mfg
dcc53c0d53
[Typescript][Scala][Postman][Java] fix errors with missing models, missing description, BigDecimal ( #15809 )
...
* various fixes
* generate samples
2023-06-27 16:20:21 +08:00
Noah Overcash
e8fc4d159e
Remove unused import in Java resttemplate auth templates ( #15899 )
...
* Remove unused import in Java resttemplate HttpBasicAuth
* Remove unused import in Java resttemplate HttpBearerAuth
* Update samples
2023-06-27 10:24:03 +08:00
William Cheng
af048ec62f
update samples
2023-06-24 08:10:14 +08:00
GregDThomas
5d6b769b5b
Fix issue #907 by ensuring the parameters is properly "exploded" ( #14825 )
2023-06-23 20:11:39 +08:00
William Cheng
14fc61a293
[java] fix default value - empty list []
( #15862 )
...
* fix empty default value in java okhttp-gson
* add files
2023-06-20 11:27:56 +08:00
Tiffany Marrel
0e212f53f2
[Java] [Kotlin] ignore unsupported schemes instead of throwing exception ( #15817 )
2023-06-15 16:50:49 +08:00
William Cheng
37d8a0d3ff
Add java-webclient gradle test ( #15837 )
...
* add gradle test for webclient swagger2 annotation
* trigger build
2023-06-13 21:32:40 +08:00
Frederic Jones
43b1ce2c89
Fix typo on swagger2 dependency ( #15826 )
2023-06-13 21:02:58 +08:00
William Cheng
6788f43af0
Better handling of Inline schema ( #15682 )
...
* skip allOf inline subschema created as $ref
* add option for fallback
* add back atleastonemodel
* add log
* update java, kotlin, js samples
* update tests
* fix native client test
* fix java client errors by regenerating test files
* clean up python
* clean up powershell
* clean up php
* clean up ruby
* update erlang, elixir
* update dart samples
* update ts samples
* update r, go samples
* update perl
* update swift
* add back files
* add back files
* remove outdated test files
* fix test
2023-06-11 15:35:58 +08:00
martin-mfg
02790f987e
always use @JacksonXmlElementWrapper and read xml data from referenced schema, updated ( #15115 )
...
* always use @JacksonXmlElementWrapper and read xml data from referenced schema
based on https://github.com/OpenAPITools/openapi-generator/pull/5371
* run generate-samples.sh
* suggestion: remove comment with empty name
2023-06-09 09:19:42 +08:00
martin-mfg
b7f2b723aa
[JAVA] fix toUrlQueryString for BigDecimal ( #15764 )
...
* add MyImportTest.java
* fix original issue
* fix same issue for native library
* remove MyImportTest
* add test configs
* generate samples (again?)
* generate samples again
* generate samples again, undo pom.xml mistake [amended to retrigger circliCi]
2023-06-08 09:34:06 +08:00
Frederic Jones
59ba00e1f3
Add support for swagger2 in [java] client generators ( #15456 )
...
* Add support for swagger2 in java client generator
* Target 7.x.x
* Upstream changes
2023-06-06 15:41:12 +08:00
karzang
bc7bdca87f
support nullable check for OAS 3.1 ( #15698 )
2023-06-05 19:34:51 +08:00
samypr100
fe6e4e459f
[java] support required nullable properties on java okhttp-gson generator ( #15462 )
...
* Support required nullable properties on java okhttp-gson generator
* regen client after merge
* covering cases
* nullable - true ; required - true
* nullable - false ; required - true
* nullable - true ; required - false
* nullable - false ; required - false
2023-05-26 16:02:48 +03:00
Tiffany Marrel
cbcf3d36f6
[Java] [Kotlin] ( #14876 ) fix use of isBasic conditions - do not use HttpBearerAuth (or HttpBasicAuth) for other http auth methods (such as http signature auth or custom schemes) ( #15220 )
...
* remove http signature from test yaml when not supported
* do not use HttpBearerAuth for signature auth or other unsupported http auth method
ignore unsupported http auth method unless generated code would not compile (in which case, an exception is thrown)
* [Java] fix use of isBasic condition
* [kotlin] fix use of isBasic condition
2023-05-22 16:08:08 +08:00
martin-mfg
ad5cc827f0
remove fullJavaUtil ( #15033 )
2023-05-22 14:40:35 +08:00
William Cheng
0c3460f95b
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-05-10 15:00:56 +08:00
Tiffany Marrel
8a6c708884
[Java] Cleanup documentation ( #15300 )
...
* [Java] fix documentation of API authorization in README files
fix hierarchy level + add internal links + align wording across generators
* [Java] fix anchor links in documentation
2023-05-10 14:14:44 +08:00
Jorge Rodríguez Martín
fb059c259c
[BUG][JAVA][restTemplate] ApiClient is not compatible with spring-web 6 Observation API ( #15421 )
...
* ApiClient is not compatible with spring-web 6 Observation API. Field uri is never filled
* Update samples
2023-05-09 14:04:51 +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
92bcdea2fa
Revert "Remove CXF imports and dependency ( #15364 )" ( #15392 )
...
This reverts commit 6686fb87b9901ee0eeff9ef6e91b1e9c51704569.
2023-05-03 11:00:12 +08:00
William Cheng
bec32ae67f
update samples
2023-05-03 09:43:43 +08:00
Steffen Nießing
6686fb87b9
Remove CXF imports and dependency ( #15364 )
2023-05-03 01:09:16 +08:00
Beppe Catanese
6f24ad3625
[JAVA] OkHttp-GSON deprecated field only deprecates getter method ( #15287 )
...
* Deprecate build and setter methods
* Test with deprecated property
* Update samples
* Remove extra line
* Regenerate samples
2023-04-26 11:40:30 +08:00
John Dimeo
90b78fe97e
Jersey2/3 - Probe content type for multipart upload parts ( #14965 )
...
* Probe content type for multipart form uploads since many servers require each part to correctly identify its type.
* Update samples
* Add explanatory comment
* Update samples with comment
2023-04-14 12:15:13 +08:00
Robin Karlsson
b247ad75e1
[java] Add public static version field ( #15108 )
2023-04-14 01:06:54 +08:00
William Cheng
935146d187
Merge remote-tracking branch 'origin/master' into 7.0.x
2023-04-12 17:51:47 +08:00
William Cheng
ff48f80379
udpate vertx to newer version 3.5.2 ( #15197 )
2023-04-12 11:32:11 +08:00
William Cheng
ba2c42e34b
add override to java native pojo ( #15125 )
2023-04-06 15:00:14 +08:00
William Cheng
5d1e18306a
Prepare 6.6.0-SNAPSHOT ( #15100 )
...
* set 6.6.0 snapshot version
* update samples
* update readme
2023-04-01 18:48:01 +08:00
William Cheng
7417432a54
Prepare 6.5.0 release ( #15099 )
...
* 6.5.0 release
* update samples
2023-04-01 15:03:35 +08:00
William Cheng
9fa032b365
add isOverridden, update java pojo with setter for parent prop ( #15051 )
2023-03-29 10:57:49 +08:00
RInverid
36332331e4
Skip null form values for Java native request builder ( #15036 )
2023-03-29 10:55:28 +08:00
William Cheng
a4dd90c01d
Better allOf handling in fromProperty ( #15035 )
...
* fix allOf handling in fromProperty
* add null check, update samples
* update dart generator to handle allof with a single ref
2023-03-26 15:06:27 +08:00
William Cheng
f5e427ad52
Do not add schema / class name mapping where custom mapping exists ( #14984 )
...
* fix #13150 Do not add schema / class name mapping where custom mapping exists
* update test spec
* improve import
* fix import for mapped models
* fix python
* code clean up
* fix dart client import
* fix dart:core import
* better import
* add tests
---------
Co-authored-by: Bernie Schelberg <bernard.schelberg@mywave.ai>
2023-03-24 22:20:04 +08:00
William Cheng
3d4f7b3ce0
[java] fix optional array property's default value ( #14961 )
...
* fix optional array property default value
* fix default values
* more fixes
* update default value for jersey2, 3, okhttp-gson
* update default value
* fix java okhttp-gson
* fix jersey2, 3
2023-03-17 11:58:49 +08:00
martin-mfg
f1d05fc7f8
Allow Java apache-httpclient users to supply additional HTTP headers per call, updated ( #14929 )
...
* Allow Java apache-httpclient users to supply additional HTTP headers per API call
* fix 'unexpected return value' problem
* make "fullJavaUtil" work
* Revert 'make "fullJavaUtil" work'
This reverts commit 60c8846.
---------
Co-authored-by: Jigar Joshi <jigarjm@gmail.com>
2023-03-14 20:20:31 +02:00
Christian Mösl
85ff3de157
[java][webclient/resttemplate] fix dependencies for gradle with jakarta ( #14925 )
2023-03-14 17:57:08 +02:00
Robin Karlsson
564939a4a8
[java][jersey] Remove double brace initialization and some more jersey cleanup ( #14783 )
...
* Remove double brace initialization
* Use diamond operator
* Less clutter in generated api classes
* Optimize isJsonMime
* Revert change in escapeString
Skip toString() on string parameters.
* Fix edge-cases
A ServerVariable without enumValues and/or operationServers
with any ServerVariables would lead to invalid code.
2023-03-13 16:42:37 +08:00
Andre Vegas
d56a55a06b
Fixing missing openApiNullable config for java apache-httpclient generator ( #14828 )
...
* 14827 - fixing missing openApiNullable config for java apache-httpclient generator
* 14827 - run PR steps updating examples & docs
* 14827 - fixing test data
2023-03-09 00:05:47 +08:00
Jorge Rodríguez Martín
9705617f93
[Java][Resttemplate] Normalize the RestTemplate ApiClient ( #14845 )
...
* Normalize resttemplate
* Update samples
2023-03-08 23:57:05 +08:00
William Cheng
1beec7ef87
Merge remote-tracking branch 'origin' into 7.0.x
2023-03-03 21:52:50 +08:00
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