Skip to content

Commit 6592260

Browse files
committed
#23560 Update Samples and Docs
1 parent bff9f50 commit 6592260

25 files changed

Lines changed: 561 additions & 3 deletions

File tree

docs/generators/java-microprofile.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
111111
|useSingleRequestParameter|Setting this property to "true" will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY native, jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option. Setting this property to "static" does the same as "true", but also makes the generated arguments class static with single parameter instantiation.| |false|
112112
|useSpringBoot4|Generate code and provide dependencies for use with Spring Boot 4.x.| |false|
113113
|useUnaryInterceptor|If true it will generate ResponseInterceptors using a UnaryOperator. This can be usefull for manipulating the request before it gets passed, for example doing your own decryption| |false|
114+
|useVertx5|Whether to use Vert.x 5 syntax.| |false|
114115
|webclientBlockingOperations|Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync| |false|
115116
|withAWSV4Signature|whether to include AWS v4 signature support (only available for okhttp-gson library)| |false|
116117
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|

docs/generators/java.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
111111
|useSingleRequestParameter|Setting this property to "true" will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY native, jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option. Setting this property to "static" does the same as "true", but also makes the generated arguments class static with single parameter instantiation.| |false|
112112
|useSpringBoot4|Generate code and provide dependencies for use with Spring Boot 4.x.| |false|
113113
|useUnaryInterceptor|If true it will generate ResponseInterceptors using a UnaryOperator. This can be usefull for manipulating the request before it gets passed, for example doing your own decryption| |false|
114+
|useVertx5|Whether to use Vert.x 5 syntax.| |false|
114115
|webclientBlockingOperations|Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync| |false|
115116
|withAWSV4Signature|whether to include AWS v4 signature support (only available for okhttp-gson library)| |false|
116117
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|

samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ protected String selectHeaderContentType(String[] contentTypes) {
430430
return contentTypes[0];
431431
}
432432

433+
433434
public void sendBody(HttpRequest<Buffer> request,
434435
Handler<AsyncResult<HttpResponse<Buffer>>> responseHandler,
435436
Object body) {
@@ -585,7 +586,6 @@ protected <T> void handleFileDownload(HttpResponse<Buffer> response, Handler<Asy
585586
}
586587
});
587588
};
588-
589589
String dir = getDownloadsDir();
590590
if (dir != null && !dir.isEmpty()) {
591591
fs.mkdirs(dir, mkdirResult -> {

samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
import java.util.*;
88

9+
910
import rx.Single;
11+
1012
import io.vertx.core.AsyncResult;
1113
import io.vertx.core.Handler;
1214

@@ -54,9 +56,11 @@ public void call123testSpecialTags(UUID uuidTest, Client body, ApiClient.AuthInf
5456
* @return Asynchronous result handler (RxJava Single)
5557
*/
5658
public Single<Client> rxCall123testSpecialTags(UUID uuidTest, Client body) {
59+
5760
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut ->
5861
delegate.call123testSpecialTags(uuidTest, body, fut)
5962
));
63+
6064
}
6165

6266
/**
@@ -68,9 +72,11 @@ public Single<Client> rxCall123testSpecialTags(UUID uuidTest, Client body) {
6872
* @return Asynchronous result handler (RxJava Single)
6973
*/
7074
public Single<Client> rxCall123testSpecialTags(UUID uuidTest, Client body, ApiClient.AuthInfo authInfo) {
75+
7176
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut ->
7277
delegate.call123testSpecialTags(uuidTest, body, authInfo, fut)
7378
));
79+
7480
}
7581

7682
public static AnotherFakeApi newInstance(org.openapitools.client.api.AnotherFakeApi arg) {

0 commit comments

Comments
 (0)