Skip to content

Commit 07d19ba

Browse files
authored
feat (#19407 JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient (#19827)
* chore (JAVA SPRING WEBCLIENT): Remove comments used for debugging * feat (JAVA SPRING WEBCLIENT): Add support for useSingleRequestParameter to Spring WebClient * feat (JAVA SPRING WEBCLIENT): Generate samples and docs * fix (JAVA SPRING WEBCLIENT): Fix missing return error & Fix JDK17 action webclient useSingleRequestParameter test path * fix (JAVA SPRING WEBCLIENT): Fix code indention * fix (JAVA SPRING WEBCLIENT): Fix code indention again * fix (JAVA SPRING WEBCLIENT): Update samples * feat (JAVA SPRING WEBCLIENT): Regenerate after pull rebase
1 parent cc40f40 commit 07d19ba

File tree

240 files changed

+26760
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+26760
-230
lines changed

.github/workflows/samples-java-client-jdk11.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
- samples/client/others/java/okhttp-gson-oneOf-array/**
1515
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
1616
- samples/client/others/java/webclient-useAbstractionForFiles/**
17+
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
1718
- samples/client/others/java/jersey2-oneOf-duplicates/**
1819
- samples/client/others/java/jersey2-oneOf-Mixed/**
1920
- samples/client/others/java/resttemplate-list-schema-validation/**
@@ -31,6 +32,7 @@ on:
3132
- samples/client/others/java/okhttp-gson-oneOf-array/**
3233
- samples/client/others/java/resttemplate-useAbstractionForFiles/**
3334
- samples/client/others/java/webclient-useAbstractionForFiles/**
35+
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
3436
- samples/client/others/java/jersey2-oneOf-duplicates/**
3537
- samples/client/others/java/jersey2-oneOf-Mixed/**
3638
- samples/client/others/java/resttemplate-list-schema-validation/**
@@ -57,6 +59,7 @@ jobs:
5759
- samples/client/petstore/java/webclient
5860
- samples/client/petstore/java/webclient-nullable-arrays
5961
- samples/client/petstore/java/webclient-swagger2
62+
- samples/client/petstore/java/webclient-useSingleRequestParameter
6063
- samples/client/petstore/java/vertx
6164
- samples/client/petstore/java/jersey2-java8-localdatetime
6265
- samples/client/petstore/java/google-api-client

.github/workflows/samples-java-client-jdk17.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
paths:
66
- samples/client/petstore/java/resttemplate-jakarta/**
77
- samples/client/petstore/java/webclient-jakarta/**
8-
- samples/client/petstore/java/restclient-*/**
8+
- samples/client/petstore/java/restclient-*/**
9+
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
910
pull_request:
1011
paths:
1112
- samples/client/petstore/java/resttemplate-jakarta/**
1213
- samples/client/petstore/java/webclient-jakarta/**
1314
- samples/client/petstore/java/restclient-*/**
15+
- samples/client/petstore/java/webclient-useSingleRequestParameter/**
1416
jobs:
1517
build:
1618
name: Build Java Client JDK17
@@ -26,6 +28,7 @@ jobs:
2628
- samples/client/petstore/java/restclient-nullable-arrays
2729
- samples/client/petstore/java/restclient-swagger2
2830
- samples/client/petstore/java/restclient-useSingleRequestParameter
31+
- samples/client/petstore/java/webclient-useSingleRequestParameter
2932
steps:
3033
- uses: actions/checkout@v4
3134
- uses: actions/setup-java@v4
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
generatorName: java
2+
outputDir: samples/client/petstore/java/webclient-useSingleRequestParameter
3+
library: webclient
4+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
5+
templateDir: modules/openapi-generator/src/main/resources/Java
6+
additionalProperties:
7+
artifactId: singleparam-webclient
8+
hideGenerationTimestamp: "true"
9+
useSingleRequestParameter: true

docs/generators/java-microprofile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
100100
|useRuntimeException|Use RuntimeException instead of Exception. Only jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|
101101
|useRxJava2|Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
102102
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
103-
|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 jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient support this option.| |false|
103+
|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 jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option.| |false|
104104
|webclientBlockingOperations|Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync| |false|
105105
|withAWSV4Signature|whether to include AWS v4 signature support (only available for okhttp-gson library)| |false|
106106
|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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
100100
|useRuntimeException|Use RuntimeException instead of Exception. Only jersey2, jersey3, okhttp-gson, vertx, microprofile support this option.| |false|
101101
|useRxJava2|Whether to use the RxJava2 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
102102
|useRxJava3|Whether to use the RxJava3 adapter with the retrofit2 library. IMPORTANT: This option has been deprecated.| |false|
103-
|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 jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient support this option.| |false|
103+
|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 jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option.| |false|
104104
|webclientBlockingOperations|Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync| |false|
105105
|withAWSV4Signature|whether to include AWS v4 signature support (only available for okhttp-gson library)| |false|
106106
|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|

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public JavaClientCodegen() {
237237
cliOptions.add(CliOption.newString(CONFIG_KEY_FROM_CLASS_NAME, "If true, set tag as key in @RegisterRestClient. Default to false. Only `microprofile` supports this option."));
238238
cliOptions.add(CliOption.newBoolean(CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP, CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP_DESC + " Only jersey2, jersey3, native, okhttp-gson support this option."));
239239
cliOptions.add(CliOption.newString(MICROPROFILE_REST_CLIENT_VERSION, "Version of MicroProfile Rest Client API."));
240-
cliOptions.add(CliOption.newBoolean(CodegenConstants.USE_SINGLE_REQUEST_PARAMETER, "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient support this option."));
240+
cliOptions.add(CliOption.newBoolean(CodegenConstants.USE_SINGLE_REQUEST_PARAMETER, "Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter. ONLY jersey2, jersey3, okhttp-gson, microprofile, Spring RestClient, Spring WebClient support this option."));
241241
cliOptions.add(CliOption.newBoolean(WEBCLIENT_BLOCKING_OPERATIONS, "Making all WebClient operations blocking(sync). Note that if on operation 'x-webclient-blocking: false' then such operation won't be sync", this.webclientBlockingOperations));
242242
cliOptions.add(CliOption.newBoolean(GENERATE_CLIENT_AS_BEAN, "For resttemplate, configure whether to create `ApiClient.java` and Apis clients as bean (with `@Component` annotation).", this.generateClientAsBean));
243243
cliOptions.add(CliOption.newBoolean(SUPPORT_URL_QUERY, "Generate toUrlQueryString in POJO (default to true). Available on `native`, `apache-httpclient` libraries."));

modules/openapi-generator/src/main/resources/Java/libraries/restclient/api.mustache

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,6 @@ public class {{classname}} {
5454
{{#operation}}
5555
{{#useSingleRequestParameter}}
5656
{{#hasParams}}
57-
{{#hasSingleParam}}
58-
// It has a single param!
59-
/*
60-
{{#allParams}}
61-
* {{paramName}}
62-
{{/allParams}}
63-
*/
64-
{{/hasSingleParam}}
65-
{{^hasSingleParam}}
66-
// It has NO single param!
67-
/*
68-
{{#allParams}}
69-
* {{paramName}}
70-
{{/allParams}}
71-
*/
72-
{{/hasSingleParam}}
7357
{{^hasSingleParam}}
7458

7559
public record {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}){}

