William Cheng
dccb147055
Fix allOf with a single item in inline model resolver ( #17683 )
...
* fix inline model resolver for allof with 1 item
* add files
* update sha
* more checks
2024-01-23 23:37:39 +08:00
William Cheng
27f766721a
support x-internal in models and operations ( #17639 )
2024-01-20 15:20:25 +08:00
William Cheng
64c763b87a
[OAS 3.1] Fix null type check in normalizer ( #17609 )
...
* fix null type check in normalizer
* add back ref check
* add files
2024-01-14 00:49:35 +08:00
William Cheng
c6efe8810d
better npe handling when processing openapi 3.1 spec
2024-01-13 11:21:08 +08:00
William Cheng
75ef9e0b02
update java samples
2024-01-12 12:51:33 +08:00
Marc Weiß
76560e34c9
replace deprecated ISO8601Utils with StdDateFormat ( #17052 )
2024-01-11 18:24:52 +08:00
Jorge Rodríguez Martín
61c40474af
[BUG][java][resttemplate] Fix NPE when query param with value null is exploded ( #17568 )
...
* Fix NPE when query param with value null is exploded
* Polish
* Add test
* Update tests
* Add integration test
2024-01-10 23:39:41 +08:00
Alexis Couvreur
dd5c7e3b9a
fix: ExampleGenerator correctly generates allOf composed schemas ( #17499 )
...
* fix: ExampleGenerator correctly generates allOf composed schemas
Changes the previous behavior of generating `null` examples for allOf composed schemas.
Fixes #17497
* fix: ExampleGenerator correctly generates anyOf and oneOf composed schemas
Changes the previous behavior of generating `null` examples for anyOf and oneOf composed schemas.
To generate a oneOf/anyOf example, we generate the example using the first valid schema available. In case of a $ref, we use the first valid reference.
Fixes #17497
2024-01-10 11:04:11 +08:00
Hansjörg Oppermann
8bab0ceb53
Generated methode ApiClient.parameterToPairs failed to handle empty collections #17460 ( #17463 )
...
* #17460 add missing empty collection check
* generate samples
2024-01-10 02:29:10 +08:00
Steven Sheehy
209344ba40
[java][native] Fix ObjectMapper deprecation warnings ( #17558 )
...
* Fix ObjectMapper deprecation warnings
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
* Fix missing JsonMapper import
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
---------
Signed-off-by: Steven Sheehy <steven.sheehy@swirldslabs.com>
2024-01-09 16:37:59 +08:00
William Cheng
4acbd69c3d
update samples
2024-01-06 15:29:09 +08:00
martin-mfg
64f2cad9e8
fix #17258 - use model class only if it is generated ( #17490 )
...
* fix #16797 and #15796 spring child constructor missing parent params
* root cause and update the DefaultCodegen.java to add missing property when with multi inheritance
* rollback SpringCodegen.java
* update samples
* rollback with master cause #16992 fixed this issue too
* still using orignal design
* catchup master
* catchup master
* catchup master
* fix
* add tests
---------
Co-authored-by: dabdirb <dabdirb@gmail.com>
2024-01-05 10:30:28 +08:00
Ilamparithi Natarajan
ddc7d4b1b5
[java][resttemplate] rethrow original exception when retry limits exceeded ( #17488 )
...
in rest template, when the retry limits exceeded
rethrow the original exception
also add 429 (Too many requests) status code to the
retry logic
fix #17478
2024-01-05 09:57:24 +08:00
William Cheng
c215bc681d
better java resteasy echo api client tests ( #17473 )
2023-12-26 10:25:55 +08:00
Milad
8c014372aa
[Java RESTEasy client] updating test to use the Java RESTEasy echo api client ( #17367 ) ( #17470 )
...
* updating test to use the Java RESTEasy echo api client (#17367 )
* regenerated samples
* set source and target to 1.8 to fix workflow failure, adapted parser
2023-12-26 09:32:51 +08:00
William Cheng
5eab3cef19
Prepare 7.3.0-SNAPSHOT ( #17456 )
...
* Revert "v7.2.0 release (#17455 )"
This reverts commit fe638d009363c142c246ff089032f243e0b4ee01.
* set version to 7.3.0-SNAPSHOT
* update doc
2023-12-22 16:55:58 +08:00
Nikita Shmakov
3099a2fcd3
webclient explode query parameters support ( #17441 )
2023-12-21 19:35:07 +08:00
Milad
106047980b
[Java RESTEasy client] added filename directive for Java RESTEasy file uploads ( #17367 ) ( #17435 )
...
* added filename directive for Java RESTEasy file uploads (#17367 )
* regenerated samples
2023-12-21 19:34:30 +08:00
William Cheng
dc047b4e91
fix missing array description in 3.1 spec ( #17427 )
2023-12-19 11:35:46 +08:00
dabdirb
e63563a8fc
fix #16889 replace deprecated response code function ( #17405 )
2023-12-15 13:41:14 +08:00
William Cheng
367301de22
deref parameter in normalizer for 3.1 spec ( #17406 )
2023-12-15 12:18:07 +08:00
renaud-twd
a9179e95dd
fix: java apache httpclient should support UTF-8 by default ( #17395 )
...
* fix(java): apache-httpclient serialization error
fixes following related issue:
https://github.com/OpenAPITools/openapi-generator/issues/12797
* docs(java): update samples and docs
2023-12-15 09:01:10 +08:00
rubiniselvaraj
4c4388e3c8
Fix for handling error in resttemplate ( #17381 )
...
* Fix with handling error
* Fix with handling error
2023-12-13 12:56:02 +08:00
rubiniselvaraj
a792a79059
Implementing retry logic to restTemplate ( #17375 )
...
* Implementing retry logic to restTemplate
* Fixing the issue
* Adding import
* Fix
* Fix
* minor update, add tests
* fix
* Adding the maxRetryAttempt, threadWaitTime as additionalProperty
* Updating the apiClient
* Removing reduntant variable
* Generating samples
* Fixing format
---------
Co-authored-by: Rubini <rubini@Rubinis-MacBook-Air.local>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-12-12 22:01:36 +08:00
Aliaksei
809b3331a9
[4947][java]: adds support for validation of primitives in arrays ( #17165 )
...
* [4947][java]: adds support for validation of primitives in arrays
* [4947][java]: prevents generation '@Valid' for Object
* [4947][java]: test against different codegens and stick to primitive
* [4947][java]: code review
* [4947][java]: enhance getBeanValidation
* [4947][java]: adds email
* [4947][java]: removes unnecessary override
* [4947][java]: adds postProcessResponseWithProperty
* [4947][java]: adds missing import {{javaxPackage}}.validation.Valid
* [4947][java]: adds missing useBeanValidation
* [4947][java]: fix use rootJavaEEPackage for helidon
2023-12-11 20:55:38 +08:00
William Cheng
d4d5196907
Better handling of any type in v3.1 spec ( #17370 )
...
* fix NPE in the example generator
* fix any type in 3.1 spec
* use log error instead
2023-12-11 17:13:55 +08:00
William Cheng
dd36fa09f8
update logbak core to newer version ( #17360 )
2023-12-09 21:59:50 +08:00
William Cheng
4c4d0e485a
[java] Update logback to newer versions ( #17259 )
...
* update logback to newer versions
* update
2023-11-30 18:51:46 +08:00
Beppe Catanese
4a1db3f1e6
[JAVA] Jersey3 deprecate class attribute ( #17223 )
...
* Deprecate attribute
* Generate samples
2023-11-30 13:50:30 +08:00
Beppe Catanese
fd58539fe9
[JAVA] Jersey3 deprecated field only deprecates getter method ( #17221 )
...
* Deprecate build and setter methods
* Generate samples
2023-11-29 21:54:17 +08:00
Vignesh
87b86c78dc
feat: Support useSingleRequestParameter feature for java microprofile client generation ( #17072 )
2023-11-21 11:56:11 +08:00
William Cheng
0401c46147
Fix missing objects when defining inline anyOf, or oneOf ( #17141 )
...
* better handling of composed schema in inline model resolver
* better handling of example
2023-11-20 10:24:57 +08:00
William Cheng
6d93b0ec83
Fix handling of composed schema in inline model resolver ( #17138 )
...
* fix handling of composed schema in inline model resolver
* update samples
2023-11-19 23:24:49 +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
William Cheng
195f27de1f
update rest-assured dep to newer versions ( #17107 )
2023-11-17 10:35:54 +08:00
William Cheng
07620cebe2
update webclient dep to newer version, add tests ( #17106 )
2023-11-17 10:34:22 +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
William Cheng
91ac75ff05
Fix NPE in request body ( #17055 )
...
* fix null request body NPE
* fix typo
2023-11-14 10:41:21 +08:00
William Cheng
53289263d9
Prepare v7.2.0 ( #17050 )
...
* update version to 7.2.0-SNAPSHOT
* update samples
* update doc
2023-11-13 18:53:20 +08:00
William Cheng
ec3c484ce9
Add enum name mapping to Java generators ( #17018 )
...
* add enum name mapping to java generators
* update doc
* update description
2023-11-13 10:53:50 +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
Marc Weiß
74163f0ac8
bump gson-fire to 1.9.0 ( #17002 )
2023-11-07 22:35:05 +08:00
William Cheng
de8599906e
Better handling of API response in 3.1 spec ( #16986 )
...
* better handling of API response in 3.1 spec
* update PR template
* add tests
2023-11-05 15:24:02 +08:00
William Cheng
5d03c4ac82
[java-okhttp] Restore integration tests ( #16985 )
...
* restore java okhttp tests
* update PR template, update sha
2023-11-04 22:50:23 +08:00
dabdirb
739390a682
java exclude password field from toString ( #16942 )
2023-10-31 17:50:30 +08:00
Ben Madore
d6421411c9
chore: remove unused commons logging imports from java webclient ( #16839 )
...
Co-authored-by: Ben Madore <ben.madore@glassdoor.com>
2023-10-17 13:33:34 +08:00
Robert Danci
87f9d53c3a
[Java][client] Fix feign classcastexception when getting headers ( #16745 )
...
* Avoid ClassCastException when getting headers (the header values are Collection<String> and not List<String>)
Delete unused classes
* Remove feign10x
* Add unit test
Refactor to avoid creating the headers map when ApiResponse is not used
2023-10-10 14:53:32 +08:00
martin-mfg
e3db882ed4
[JAVA][KOTLIN][SPRING] upgrade dependencies ( #16759 )
...
* upgrade spring-boot-starter-parent
* upgrade springdoc and swagger-ui
* upgrade v3 swagger-annotations
* generate samples
* upgrade jackson
* fix spring cloud, remove temp comment
Putting "8" instead of "1.8" should be ok, because Spring Boot 3 requires Java 17 anyway, so it should be able to understand that 8 is the same as 1.8.
* generate samples
* upgrade JUnit 5, remove commons-io dependency, remove outdated samples/client/petstore/java/feign/feign10x/ files, generate samples
commons-io dependency was introduced in https://github.com/OpenAPITools/openapi-generator/pull/8484 , but I don't see why it would be needed now or back then.
* update gson, generate samples
* update logback
* update feign
* update scribejava
* generate samples
* update httpmime
* okhttp-gson: update commons-lang & okhttp & junit-platform, remove mockito; generate samples
It seems Mockito is not used at all there.
* okhttp-gson: remove unnecessary sample files, generate sample files
* upgrade google-api-client & jersey-common, restore ClientTest, generate samples
* misc. upgrades in jersey2 and jersey3
jersey 3.1.3 is available already, but IntelliJ reports security problems in 3.1.3 and 3.1.2, so I used 3.1.1 instead.
* align some gradle&sbt files with poms, generate samples
* whitespace fix
2023-10-09 14:55:32 +08:00
William Cheng
a1d00e4785
[Java][okhttp-gson] fix AWS auth issue ( #16721 )
...
* fix samples
* fix awsauth in okhttp gson java client
* update github workflow
2023-10-04 18:28:50 +08:00
Jan Gosmann
7087b332f0
Replace deprecated Gradle properties ( #16695 )
...
* destinationDir -> destinationDirectory (scheduled to be removed in Gradle 9.0)
* archiveName -> archiveFileName (removed in Gradle 8.0)
Cp. https://docs.gradle.org/current/userguide/upgrading_version_7.html
2023-10-04 16:24:05 +08:00