mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 00:43:46 +00:00
feat (JAVA NATIVE): add support for useSingleRequestParameter to java native client (#21331)
This commit is contained in:
@@ -1501,11 +1501,11 @@ public class FakeApi {
|
||||
/**
|
||||
* Fake endpoint to test group parameters (optional)
|
||||
* Fake endpoint to test group parameters (optional)
|
||||
* @param apiRequest {@link APItestGroupParametersRequest}
|
||||
* @param apiRequest {@link APITestGroupParametersRequest}
|
||||
* @return CompletableFuture<Void>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public CompletableFuture<Void> testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException {
|
||||
public CompletableFuture<Void> testGroupParameters(APITestGroupParametersRequest apiRequest) throws ApiException {
|
||||
@javax.annotation.Nonnull
|
||||
Integer requiredStringGroup = apiRequest.requiredStringGroup();
|
||||
@javax.annotation.Nonnull
|
||||
@@ -1524,11 +1524,11 @@ public class FakeApi {
|
||||
/**
|
||||
* Fake endpoint to test group parameters (optional)
|
||||
* Fake endpoint to test group parameters (optional)
|
||||
* @param apiRequest {@link APItestGroupParametersRequest}
|
||||
* @param apiRequest {@link APITestGroupParametersRequest}
|
||||
* @return CompletableFuture<ApiResponse<Void>>
|
||||
* @throws ApiException if fails to make API call
|
||||
*/
|
||||
public CompletableFuture<ApiResponse<Void>> testGroupParametersWithHttpInfo(APItestGroupParametersRequest apiRequest) throws ApiException {
|
||||
public CompletableFuture<ApiResponse<Void>> testGroupParametersWithHttpInfo(APITestGroupParametersRequest apiRequest) throws ApiException {
|
||||
Integer requiredStringGroup = apiRequest.requiredStringGroup();
|
||||
Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup();
|
||||
Long requiredInt64Group = apiRequest.requiredInt64Group();
|
||||
@@ -1662,7 +1662,7 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
|
||||
public static final class APItestGroupParametersRequest {
|
||||
public static final class APITestGroupParametersRequest {
|
||||
@javax.annotation.Nonnull
|
||||
private Integer requiredStringGroup; // Required String in group parameters (required)
|
||||
@javax.annotation.Nonnull
|
||||
@@ -1676,7 +1676,7 @@ public class FakeApi {
|
||||
@javax.annotation.Nullable
|
||||
private Long int64Group; // Integer in group parameters (optional)
|
||||
|
||||
private APItestGroupParametersRequest(Builder builder) {
|
||||
private APITestGroupParametersRequest(Builder builder) {
|
||||
this.requiredStringGroup = builder.requiredStringGroup;
|
||||
this.requiredBooleanGroup = builder.requiredBooleanGroup;
|
||||
this.requiredInt64Group = builder.requiredInt64Group;
|
||||
@@ -1744,8 +1744,8 @@ public class FakeApi {
|
||||
this.int64Group = int64Group;
|
||||
return this;
|
||||
}
|
||||
public APItestGroupParametersRequest build() {
|
||||
return new APItestGroupParametersRequest(this);
|
||||
public APITestGroupParametersRequest build() {
|
||||
return new APITestGroupParametersRequest(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ public class FakeApiTest {
|
||||
Boolean booleanGroup = null;
|
||||
Long int64Group = null;
|
||||
|
||||
FakeApi.APItestGroupParametersRequest request = FakeApi.APItestGroupParametersRequest.newBuilder()
|
||||
FakeApi.APITestGroupParametersRequest request = FakeApi.APITestGroupParametersRequest.newBuilder()
|
||||
.requiredStringGroup(requiredStringGroup)
|
||||
.requiredBooleanGroup(requiredBooleanGroup)
|
||||
.requiredInt64Group(requiredInt64Group)
|
||||
|
||||
Reference in New Issue
Block a user