modules/openapi-generator/src/main/resources/Java/libraries/webclient/api.mustache

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,74 @@ public class {{classname}} {
5353
this.apiClient = apiClient;
5454
}
5555

56-
{{#operation}}
56+
{{#operation}}{{#useSingleRequestParameter}}{{#hasParams}}{{^hasSingleParam}}
57+
public class {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request {
58+
{{#allParams}}
59+
private final {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}};
60+
{{/allParams}}
61+
62+
public {{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) {
63+
{{#allParams}}
64+
this.{{paramName}} = {{paramName}};
65+
{{/allParams}}
66+
}
67+
68+
{{#allParams}}
69+
public {{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection<org.springframework.core.io.AbstractResource>{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.AbstractResource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}() {
70+
return this.{{paramName}};
71+
}
72+
{{/allParams}}
73+
}
74+
75+
/**
76+
* {{summary}}
77+
* {{notes}}
78+
{{#responses}} * <p><b>{{code}}</b>{{#message}} - {{.}}{{/message}}
79+
{{/responses}} * @param requestParameters The {{operationId}} request parameters as object
80+
{{#returnType}} * @return {{.}}
81+
{{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API
82+
{{#externalDocs}}
83+
* {{description}}
84+
* @see <a href="{{url}}">{{summary}} Documentation</a>
85+
{{/externalDocs}}
86+
*/
87+
public {{#returnType}}{{#vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}{{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Flux<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{^returnType}}{{#vendorExtensions.x-webclient-blocking}}void{{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}Mono<Void>{{/vendorExtensions.x-webclient-blocking}} {{/returnType}}{{operationId}}({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException {
88+
{{^returnType}}{{^vendorExtensions.x-webclient-blocking}}return {{/vendorExtensions.x-webclient-blocking}}{{/returnType}}{{#returnType}}return {{/returnType}}this.{{operationId}}({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}});
89+
}
90+
91+
/**
92+
* {{summary}}
93+
* {{notes}}
94+
{{#responses}} * <p><b>{{code}}</b>{{#message}} - {{.}}{{/message}}
95+
{{/responses}} * @param requestParameters The {{operationId}} request parameters as object
96+
{{#returnType}} * @return ResponseEntity&lt;{{.}}&gt;
97+
{{/returnType}} * @throws WebClientResponseException if an error occurs while attempting to invoke the API
98+
{{#externalDocs}}
99+
* {{description}}
100+
* @see <a href="{{url}}">{{summary}} Documentation</a>
101+
{{/externalDocs}}
102+
*/
103+
public {{#vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<List<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}ResponseEntity<Void>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{^vendorExtensions.x-webclient-blocking}}{{#returnType}}{{#vendorExtensions.x-webclient-return-except-list-of-string}}Mono<ResponseEntity<List<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnBaseType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnBaseType}}}{{/isResponseFile}}>>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{^vendorExtensions.x-webclient-return-except-list-of-string}}Mono<ResponseEntity<{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{returnType}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{returnType}}}{{/isResponseFile}}>>{{/vendorExtensions.x-webclient-return-except-list-of-string}}{{/returnType}}{{^returnType}}Mono<ResponseEntity<Void>>{{/returnType}} {{/vendorExtensions.x-webclient-blocking}}{{operationId}}WithHttpInfo({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException {
104+
return this.{{operationId}}WithHttpInfo({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}});
105+
}
106+
107+
/**
108+
* {{summary}}
109+
* {{notes}}
110+
{{#responses}} * <p><b>{{code}}</b>{{#message}} - {{.}}{{/message}}
111+
{{/responses}} * @param requestParameters The {{operationId}} request parameters as object
112+
* @return ResponseSpec
113+
* @throws WebClientResponseException if an error occurs while attempting to invoke the API
114+
{{#externalDocs}}
115+
* {{description}}
116+
* @see <a href="{{url}}">{{summary}} Documentation</a>
117+
{{/externalDocs}}
118+
*/
119+
public ResponseSpec {{operationId}}WithResponseSpec({{#lambda.titlecase}}{{operationId}}{{/lambda.titlecase}}Request requestParameters) throws WebClientResponseException {
120+
return this.{{operationId}}WithResponseSpec({{#allParams}}requestParameters.{{paramName}}(){{^-last}}, {{/-last}}{{/allParams}});
121+
}
122+
123+
{{/hasSingleParam}}{{/hasParams}}{{/useSingleRequestParameter}}
57124
/**
58125
* {{summary}}
59126
* {{notes}}

modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3210,6 +3210,35 @@ public void testDuplicatedOperationId() {
32103210
);
32113211
}
32123212

3213+
@Test public void testWebClientWithUseSingleRequestParameter_issue_19407() {
3214+
final Path output = newTempFolder();
3215+
final CodegenConfigurator configurator = new CodegenConfigurator()
3216+
.setGeneratorName("java")
3217+
.setLibrary(JavaClientCodegen.WEBCLIENT)
3218+
.setAdditionalProperties(Map.of(
3219+
CodegenConstants.API_PACKAGE, "xyz.abcdef.api",
3220+
CodegenConstants.USE_SINGLE_REQUEST_PARAMETER, true
3221+
))
3222+
.setInputSpec("src/test/resources/3_1/java/petstore.yaml")
3223+
.setOutputDir(output.toString().replace("\\", "/"));
3224+
3225+
new DefaultGenerator().opts(configurator.toClientOptInput()).generate();
3226+
3227+
TestUtils.assertFileContains(
3228+
output.resolve("src/main/java/xyz/abcdef/api/PetApi.java"),
3229+
"public class DeletePetRequest {",
3230+
"DeletePetRequest(Long petId, String apiKey)",
3231+
"Long petId()",
3232+
"String apiKey()",
3233+
"public Mono<Void> deletePet(DeletePetRequest requestParameters) throws WebClientResponseException {",
3234+
"public Mono<ResponseEntity<Void>> deletePetWithHttpInfo(DeletePetRequest requestParameters) throws WebClientResponseException {",
3235+
"public ResponseSpec deletePetWithResponseSpec(DeletePetRequest requestParameters) throws WebClientResponseException {",
3236+
"public Mono<Void> deletePet(Long petId, String apiKey) throws WebClientResponseException {",
3237+
"public Mono<ResponseEntity<Void>> deletePetWithHttpInfo(Long petId, String apiKey) throws WebClientResponseException {",
3238+
"public ResponseSpec deletePetWithResponseSpec(Long petId, String apiKey) throws WebClientResponseException {"
3239+
);
3240+
}
3241+
32133242
@Test
32143243
public void testGenerateParameterId() {
32153244
final Path output = newTempFolder();

samples/client/others/java/webclient-useAbstractionForFiles/src/main/java/org/openapitools/client/api/ResourceApi.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public void setApiClient(ApiClient apiClient) {
4646
this.apiClient = apiClient;
4747
}
4848

49+
4950
/**
5051
*
5152
* Response file abstraction

samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/AnotherFakeApi.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public void setApiClient(ApiClient apiClient) {
4444
this.apiClient = apiClient;
4545
}
4646

47-
// It has a single param!
48-
/*
49-
* client
50-
*/
5147
/**
5248
* To test special tags
5349
* To test special tags and operation ID starting with number

0 commit comments

Comments
 (0)