diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index bd2683cf6826..6478c32b76be 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -7805,8 +7805,15 @@ protected void updateRequestBodyForArray(CodegenParameter codegenParameter, Sche } } - protected void updateRequestBodyForString(CodegenParameter codegenParameter, Schema schema, Set imports, String bodyParameterName) { - updateRequestBodyForPrimitiveType(codegenParameter, schema, bodyParameterName, imports); + protected void updateRequestBodyForString(CodegenParameter codegenParameter, Schema schema, String name, Set imports, String bodyParameterName) { + // when a name is present, it means that the schema has a $ref to a schema defined under /components/schemas + // in the OAS document + if (!StringUtils.isEmpty(name)) { + addBodyModelSchema(codegenParameter, name, schema, imports, bodyParameterName, false); + } else { + updateRequestBodyForPrimitiveType(codegenParameter, schema, bodyParameterName, imports); + } + if (ModelUtils.isByteArraySchema(schema)) { codegenParameter.setIsString(false); codegenParameter.isByteArray = true; @@ -8007,7 +8014,7 @@ public CodegenParameter fromRequestBody(RequestBody body, Set imports, S // swagger v2 only, type file codegenParameter.isFile = true; } else if (ModelUtils.isStringSchema(schema)) { - updateRequestBodyForString(codegenParameter, schema, imports, bodyParameterName); + updateRequestBodyForString(codegenParameter, schema, name, imports, bodyParameterName); } else if (ModelUtils.isNumberSchema(schema)) { updateRequestBodyForPrimitiveType(codegenParameter, schema, bodyParameterName, imports); codegenParameter.isNumeric = Boolean.TRUE; diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java index f1aca92f0c05..3f65cc0ba0e1 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java @@ -30,7 +30,16 @@ import io.swagger.v3.oas.models.Operation; import io.swagger.v3.oas.models.PathItem; import io.swagger.v3.oas.models.headers.Header; -import io.swagger.v3.oas.models.media.*; +import io.swagger.v3.oas.models.media.ArraySchema; +import io.swagger.v3.oas.models.media.Content; +import io.swagger.v3.oas.models.media.Encoding; +import io.swagger.v3.oas.models.media.IntegerSchema; +import io.swagger.v3.oas.models.media.MapSchema; +import io.swagger.v3.oas.models.media.MediaType; +import io.swagger.v3.oas.models.media.NumberSchema; +import io.swagger.v3.oas.models.media.ObjectSchema; +import io.swagger.v3.oas.models.media.Schema; +import io.swagger.v3.oas.models.media.StringSchema; import io.swagger.v3.oas.models.parameters.QueryParameter; import io.swagger.v3.oas.models.parameters.RequestBody; import io.swagger.v3.oas.models.responses.ApiResponse; @@ -43,7 +52,11 @@ import org.openapitools.codegen.languages.SpringCodegen; import org.openapitools.codegen.model.ModelMap; import org.openapitools.codegen.model.ModelsMap; -import org.openapitools.codegen.templating.mustache.*; +import org.openapitools.codegen.templating.mustache.CamelCaseAndSanitizeLambda; +import org.openapitools.codegen.templating.mustache.IndentedLambda; +import org.openapitools.codegen.templating.mustache.LowercaseLambda; +import org.openapitools.codegen.templating.mustache.TitlecaseLambda; +import org.openapitools.codegen.templating.mustache.UppercaseLambda; import org.openapitools.codegen.utils.ModelUtils; import org.openapitools.codegen.utils.SemVer; import org.slf4j.LoggerFactory; @@ -52,13 +65,35 @@ import org.testng.annotations.Test; import java.io.File; +import java.io.IOException; import java.nio.file.Files; -import java.util.*; -import java.util.concurrent.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedHashMap; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; +import java.util.TreeSet; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; import java.util.stream.Collectors; import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; public class DefaultCodegenTest { @@ -5057,4 +5092,72 @@ private List getNames(List props) { if (props == null) return null; return props.stream().map(v -> v.name).collect(Collectors.toList()); } + + @Test + public void testRequestBodyWith$RefToEnumSchema() { + // Given + OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_1/issue_21407.yaml"); + DefaultCodegen codegen = new DefaultCodegen(); + codegen.setOpenAPI(openAPI); + String path = "/v1/resource-class/send-with-$ref-to-enum-schema"; + + // When + CodegenOperation codegenOperation = codegen.fromOperation(path, "POST", openAPI.getPaths().get(path).getPost(), null); + + // Then + assertThat(codegenOperation.bodyParam).satisfies(bodyParam -> { + assertThat(bodyParam).isNotNull(); + assertThat(bodyParam.getDataType()).isEqualTo("Letter"); + }); + } + + @Test + public void testRequestBodyWithInlineEnumSchema() throws IOException { + // Given + OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_1/issue_21407.yaml"); + File outputDir = Files.createTempDirectory("test").toFile(); + + CodegenConfigurator configurator = new CodegenConfigurator() + .setGeneratorName("java") + .setInputSpec("src/test/resources/3_1/issue_21407.yaml") + .addInlineSchemaOption("RESOLVE_INLINE_ENUMS", "true") + .setOutputDir(outputDir.getAbsolutePath()); + + ClientOptInput clientOptInput = configurator.toClientOptInput(); + clientOptInput.openAPI(openAPI); + + DefaultGenerator generator = new DefaultGenerator(); + generator.opts(clientOptInput).generate(); + + String path = "/v1/resource-class/send-with-inline-enum-schema"; + + // When + CodegenOperation codegenOperation = generator.config.fromOperation(path, "POST", openAPI.getPaths().get(path).getPost(), null); + + // Then + assertThat(codegenOperation.bodyParam).satisfies(bodyParam -> { + assertThat(bodyParam).isNotNull(); + // expecting a type that is different from String + assertThat(bodyParam.getDataType()).isEqualTo("SendWithInlineEnumSchemaRequest"); + }); + } + + @Test + public void testRequestBodyWithStringType() { + // Given + OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_1/issue_21407.yaml"); + DefaultCodegen codegen = new DefaultCodegen(); + codegen.setOpenAPI(openAPI); + String path = "/v1/resource-class/send-with-string"; + + // When + CodegenOperation codegenOperation = codegen.fromOperation(path, "POST", openAPI.getPaths().get(path).getPost(), null); + + // Then + assertThat(codegenOperation.bodyParam).satisfies(bodyParam -> { + assertThat(bodyParam).isNotNull(); + assertThat(bodyParam.getDataType()).isEqualTo("String"); + }); + } + } diff --git a/modules/openapi-generator/src/test/resources/3_1/issue_21407.yaml b/modules/openapi-generator/src/test/resources/3_1/issue_21407.yaml new file mode 100644 index 000000000000..011a39774282 --- /dev/null +++ b/modules/openapi-generator/src/test/resources/3_1/issue_21407.yaml @@ -0,0 +1,65 @@ +openapi: 3.1.0 +info: + title: sample spec + description: "Sample spec" + version: 0.0.1 +tags: +- name: ResourceClass +paths: + /v1/resource-class/send-with-$ref-to-enum-schema: + post: + tags: + - ResourceClass + description: Add @Operation annotation to provide a description + operationId: send-with-$ref-to-enum-schema + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/Letter" + responses: + "200": + description: OK - the request has succeeded. + content: + application/json: + schema: + $ref: "#/components/schemas/Letter" + /v1/resource-class/send-with-string: + post: + tags: + - ResourceClass + description: Add @Operation annotation to provide a description + operationId: send-with-string + requestBody: + content: + application/json: + schema: + type: string + responses: + "204": + description: "No Content - the request has been successfully processed,\ + \ but there is no additional content." + /v1/resource-class/send-with-inline-enum-schema: + post: + tags: + - ResourceClass + description: Add @Operation annotation to provide a description + operationId: send-with-inline-enum-schema + requestBody: + content: + application/json: + schema: + type: string + enum: + - B + responses: + "204": + description: "No Content - the request has been successfully processed,\ + \ but there is no additional content." +components: + schemas: + Letter: + type: string + enum: + - A +jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base diff --git a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/BodyApi.md b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/BodyApi.md index d7228b424444..4c592380a678 100644 --- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/BodyApi.md +++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/BodyApi.md @@ -740,7 +740,7 @@ No authorization required # **TestEchoBodyStringEnum** -> StringEnumRef TestEchoBodyStringEnum (string? body = null) +> StringEnumRef TestEchoBodyStringEnum (StringEnumRef? stringEnumRef = null) Test string enum response body @@ -763,12 +763,12 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new BodyApi(config); - var body = null; // string? | String enum (optional) + var stringEnumRef = new StringEnumRef?(); // StringEnumRef? | String enum (optional) try { // Test string enum response body - StringEnumRef result = apiInstance.TestEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.TestEchoBodyStringEnum(stringEnumRef); Debug.WriteLine(result); } catch (ApiException e) @@ -789,7 +789,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Test string enum response body - ApiResponse response = apiInstance.TestEchoBodyStringEnumWithHttpInfo(body); + ApiResponse response = apiInstance.TestEchoBodyStringEnumWithHttpInfo(stringEnumRef); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -806,7 +806,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **body** | **string?** | String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef?**](StringEnumRef?.md) | String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Api/BodyApi.cs b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Api/BodyApi.cs index 8a0e161d0273..135083af626f 100644 --- a/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Api/BodyApi.cs +++ b/samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Api/BodyApi.cs @@ -216,10 +216,10 @@ public interface IBodyApiSync : IApiAccessor /// Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// StringEnumRef - StringEnumRef TestEchoBodyStringEnum(string? body = default, int operationIndex = 0); + StringEnumRef TestEchoBodyStringEnum(StringEnumRef? stringEnumRef = default, int operationIndex = 0); /// /// Test string enum response body @@ -228,10 +228,10 @@ public interface IBodyApiSync : IApiAccessor /// Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// ApiResponse of StringEnumRef - ApiResponse TestEchoBodyStringEnumWithHttpInfo(string? body = default, int operationIndex = 0); + ApiResponse TestEchoBodyStringEnumWithHttpInfo(StringEnumRef? stringEnumRef = default, int operationIndex = 0); /// /// Test empty json (request body) /// @@ -469,11 +469,11 @@ public interface IBodyApiAsync : IApiAccessor /// Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of StringEnumRef - System.Threading.Tasks.Task TestEchoBodyStringEnumAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task TestEchoBodyStringEnumAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Test string enum response body @@ -482,11 +482,11 @@ public interface IBodyApiAsync : IApiAccessor /// Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (StringEnumRef) - System.Threading.Tasks.Task> TestEchoBodyStringEnumWithHttpInfoAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> TestEchoBodyStringEnumWithHttpInfoAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Test empty json (request body) /// @@ -1732,12 +1732,12 @@ public async System.Threading.Tasks.Task TestEchoBodyPetResponseStringAs /// Test string enum response body Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// StringEnumRef - public StringEnumRef TestEchoBodyStringEnum(string? body = default, int operationIndex = 0) + public StringEnumRef TestEchoBodyStringEnum(StringEnumRef? stringEnumRef = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = TestEchoBodyStringEnumWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = TestEchoBodyStringEnumWithHttpInfo(stringEnumRef); return localVarResponse.Data; } @@ -1745,10 +1745,10 @@ public StringEnumRef TestEchoBodyStringEnum(string? body = default, int operatio /// Test string enum response body Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// ApiResponse of StringEnumRef - public Org.OpenAPITools.Client.ApiResponse TestEchoBodyStringEnumWithHttpInfo(string? body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEchoBodyStringEnumWithHttpInfo(StringEnumRef? stringEnumRef = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1774,7 +1774,7 @@ public Org.OpenAPITools.Client.ApiResponse TestEchoBodyStringEnum localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = stringEnumRef; localVarRequestOptions.Operation = "BodyApi.TestEchoBodyStringEnum"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1798,13 +1798,13 @@ public Org.OpenAPITools.Client.ApiResponse TestEchoBodyStringEnum /// Test string enum response body Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of StringEnumRef - public async System.Threading.Tasks.Task TestEchoBodyStringEnumAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task TestEchoBodyStringEnumAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestEchoBodyStringEnumWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestEchoBodyStringEnumWithHttpInfoAsync(stringEnumRef, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1812,11 +1812,11 @@ public async System.Threading.Tasks.Task TestEchoBodyStringEnumAs /// Test string enum response body Test string enum response body /// /// Thrown when fails to make API call - /// String enum (optional) + /// String enum (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (StringEnumRef) - public async System.Threading.Tasks.Task> TestEchoBodyStringEnumWithHttpInfoAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> TestEchoBodyStringEnumWithHttpInfoAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1842,7 +1842,7 @@ public async System.Threading.Tasks.Task TestEchoBodyStringEnumAs localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = stringEnumRef; localVarRequestOptions.Operation = "BodyApi.TestEchoBodyStringEnum"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/echo_api/go/api_body.go b/samples/client/echo_api/go/api_body.go index 0809e3c2a86e..bd441de26b3c 100644 --- a/samples/client/echo_api/go/api_body.go +++ b/samples/client/echo_api/go/api_body.go @@ -911,12 +911,12 @@ func (a *BodyAPIService) TestEchoBodyPetResponseStringExecute(r ApiTestEchoBodyP type ApiTestEchoBodyStringEnumRequest struct { ctx context.Context ApiService *BodyAPIService - body *string + stringEnumRef *StringEnumRef } // String enum -func (r ApiTestEchoBodyStringEnumRequest) Body(body string) ApiTestEchoBodyStringEnumRequest { - r.body = &body +func (r ApiTestEchoBodyStringEnumRequest) StringEnumRef(stringEnumRef StringEnumRef) ApiTestEchoBodyStringEnumRequest { + r.stringEnumRef = &stringEnumRef return r } @@ -978,7 +978,7 @@ func (a *BodyAPIService) TestEchoBodyStringEnumExecute(r ApiTestEchoBodyStringEn localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.body + localVarPostBody = r.stringEnumRef req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/samples/client/echo_api/go/docs/BodyAPI.md b/samples/client/echo_api/go/docs/BodyAPI.md index 32f3b1768d4e..37c3aa9ecd83 100644 --- a/samples/client/echo_api/go/docs/BodyAPI.md +++ b/samples/client/echo_api/go/docs/BodyAPI.md @@ -542,7 +542,7 @@ No authorization required ## TestEchoBodyStringEnum -> StringEnumRef TestEchoBodyStringEnum(ctx).Body(body).Execute() +> StringEnumRef TestEchoBodyStringEnum(ctx).StringEnumRef(stringEnumRef).Execute() Test string enum response body @@ -561,11 +561,11 @@ import ( ) func main() { - body := string(987) // string | String enum (optional) + stringEnumRef := openapiclient.StringEnumRef("success") // StringEnumRef | String enum (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.BodyAPI.TestEchoBodyStringEnum(context.Background()).Body(body).Execute() + resp, r, err := apiClient.BodyAPI.TestEchoBodyStringEnum(context.Background()).StringEnumRef(stringEnumRef).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `BodyAPI.TestEchoBodyStringEnum``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -586,7 +586,7 @@ Other parameters are passed through a pointer to a apiTestEchoBodyStringEnumRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string** | String enum | + **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md) | String enum | ### Return type diff --git a/samples/client/echo_api/java/apache-httpclient/docs/BodyApi.md b/samples/client/echo_api/java/apache-httpclient/docs/BodyApi.md index 06c7864137b7..360d3b0d9bc6 100644 --- a/samples/client/echo_api/java/apache-httpclient/docs/BodyApi.md +++ b/samples/client/echo_api/java/apache-httpclient/docs/BodyApi.md @@ -543,7 +543,7 @@ No authorization required ## testEchoBodyStringEnum -> StringEnumRef testEchoBodyStringEnum(body) +> StringEnumRef testEchoBodyStringEnum(stringEnumRef) Test string enum response body @@ -565,9 +565,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); @@ -585,7 +585,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java index dc7234c1229a..11fbb149e8f2 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java @@ -607,25 +607,25 @@ public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet, /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { - return this.testEchoBodyStringEnum(body, Collections.emptyMap()); + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException { + return this.testEchoBodyStringEnum(stringEnumRef, Collections.emptyMap()); } /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @param additionalHeaders additionalHeaders for this call * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body, Map additionalHeaders) throws ApiException { - Object localVarPostBody = body; + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef, Map additionalHeaders) throws ApiException { + Object localVarPostBody = stringEnumRef; // create path and map variables String localVarPath = "/echo/body/string_enum"; diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java index d457b9eede86..6dfdd046f2e0 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java @@ -250,7 +250,7 @@ public interface BodyApi extends ApiClient.Api { /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return StringEnumRef */ @RequestLine("POST /echo/body/string_enum") @@ -258,13 +258,13 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body); + StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef); /** * Test string enum response body * Similar to testEchoBodyStringEnum but it also returns the http response headers . * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("POST /echo/body/string_enum") @@ -272,7 +272,7 @@ public interface BodyApi extends ApiClient.Api { "Content-Type: application/json", "Accept: application/json", }) - ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body); + ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable StringEnumRef stringEnumRef); diff --git a/samples/client/echo_api/java/native/docs/BodyApi.md b/samples/client/echo_api/java/native/docs/BodyApi.md index 222c18201048..16801efcf619 100644 --- a/samples/client/echo_api/java/native/docs/BodyApi.md +++ b/samples/client/echo_api/java/native/docs/BodyApi.md @@ -1093,7 +1093,7 @@ No authorization required ## testEchoBodyStringEnum -> StringEnumRef testEchoBodyStringEnum(body) +> StringEnumRef testEchoBodyStringEnum(stringEnumRef) Test string enum response body @@ -1115,9 +1115,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); @@ -1135,7 +1135,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type @@ -1158,7 +1158,7 @@ No authorization required ## testEchoBodyStringEnumWithHttpInfo -> ApiResponse testEchoBodyStringEnum testEchoBodyStringEnumWithHttpInfo(body) +> ApiResponse testEchoBodyStringEnum testEchoBodyStringEnumWithHttpInfo(stringEnumRef) Test string enum response body @@ -1181,9 +1181,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - ApiResponse response = apiInstance.testEchoBodyStringEnumWithHttpInfo(body); + ApiResponse response = apiInstance.testEchoBodyStringEnumWithHttpInfo(stringEnumRef); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); @@ -1203,7 +1203,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java index c29f40fc17c6..19a788c9eb30 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/BodyApi.java @@ -1148,48 +1148,48 @@ private HttpRequest.Builder testEchoBodyPetResponseStringRequestBuilder(@javax.a /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { - return testEchoBodyStringEnum(body, null); + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException { + return testEchoBodyStringEnum(stringEnumRef, null); } /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @param headers Optional headers to include in the request * @return StringEnumRef * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body, Map headers) throws ApiException { - ApiResponse localVarResponse = testEchoBodyStringEnumWithHttpInfo(body, headers); + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef, Map headers) throws ApiException { + ApiResponse localVarResponse = testEchoBodyStringEnumWithHttpInfo(stringEnumRef, headers); return localVarResponse.getData(); } /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return ApiResponse<StringEnumRef> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { - return testEchoBodyStringEnumWithHttpInfo(body, null); + public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException { + return testEchoBodyStringEnumWithHttpInfo(stringEnumRef, null); } /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @param headers Optional headers to include in the request * @return ApiResponse<StringEnumRef> * @throws ApiException if fails to make API call */ - public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = testEchoBodyStringEnumRequestBuilder(body, headers); + public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable StringEnumRef stringEnumRef, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = testEchoBodyStringEnumRequestBuilder(stringEnumRef, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -1236,7 +1236,7 @@ public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.anno } } - private HttpRequest.Builder testEchoBodyStringEnumRequestBuilder(@javax.annotation.Nullable String body, Map headers) throws ApiException { + private HttpRequest.Builder testEchoBodyStringEnumRequestBuilder(@javax.annotation.Nullable StringEnumRef stringEnumRef, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -1248,7 +1248,7 @@ private HttpRequest.Builder testEchoBodyStringEnumRequestBuilder(@javax.annotati localVarRequestBuilder.header("Accept", "application/json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(stringEnumRef); localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { throw new ApiException(e); diff --git a/samples/client/echo_api/java/okhttp-gson/docs/BodyApi.md b/samples/client/echo_api/java/okhttp-gson/docs/BodyApi.md index cdaa4dc6e1a8..4432166b9e09 100644 --- a/samples/client/echo_api/java/okhttp-gson/docs/BodyApi.md +++ b/samples/client/echo_api/java/okhttp-gson/docs/BodyApi.md @@ -510,7 +510,7 @@ No authorization required # **testEchoBodyStringEnum** -> StringEnumRef testEchoBodyStringEnum(body) +> StringEnumRef testEchoBodyStringEnum(stringEnumRef) Test string enum response body @@ -531,9 +531,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); @@ -550,7 +550,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java index a5cfe1c136a3..0008ea0c48f9 100644 --- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/BodyApi.java @@ -1061,7 +1061,7 @@ public okhttp3.Call testEchoBodyPetResponseStringAsync(@javax.annotation.Nullabl } /** * Build call for testEchoBodyStringEnum - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1072,7 +1072,7 @@ public okhttp3.Call testEchoBodyPetResponseStringAsync(@javax.annotation.Nullabl 200 Successful operation - */ - public okhttp3.Call testEchoBodyStringEnumCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyStringEnumCall(@javax.annotation.Nullable StringEnumRef stringEnumRef, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1086,7 +1086,7 @@ public okhttp3.Call testEchoBodyStringEnumCall(@javax.annotation.Nullable String basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = stringEnumRef; // create path and map variables String localVarPath = "/echo/body/string_enum"; @@ -1118,15 +1118,15 @@ public okhttp3.Call testEchoBodyStringEnumCall(@javax.annotation.Nullable String } @SuppressWarnings("rawtypes") - private okhttp3.Call testEchoBodyStringEnumValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { - return testEchoBodyStringEnumCall(body, _callback); + private okhttp3.Call testEchoBodyStringEnumValidateBeforeCall(@javax.annotation.Nullable StringEnumRef stringEnumRef, final ApiCallback _callback) throws ApiException { + return testEchoBodyStringEnumCall(stringEnumRef, _callback); } /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return StringEnumRef * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1136,15 +1136,15 @@ private okhttp3.Call testEchoBodyStringEnumValidateBeforeCall(@javax.annotation. 200 Successful operation - */ - public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { - ApiResponse localVarResp = testEchoBodyStringEnumWithHttpInfo(body); + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException { + ApiResponse localVarResp = testEchoBodyStringEnumWithHttpInfo(stringEnumRef); return localVarResp.getData(); } /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return ApiResponse<StringEnumRef> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1154,8 +1154,8 @@ public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String bo 200 Successful operation - */ - public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { - okhttp3.Call localVarCall = testEchoBodyStringEnumValidateBeforeCall(body, null); + public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException { + okhttp3.Call localVarCall = testEchoBodyStringEnumValidateBeforeCall(stringEnumRef, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1163,7 +1163,7 @@ public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.anno /** * Test string enum response body (asynchronously) * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1174,9 +1174,9 @@ public ApiResponse testEchoBodyStringEnumWithHttpInfo(@javax.anno 200 Successful operation - */ - public okhttp3.Call testEchoBodyStringEnumAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call testEchoBodyStringEnumAsync(@javax.annotation.Nullable StringEnumRef stringEnumRef, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = testEchoBodyStringEnumValidateBeforeCall(body, _callback); + okhttp3.Call localVarCall = testEchoBodyStringEnumValidateBeforeCall(stringEnumRef, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/samples/client/echo_api/java/restclient/docs/BodyApi.md b/samples/client/echo_api/java/restclient/docs/BodyApi.md index 06c7864137b7..360d3b0d9bc6 100644 --- a/samples/client/echo_api/java/restclient/docs/BodyApi.md +++ b/samples/client/echo_api/java/restclient/docs/BodyApi.md @@ -543,7 +543,7 @@ No authorization required ## testEchoBodyStringEnum -> StringEnumRef testEchoBodyStringEnum(body) +> StringEnumRef testEchoBodyStringEnum(stringEnumRef) Test string enum response body @@ -565,9 +565,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); @@ -585,7 +585,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java index a3eb767b3ec2..361c081fd137 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/api/BodyApi.java @@ -623,12 +623,12 @@ public ResponseSpec testEchoBodyPetResponseStringWithResponseSpec(@jakarta.annot * Test string enum response body * Test string enum response body *

200 - Successful operation - * @param body String enum + * @param stringEnumRef String enum * @return StringEnumRef * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec testEchoBodyStringEnumRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - Object postBody = body; + private ResponseSpec testEchoBodyStringEnumRequestCreation(@jakarta.annotation.Nullable StringEnumRef stringEnumRef) throws RestClientResponseException { + Object postBody = stringEnumRef; // create path and map variables final Map pathParams = new HashMap<>(); @@ -656,38 +656,38 @@ private ResponseSpec testEchoBodyStringEnumRequestCreation(@jakarta.annotation.N * Test string enum response body * Test string enum response body *

200 - Successful operation - * @param body String enum + * @param stringEnumRef String enum * @return StringEnumRef * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public StringEnumRef testEchoBodyStringEnum(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public StringEnumRef testEchoBodyStringEnum(@jakarta.annotation.Nullable StringEnumRef stringEnumRef) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return testEchoBodyStringEnumRequestCreation(body).body(localVarReturnType); + return testEchoBodyStringEnumRequestCreation(stringEnumRef).body(localVarReturnType); } /** * Test string enum response body * Test string enum response body *

200 - Successful operation - * @param body String enum + * @param stringEnumRef String enum * @return ResponseEntity<StringEnumRef> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyStringEnumWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public ResponseEntity testEchoBodyStringEnumWithHttpInfo(@jakarta.annotation.Nullable StringEnumRef stringEnumRef) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return testEchoBodyStringEnumRequestCreation(body).toEntity(localVarReturnType); + return testEchoBodyStringEnumRequestCreation(stringEnumRef).toEntity(localVarReturnType); } /** * Test string enum response body * Test string enum response body *

200 - Successful operation - * @param body String enum + * @param stringEnumRef String enum * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec testEchoBodyStringEnumWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - return testEchoBodyStringEnumRequestCreation(body); + public ResponseSpec testEchoBodyStringEnumWithResponseSpec(@jakarta.annotation.Nullable StringEnumRef stringEnumRef) throws RestClientResponseException { + return testEchoBodyStringEnumRequestCreation(stringEnumRef); } /** diff --git a/samples/client/echo_api/java/resteasy/docs/BodyApi.md b/samples/client/echo_api/java/resteasy/docs/BodyApi.md index 06c7864137b7..360d3b0d9bc6 100644 --- a/samples/client/echo_api/java/resteasy/docs/BodyApi.md +++ b/samples/client/echo_api/java/resteasy/docs/BodyApi.md @@ -543,7 +543,7 @@ No authorization required ## testEchoBodyStringEnum -> StringEnumRef testEchoBodyStringEnum(body) +> StringEnumRef testEchoBodyStringEnum(stringEnumRef) Test string enum response body @@ -565,9 +565,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); @@ -585,7 +585,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java index 03d5abbc3d8b..bbaa4213e6b6 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/api/BodyApi.java @@ -352,12 +352,12 @@ public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) /** * Test string enum response body * Test string enum response body - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return a {@code StringEnumRef} * @throws ApiException if fails to make API call */ - public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException { - Object localVarPostBody = body; + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException { + Object localVarPostBody = stringEnumRef; // create path and map variables String localVarPath = "/echo/body/string_enum".replaceAll("\\{format\\}","json"); diff --git a/samples/client/echo_api/java/resttemplate/docs/BodyApi.md b/samples/client/echo_api/java/resttemplate/docs/BodyApi.md index 06c7864137b7..360d3b0d9bc6 100644 --- a/samples/client/echo_api/java/resttemplate/docs/BodyApi.md +++ b/samples/client/echo_api/java/resttemplate/docs/BodyApi.md @@ -543,7 +543,7 @@ No authorization required ## testEchoBodyStringEnum -> StringEnumRef testEchoBodyStringEnum(body) +> StringEnumRef testEchoBodyStringEnum(stringEnumRef) Test string enum response body @@ -565,9 +565,9 @@ public class Example { defaultClient.setBasePath("http://localhost:3000"); BodyApi apiInstance = new BodyApi(defaultClient); - String body = "body_example"; // String | String enum + StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum try { - StringEnumRef result = apiInstance.testEchoBodyStringEnum(body); + StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum"); @@ -585,7 +585,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| String enum | [optional] | +| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java index 058c1a0ac541..530768476ddc 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java @@ -395,24 +395,24 @@ public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(Pet pet) * Test string enum response body * Test string enum response body *

200 - Successful operation - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return StringEnumRef * @throws RestClientException if an error occurs while attempting to invoke the API */ - public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientException { - return testEchoBodyStringEnumWithHttpInfo(body).getBody(); + public StringEnumRef testEchoBodyStringEnum(StringEnumRef stringEnumRef) throws RestClientException { + return testEchoBodyStringEnumWithHttpInfo(stringEnumRef).getBody(); } /** * Test string enum response body * Test string enum response body *

200 - Successful operation - * @param body String enum (optional) + * @param stringEnumRef String enum (optional) * @return ResponseEntity<StringEnumRef> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyStringEnumWithHttpInfo(String body) throws RestClientException { - Object localVarPostBody = body; + public ResponseEntity testEchoBodyStringEnumWithHttpInfo(StringEnumRef stringEnumRef) throws RestClientException { + Object localVarPostBody = stringEnumRef; final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); diff --git a/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md b/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md index c34d181d7a06..a043dab2e2ab 100644 --- a/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md +++ b/samples/client/echo_api/php-nextgen-streaming/docs/Api/BodyApi.md @@ -464,7 +464,7 @@ No authorization required ## `testEchoBodyStringEnum()` ```php -testEchoBodyStringEnum($body): \OpenAPI\Client\Model\StringEnumRef +testEchoBodyStringEnum($string_enum_ref): \OpenAPI\Client\Model\StringEnumRef ``` Test string enum response body @@ -484,10 +484,10 @@ $apiInstance = new OpenAPI\Client\Api\BodyApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$body = 'body_example'; // string | String enum +$string_enum_ref = new \OpenAPI\Client\Model\StringEnumRef(); // \OpenAPI\Client\Model\StringEnumRef | String enum try { - $result = $apiInstance->testEchoBodyStringEnum($body); + $result = $apiInstance->testEchoBodyStringEnum($string_enum_ref); print_r($result); } catch (Exception $e) { echo 'Exception when calling BodyApi->testEchoBodyStringEnum: ', $e->getMessage(), PHP_EOL; @@ -498,7 +498,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **body** | **string**| String enum | [optional] | +| **string_enum_ref** | [**\OpenAPI\Client\Model\StringEnumRef**](../Model/StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php b/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php index 7a768aa0a37d..2ba8bcd230d2 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php @@ -2326,7 +2326,7 @@ public function testEchoBodyPetResponseStringRequest( * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws ApiException on non-2xx response or if the response body is not in the expected format @@ -2334,11 +2334,11 @@ public function testEchoBodyPetResponseStringRequest( * @return \OpenAPI\Client\Model\StringEnumRef */ public function testEchoBodyStringEnum( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): \OpenAPI\Client\Model\StringEnumRef { - list($response) = $this->testEchoBodyStringEnumWithHttpInfo($body, $contentType); + list($response) = $this->testEchoBodyStringEnumWithHttpInfo($string_enum_ref, $contentType); return $response; } @@ -2347,7 +2347,7 @@ public function testEchoBodyStringEnum( * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws ApiException on non-2xx response or if the response body is not in the expected format @@ -2355,11 +2355,11 @@ public function testEchoBodyStringEnum( * @return array of \OpenAPI\Client\Model\StringEnumRef, HTTP status code, HTTP response headers (array of strings) */ public function testEchoBodyStringEnumWithHttpInfo( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): array { - $request = $this->testEchoBodyStringEnumRequest($body, $contentType); + $request = $this->testEchoBodyStringEnumRequest($string_enum_ref, $contentType); try { $options = $this->createHttpClientOption(); @@ -2432,18 +2432,18 @@ public function testEchoBodyStringEnumWithHttpInfo( * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws InvalidArgumentException * @return PromiseInterface */ public function testEchoBodyStringEnumAsync( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): PromiseInterface { - return $this->testEchoBodyStringEnumAsyncWithHttpInfo($body, $contentType) + return $this->testEchoBodyStringEnumAsyncWithHttpInfo($string_enum_ref, $contentType) ->then( function ($response) { return $response[0]; @@ -2456,19 +2456,19 @@ function ($response) { * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws InvalidArgumentException * @return PromiseInterface */ public function testEchoBodyStringEnumAsyncWithHttpInfo( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): PromiseInterface { $returnType = '\OpenAPI\Client\Model\StringEnumRef'; - $request = $this->testEchoBodyStringEnumRequest($body, $contentType); + $request = $this->testEchoBodyStringEnumRequest($string_enum_ref, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2509,14 +2509,14 @@ function ($exception) { /** * Create request for operation 'testEchoBodyStringEnum' * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ public function testEchoBodyStringEnumRequest( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): Request { @@ -2541,12 +2541,12 @@ public function testEchoBodyStringEnumRequest( ); // for model (json/xml) - if (isset($body)) { + if (isset($string_enum_ref)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($body)); + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($string_enum_ref)); } else { - $httpBody = $body; + $httpBody = $string_enum_ref; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md b/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md index e9fb3e752661..f2a184ee34d7 100644 --- a/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md +++ b/samples/client/echo_api/php-nextgen/docs/Api/BodyApi.md @@ -464,7 +464,7 @@ No authorization required ## `testEchoBodyStringEnum()` ```php -testEchoBodyStringEnum($body): \OpenAPI\Client\Model\StringEnumRef +testEchoBodyStringEnum($string_enum_ref): \OpenAPI\Client\Model\StringEnumRef ``` Test string enum response body @@ -484,10 +484,10 @@ $apiInstance = new OpenAPI\Client\Api\BodyApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$body = 'body_example'; // string | String enum +$string_enum_ref = new \OpenAPI\Client\Model\StringEnumRef(); // \OpenAPI\Client\Model\StringEnumRef | String enum try { - $result = $apiInstance->testEchoBodyStringEnum($body); + $result = $apiInstance->testEchoBodyStringEnum($string_enum_ref); print_r($result); } catch (Exception $e) { echo 'Exception when calling BodyApi->testEchoBodyStringEnum: ', $e->getMessage(), PHP_EOL; @@ -498,7 +498,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **body** | **string**| String enum | [optional] | +| **string_enum_ref** | [**\OpenAPI\Client\Model\StringEnumRef**](../Model/StringEnumRef.md)| String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php b/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php index 6cff3ea83996..e88dceb6a060 100644 --- a/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php +++ b/samples/client/echo_api/php-nextgen/src/Api/BodyApi.php @@ -2326,7 +2326,7 @@ public function testEchoBodyPetResponseStringRequest( * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws ApiException on non-2xx response or if the response body is not in the expected format @@ -2334,11 +2334,11 @@ public function testEchoBodyPetResponseStringRequest( * @return \OpenAPI\Client\Model\StringEnumRef */ public function testEchoBodyStringEnum( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): \OpenAPI\Client\Model\StringEnumRef { - list($response) = $this->testEchoBodyStringEnumWithHttpInfo($body, $contentType); + list($response) = $this->testEchoBodyStringEnumWithHttpInfo($string_enum_ref, $contentType); return $response; } @@ -2347,7 +2347,7 @@ public function testEchoBodyStringEnum( * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws ApiException on non-2xx response or if the response body is not in the expected format @@ -2355,11 +2355,11 @@ public function testEchoBodyStringEnum( * @return array of \OpenAPI\Client\Model\StringEnumRef, HTTP status code, HTTP response headers (array of strings) */ public function testEchoBodyStringEnumWithHttpInfo( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): array { - $request = $this->testEchoBodyStringEnumRequest($body, $contentType); + $request = $this->testEchoBodyStringEnumRequest($string_enum_ref, $contentType); try { $options = $this->createHttpClientOption(); @@ -2432,18 +2432,18 @@ public function testEchoBodyStringEnumWithHttpInfo( * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws InvalidArgumentException * @return PromiseInterface */ public function testEchoBodyStringEnumAsync( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): PromiseInterface { - return $this->testEchoBodyStringEnumAsyncWithHttpInfo($body, $contentType) + return $this->testEchoBodyStringEnumAsyncWithHttpInfo($string_enum_ref, $contentType) ->then( function ($response) { return $response[0]; @@ -2456,19 +2456,19 @@ function ($response) { * * Test string enum response body * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws InvalidArgumentException * @return PromiseInterface */ public function testEchoBodyStringEnumAsyncWithHttpInfo( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): PromiseInterface { $returnType = '\OpenAPI\Client\Model\StringEnumRef'; - $request = $this->testEchoBodyStringEnumRequest($body, $contentType); + $request = $this->testEchoBodyStringEnumRequest($string_enum_ref, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2509,14 +2509,14 @@ function ($exception) { /** * Create request for operation 'testEchoBodyStringEnum' * - * @param string|null $body String enum (optional) + * @param \OpenAPI\Client\Model\StringEnumRef|null $string_enum_ref String enum (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEchoBodyStringEnum'] to see the possible values for this operation * * @throws InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ public function testEchoBodyStringEnumRequest( - ?string $body = null, + ?\OpenAPI\Client\Model\StringEnumRef $string_enum_ref = null, string $contentType = self::contentTypes['testEchoBodyStringEnum'][0] ): Request { @@ -2541,12 +2541,12 @@ public function testEchoBodyStringEnumRequest( ); // for model (json/xml) - if (isset($body)) { + if (isset($string_enum_ref)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($body)); + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($string_enum_ref)); } else { - $httpBody = $body; + $httpBody = $string_enum_ref; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/samples/client/echo_api/powershell/docs/BodyApi.md b/samples/client/echo_api/powershell/docs/BodyApi.md index 902fc4f3588d..a63cc9a11a5d 100644 --- a/samples/client/echo_api/powershell/docs/BodyApi.md +++ b/samples/client/echo_api/powershell/docs/BodyApi.md @@ -407,7 +407,7 @@ No authorization required # **Test-EchoBodyStringEnum** > StringEnumRef Test-EchoBodyStringEnum
->         [-Body]
+>         [-StringEnumRef]
Test string enum response body @@ -415,11 +415,11 @@ Test string enum response body ### Example ```powershell -$Body = 0 # String | String enum (optional) +$StringEnumRef = Initialize-StringEnumRef # StringEnumRef | String enum (optional) # Test string enum response body try { - $Result = Test-EchoBodyStringEnum -Body $Body + $Result = Test-EchoBodyStringEnum -StringEnumRef $StringEnumRef } catch { Write-Host ("Exception occurred when calling Test-EchoBodyStringEnum: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) @@ -430,7 +430,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Body** | **String**| String enum | [optional] + **StringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] ### Return type diff --git a/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1 b/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1 index 0b7965887527..b71e16eb15e2 100644 --- a/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1 +++ b/samples/client/echo_api/powershell/src/PSOpenAPITools/Api/BodyApi.ps1 @@ -675,7 +675,7 @@ Test string enum response body No description available. -.PARAMETER Body +.PARAMETER StringEnumRef String enum .PARAMETER WithHttpInfo @@ -690,8 +690,8 @@ function Test-EchoBodyStringEnum { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] - [System.Nullable[String]] - ${Body}, + [PSCustomObject] + ${StringEnumRef}, [Switch] $WithHttpInfo ) @@ -718,7 +718,7 @@ function Test-EchoBodyStringEnum { $LocalVarUri = '/echo/body/string_enum' - $LocalVarBodyParameter = $Body | ConvertTo-Json -Depth 100 + $LocalVarBodyParameter = $StringEnumRef | ConvertTo-Json -Depth 100 $LocalVarResult = Invoke-ApiClient -Method 'POST' ` -Uri $LocalVarUri ` diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md index d4cc6d4dab6d..6399a8ced6e6 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/docs/BodyApi.md @@ -552,7 +552,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_echo_body_string_enum** -> StringEnumRef test_echo_body_string_enum(body=body) +> StringEnumRef test_echo_body_string_enum(string_enum_ref=string_enum_ref) Test string enum response body @@ -578,11 +578,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BodyApi(api_client) - body = 'body_example' # str | String enum (optional) + string_enum_ref = openapi_client.StringEnumRef() # StringEnumRef | String enum (optional) try: # Test string enum response body - api_response = api_instance.test_echo_body_string_enum(body=body) + api_response = api_instance.test_echo_body_string_enum(string_enum_ref=string_enum_ref) print("The response of BodyApi->test_echo_body_string_enum:\n") pprint(api_response) except Exception as e: @@ -596,7 +596,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| String enum | [optional] + **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] ### Return type diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py index 33aba2cbd446..0f0d68e024f5 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/openapi_client/api/body_api.py @@ -2210,7 +2210,7 @@ def _test_echo_body_pet_response_string_serialize( @validate_call def test_echo_body_string_enum( self, - body: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, + string_enum_ref: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2228,8 +2228,8 @@ def test_echo_body_string_enum( Test string enum response body - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2253,7 +2253,7 @@ def test_echo_body_string_enum( """ # noqa: E501 _param = self._test_echo_body_string_enum_serialize( - body=body, + string_enum_ref=string_enum_ref, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2277,7 +2277,7 @@ def test_echo_body_string_enum( @validate_call def test_echo_body_string_enum_with_http_info( self, - body: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, + string_enum_ref: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2295,8 +2295,8 @@ def test_echo_body_string_enum_with_http_info( Test string enum response body - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2320,7 +2320,7 @@ def test_echo_body_string_enum_with_http_info( """ # noqa: E501 _param = self._test_echo_body_string_enum_serialize( - body=body, + string_enum_ref=string_enum_ref, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2344,7 +2344,7 @@ def test_echo_body_string_enum_with_http_info( @validate_call def test_echo_body_string_enum_without_preload_content( self, - body: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, + string_enum_ref: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2362,8 +2362,8 @@ def test_echo_body_string_enum_without_preload_content( Test string enum response body - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2387,7 +2387,7 @@ def test_echo_body_string_enum_without_preload_content( """ # noqa: E501 _param = self._test_echo_body_string_enum_serialize( - body=body, + string_enum_ref=string_enum_ref, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2406,7 +2406,7 @@ def test_echo_body_string_enum_without_preload_content( def _test_echo_body_string_enum_serialize( self, - body, + string_enum_ref, _request_auth, _content_type, _headers, @@ -2432,8 +2432,8 @@ def _test_echo_body_string_enum_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if string_enum_ref is not None: + _body_params = string_enum_ref # set the HTTP header `Accept` diff --git a/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md b/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md index 0f22b6b2a6d2..f2145e6ee1ea 100644 --- a/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md +++ b/samples/client/echo_api/python-pydantic-v1/docs/BodyApi.md @@ -544,7 +544,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_echo_body_string_enum** -> StringEnumRef test_echo_body_string_enum(body=body) +> StringEnumRef test_echo_body_string_enum(string_enum_ref=string_enum_ref) Test string enum response body @@ -571,11 +571,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BodyApi(api_client) - body = 'body_example' # str | String enum (optional) + string_enum_ref = openapi_client.StringEnumRef() # StringEnumRef | String enum (optional) try: # Test string enum response body - api_response = api_instance.test_echo_body_string_enum(body=body) + api_response = api_instance.test_echo_body_string_enum(string_enum_ref=string_enum_ref) print("The response of BodyApi->test_echo_body_string_enum:\n") pprint(api_response) except Exception as e: @@ -588,7 +588,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| String enum | [optional] + **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] ### Return type diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py index 73a283c02b1a..3aad961483f5 100644 --- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/body_api.py @@ -1216,18 +1216,18 @@ def test_echo_body_pet_response_string_with_http_info(self, pet : Annotated[Opti _request_auth=_params.get('_request_auth')) @validate_arguments - def test_echo_body_string_enum(self, body : Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, **kwargs) -> StringEnumRef: # noqa: E501 + def test_echo_body_string_enum(self, string_enum_ref : Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, **kwargs) -> StringEnumRef: # noqa: E501 """Test string enum response body # noqa: E501 Test string enum response body # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_echo_body_string_enum(body, async_req=True) + >>> thread = api.test_echo_body_string_enum(string_enum_ref, async_req=True) >>> result = thread.get() - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _request_timeout: timeout setting for this request. @@ -1243,21 +1243,21 @@ def test_echo_body_string_enum(self, body : Annotated[Optional[StringEnumRef], F if '_preload_content' in kwargs: message = "Error! Please call the test_echo_body_string_enum_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 raise ValueError(message) - return self.test_echo_body_string_enum_with_http_info(body, **kwargs) # noqa: E501 + return self.test_echo_body_string_enum_with_http_info(string_enum_ref, **kwargs) # noqa: E501 @validate_arguments - def test_echo_body_string_enum_with_http_info(self, body : Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def test_echo_body_string_enum_with_http_info(self, string_enum_ref : Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Test string enum response body # noqa: E501 Test string enum response body # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.test_echo_body_string_enum_with_http_info(body, async_req=True) + >>> thread = api.test_echo_body_string_enum_with_http_info(string_enum_ref, async_req=True) >>> result = thread.get() - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -1286,7 +1286,7 @@ def test_echo_body_string_enum_with_http_info(self, body : Annotated[Optional[St _params = locals() _all_params = [ - 'body' + 'string_enum_ref' ] _all_params.extend( [ @@ -1324,8 +1324,8 @@ def test_echo_body_string_enum_with_http_info(self, body : Annotated[Optional[St _files = {} # process the body parameter _body_params = None - if _params['body'] is not None: - _body_params = _params['body'] + if _params['string_enum_ref'] is not None: + _body_params = _params['string_enum_ref'] # set the HTTP header `Accept` _header_params['Accept'] = self.api_client.select_header_accept( diff --git a/samples/client/echo_api/python/docs/BodyApi.md b/samples/client/echo_api/python/docs/BodyApi.md index d4cc6d4dab6d..6399a8ced6e6 100644 --- a/samples/client/echo_api/python/docs/BodyApi.md +++ b/samples/client/echo_api/python/docs/BodyApi.md @@ -552,7 +552,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **test_echo_body_string_enum** -> StringEnumRef test_echo_body_string_enum(body=body) +> StringEnumRef test_echo_body_string_enum(string_enum_ref=string_enum_ref) Test string enum response body @@ -578,11 +578,11 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.BodyApi(api_client) - body = 'body_example' # str | String enum (optional) + string_enum_ref = openapi_client.StringEnumRef() # StringEnumRef | String enum (optional) try: # Test string enum response body - api_response = api_instance.test_echo_body_string_enum(body=body) + api_response = api_instance.test_echo_body_string_enum(string_enum_ref=string_enum_ref) print("The response of BodyApi->test_echo_body_string_enum:\n") pprint(api_response) except Exception as e: @@ -596,7 +596,7 @@ with openapi_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| String enum | [optional] + **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] ### Return type diff --git a/samples/client/echo_api/python/openapi_client/api/body_api.py b/samples/client/echo_api/python/openapi_client/api/body_api.py index 33aba2cbd446..0f0d68e024f5 100644 --- a/samples/client/echo_api/python/openapi_client/api/body_api.py +++ b/samples/client/echo_api/python/openapi_client/api/body_api.py @@ -2210,7 +2210,7 @@ def _test_echo_body_pet_response_string_serialize( @validate_call def test_echo_body_string_enum( self, - body: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, + string_enum_ref: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2228,8 +2228,8 @@ def test_echo_body_string_enum( Test string enum response body - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2253,7 +2253,7 @@ def test_echo_body_string_enum( """ # noqa: E501 _param = self._test_echo_body_string_enum_serialize( - body=body, + string_enum_ref=string_enum_ref, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2277,7 +2277,7 @@ def test_echo_body_string_enum( @validate_call def test_echo_body_string_enum_with_http_info( self, - body: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, + string_enum_ref: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2295,8 +2295,8 @@ def test_echo_body_string_enum_with_http_info( Test string enum response body - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2320,7 +2320,7 @@ def test_echo_body_string_enum_with_http_info( """ # noqa: E501 _param = self._test_echo_body_string_enum_serialize( - body=body, + string_enum_ref=string_enum_ref, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2344,7 +2344,7 @@ def test_echo_body_string_enum_with_http_info( @validate_call def test_echo_body_string_enum_without_preload_content( self, - body: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, + string_enum_ref: Annotated[Optional[StringEnumRef], Field(description="String enum")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2362,8 +2362,8 @@ def test_echo_body_string_enum_without_preload_content( Test string enum response body - :param body: String enum - :type body: str + :param string_enum_ref: String enum + :type string_enum_ref: StringEnumRef :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2387,7 +2387,7 @@ def test_echo_body_string_enum_without_preload_content( """ # noqa: E501 _param = self._test_echo_body_string_enum_serialize( - body=body, + string_enum_ref=string_enum_ref, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2406,7 +2406,7 @@ def test_echo_body_string_enum_without_preload_content( def _test_echo_body_string_enum_serialize( self, - body, + string_enum_ref, _request_auth, _content_type, _headers, @@ -2432,8 +2432,8 @@ def _test_echo_body_string_enum_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if string_enum_ref is not None: + _body_params = string_enum_ref # set the HTTP header `Accept` diff --git a/samples/client/echo_api/r/R/body_api.R b/samples/client/echo_api/r/R/body_api.R index e9213e0dc94f..beb9f4eed0d9 100644 --- a/samples/client/echo_api/r/R/body_api.R +++ b/samples/client/echo_api/r/R/body_api.R @@ -128,14 +128,14 @@ #' #################### TestEchoBodyStringEnum #################### #' #' library(openapi) -#' var_body <- "body_example" # character | String enum (Optional) +#' var_string_enum_ref <- StringEnumRef$new() # StringEnumRef | String enum (Optional) #' #' #Test string enum response body #' api_instance <- BodyApi$new() #' #' # to save the result into a file, simply add the optional `data_file` parameter, e.g. -#' # result <- api_instance$TestEchoBodyStringEnum(body = var_bodydata_file = "result.txt") -#' result <- api_instance$TestEchoBodyStringEnum(body = var_body) +#' # result <- api_instance$TestEchoBodyStringEnum(string_enum_ref = var_string_enum_refdata_file = "result.txt") +#' result <- api_instance$TestEchoBodyStringEnum(string_enum_ref = var_string_enum_ref) #' dput(result) #' #' @@ -951,13 +951,13 @@ BodyApi <- R6::R6Class( #' @description #' Test string enum response body #' - #' @param body (optional) String enum + #' @param string_enum_ref (optional) String enum #' @param data_file (optional) name of the data file to save the result #' @param ... Other optional arguments #' #' @return StringEnumRef - TestEchoBodyStringEnum = function(body = NULL, data_file = NULL, ...) { - local_var_response <- self$TestEchoBodyStringEnumWithHttpInfo(body, data_file = data_file, ...) + TestEchoBodyStringEnum = function(string_enum_ref = NULL, data_file = NULL, ...) { + local_var_response <- self$TestEchoBodyStringEnumWithHttpInfo(string_enum_ref, data_file = data_file, ...) if (local_var_response$status_code >= 200 && local_var_response$status_code <= 299) { return(local_var_response$content) } else if (local_var_response$status_code >= 300 && local_var_response$status_code <= 399) { @@ -972,12 +972,12 @@ BodyApi <- R6::R6Class( #' @description #' Test string enum response body #' - #' @param body (optional) String enum + #' @param string_enum_ref (optional) String enum #' @param data_file (optional) name of the data file to save the result #' @param ... Other optional arguments #' #' @return API response (StringEnumRef) with additional information such as HTTP status code, headers - TestEchoBodyStringEnumWithHttpInfo = function(body = NULL, data_file = NULL, ...) { + TestEchoBodyStringEnumWithHttpInfo = function(string_enum_ref = NULL, data_file = NULL, ...) { args <- list(...) query_params <- list() header_params <- c() @@ -987,12 +987,12 @@ BodyApi <- R6::R6Class( oauth_scopes <- NULL is_oauth <- FALSE - if (!missing(`body`) && is.null(`body`)) { - stop("Invalid value for `body` when calling BodyApi$TestEchoBodyStringEnum, `body` is not nullable") + if (!missing(`string_enum_ref`) && is.null(`string_enum_ref`)) { + stop("Invalid value for `string_enum_ref` when calling BodyApi$TestEchoBodyStringEnum, `string_enum_ref` is not nullable") } - if (!is.null(`body`)) { - local_var_body <- `body`$toJSONString() + if (!is.null(`string_enum_ref`)) { + local_var_body <- `string_enum_ref`$toJSONString() } else { local_var_body <- NULL } diff --git a/samples/client/echo_api/r/docs/BodyApi.md b/samples/client/echo_api/r/docs/BodyApi.md index 9ff03a4ff917..afec10d107dd 100644 --- a/samples/client/echo_api/r/docs/BodyApi.md +++ b/samples/client/echo_api/r/docs/BodyApi.md @@ -388,7 +388,7 @@ No authorization required | **200** | Successful operation | - | # **TestEchoBodyStringEnum** -> StringEnumRef TestEchoBodyStringEnum(body = var.body) +> StringEnumRef TestEchoBodyStringEnum(string_enum_ref = var.string_enum_ref) Test string enum response body @@ -401,12 +401,12 @@ library(openapi) # Test string enum response body # # prepare function argument(s) -var_body <- "body_example" # character | String enum (Optional) +var_string_enum_ref <- StringEnumRef$new() # StringEnumRef | String enum (Optional) api_instance <- BodyApi$new() # to save the result into a file, simply add the optional `data_file` parameter, e.g. -# result <- api_instance$TestEchoBodyStringEnum(body = var_bodydata_file = "result.txt") -result <- api_instance$TestEchoBodyStringEnum(body = var_body) +# result <- api_instance$TestEchoBodyStringEnum(string_enum_ref = var_string_enum_refdata_file = "result.txt") +result <- api_instance$TestEchoBodyStringEnum(string_enum_ref = var_string_enum_ref) dput(result) ``` @@ -414,7 +414,7 @@ dput(result) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **character**| String enum | [optional] + **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] ### Return type diff --git a/samples/client/echo_api/ruby-faraday/docs/BodyApi.md b/samples/client/echo_api/ruby-faraday/docs/BodyApi.md index b4a119e97c2e..d858f2154cfd 100644 --- a/samples/client/echo_api/ruby-faraday/docs/BodyApi.md +++ b/samples/client/echo_api/ruby-faraday/docs/BodyApi.md @@ -553,7 +553,7 @@ require 'openapi_client' api_instance = OpenapiClient::BodyApi.new opts = { - body: 'body_example' # String | String enum + string_enum_ref: OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef | String enum } begin @@ -587,7 +587,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | String enum | [optional] | +| **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md) | String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb index b582949db9fc..beb195d3e209 100644 --- a/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb +++ b/samples/client/echo_api/ruby-faraday/lib/openapi_client/api/body_api.rb @@ -533,7 +533,7 @@ def test_echo_body_pet_response_string_with_http_info(opts = {}) # Test string enum response body # Test string enum response body # @param [Hash] opts the optional parameters - # @option opts [String] :body String enum + # @option opts [StringEnumRef] :string_enum_ref String enum # @return [StringEnumRef] def test_echo_body_string_enum(opts = {}) data, _status_code, _headers = test_echo_body_string_enum_with_http_info(opts) @@ -543,7 +543,7 @@ def test_echo_body_string_enum(opts = {}) # Test string enum response body # Test string enum response body # @param [Hash] opts the optional parameters - # @option opts [String] :body String enum + # @option opts [StringEnumRef] :string_enum_ref String enum # @return [Array<(StringEnumRef, Integer, Hash)>] StringEnumRef data, response status code and response headers def test_echo_body_string_enum_with_http_info(opts = {}) if @api_client.config.debugging @@ -569,7 +569,7 @@ def test_echo_body_string_enum_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'string_enum_ref']) # return_type return_type = opts[:debug_return_type] || 'StringEnumRef' diff --git a/samples/client/echo_api/ruby-httpx/docs/BodyApi.md b/samples/client/echo_api/ruby-httpx/docs/BodyApi.md index b4a119e97c2e..d858f2154cfd 100644 --- a/samples/client/echo_api/ruby-httpx/docs/BodyApi.md +++ b/samples/client/echo_api/ruby-httpx/docs/BodyApi.md @@ -553,7 +553,7 @@ require 'openapi_client' api_instance = OpenapiClient::BodyApi.new opts = { - body: 'body_example' # String | String enum + string_enum_ref: OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef | String enum } begin @@ -587,7 +587,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | String enum | [optional] | +| **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md) | String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb index b582949db9fc..beb195d3e209 100644 --- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb +++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/body_api.rb @@ -533,7 +533,7 @@ def test_echo_body_pet_response_string_with_http_info(opts = {}) # Test string enum response body # Test string enum response body # @param [Hash] opts the optional parameters - # @option opts [String] :body String enum + # @option opts [StringEnumRef] :string_enum_ref String enum # @return [StringEnumRef] def test_echo_body_string_enum(opts = {}) data, _status_code, _headers = test_echo_body_string_enum_with_http_info(opts) @@ -543,7 +543,7 @@ def test_echo_body_string_enum(opts = {}) # Test string enum response body # Test string enum response body # @param [Hash] opts the optional parameters - # @option opts [String] :body String enum + # @option opts [StringEnumRef] :string_enum_ref String enum # @return [Array<(StringEnumRef, Integer, Hash)>] StringEnumRef data, response status code and response headers def test_echo_body_string_enum_with_http_info(opts = {}) if @api_client.config.debugging @@ -569,7 +569,7 @@ def test_echo_body_string_enum_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'string_enum_ref']) # return_type return_type = opts[:debug_return_type] || 'StringEnumRef' diff --git a/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md b/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md index b4a119e97c2e..d858f2154cfd 100644 --- a/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md +++ b/samples/client/echo_api/ruby-typhoeus/docs/BodyApi.md @@ -553,7 +553,7 @@ require 'openapi_client' api_instance = OpenapiClient::BodyApi.new opts = { - body: 'body_example' # String | String enum + string_enum_ref: OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef | String enum } begin @@ -587,7 +587,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | String enum | [optional] | +| **string_enum_ref** | [**StringEnumRef**](StringEnumRef.md) | String enum | [optional] | ### Return type diff --git a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb index b582949db9fc..beb195d3e209 100644 --- a/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb +++ b/samples/client/echo_api/ruby-typhoeus/lib/openapi_client/api/body_api.rb @@ -533,7 +533,7 @@ def test_echo_body_pet_response_string_with_http_info(opts = {}) # Test string enum response body # Test string enum response body # @param [Hash] opts the optional parameters - # @option opts [String] :body String enum + # @option opts [StringEnumRef] :string_enum_ref String enum # @return [StringEnumRef] def test_echo_body_string_enum(opts = {}) data, _status_code, _headers = test_echo_body_string_enum_with_http_info(opts) @@ -543,7 +543,7 @@ def test_echo_body_string_enum(opts = {}) # Test string enum response body # Test string enum response body # @param [Hash] opts the optional parameters - # @option opts [String] :body String enum + # @option opts [StringEnumRef] :string_enum_ref String enum # @return [Array<(StringEnumRef, Integer, Hash)>] StringEnumRef data, response status code and response headers def test_echo_body_string_enum_with_http_info(opts = {}) if @api_client.config.debugging @@ -569,7 +569,7 @@ def test_echo_body_string_enum_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'string_enum_ref']) # return_type return_type = opts[:debug_return_type] || 'StringEnumRef' diff --git a/samples/client/echo_api/typescript-axios/build/api.ts b/samples/client/echo_api/typescript-axios/build/api.ts index 6e5ea79072be..8058b0dc4716 100644 --- a/samples/client/echo_api/typescript-axios/build/api.ts +++ b/samples/client/echo_api/typescript-axios/build/api.ts @@ -583,11 +583,11 @@ export const BodyApiAxiosParamCreator = function (configuration?: Configuration) /** * Test string enum response body * @summary Test string enum response body - * @param {string} [body] String enum + * @param {StringEnumRef} [stringEnumRef] String enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyStringEnum: async (body?: string, options: RawAxiosRequestConfig = {}): Promise => { + testEchoBodyStringEnum: async (stringEnumRef?: StringEnumRef, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/echo/body/string_enum`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -606,7 +606,7 @@ export const BodyApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(stringEnumRef, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -761,12 +761,12 @@ export const BodyApiFp = function(configuration?: Configuration) { /** * Test string enum response body * @summary Test string enum response body - * @param {string} [body] String enum + * @param {StringEnumRef} [stringEnumRef] String enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async testEchoBodyStringEnum(body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.testEchoBodyStringEnum(body, options); + async testEchoBodyStringEnum(stringEnumRef?: StringEnumRef, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.testEchoBodyStringEnum(stringEnumRef, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['BodyApi.testEchoBodyStringEnum']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -875,12 +875,12 @@ export const BodyApiFactory = function (configuration?: Configuration, basePath? /** * Test string enum response body * @summary Test string enum response body - * @param {string} [body] String enum + * @param {StringEnumRef} [stringEnumRef] String enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testEchoBodyStringEnum(body?: string, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.testEchoBodyStringEnum(body, options).then((request) => request(axios, basePath)); + testEchoBodyStringEnum(stringEnumRef?: StringEnumRef, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.testEchoBodyStringEnum(stringEnumRef, options).then((request) => request(axios, basePath)); }, /** * Test empty json (request body) @@ -989,12 +989,12 @@ export class BodyApi extends BaseAPI { /** * Test string enum response body * @summary Test string enum response body - * @param {string} [body] String enum + * @param {StringEnumRef} [stringEnumRef] String enum * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public testEchoBodyStringEnum(body?: string, options?: RawAxiosRequestConfig) { - return BodyApiFp(this.configuration).testEchoBodyStringEnum(body, options).then((request) => request(this.axios, this.basePath)); + public testEchoBodyStringEnum(stringEnumRef?: StringEnumRef, options?: RawAxiosRequestConfig) { + return BodyApiFp(this.configuration).testEchoBodyStringEnum(stringEnumRef, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/samples/client/echo_api/typescript-axios/build/docs/BodyApi.md b/samples/client/echo_api/typescript-axios/build/docs/BodyApi.md index 65f8e1018db8..03c10720bbde 100644 --- a/samples/client/echo_api/typescript-axios/build/docs/BodyApi.md +++ b/samples/client/echo_api/typescript-axios/build/docs/BodyApi.md @@ -429,16 +429,17 @@ Test string enum response body ```typescript import { BodyApi, - Configuration + Configuration, + StringEnumRef } from '@openapitools/typescript-axios-echo-api'; const configuration = new Configuration(); const apiInstance = new BodyApi(configuration); -let body: string; //String enum (optional) +let stringEnumRef: StringEnumRef; //String enum (optional) const { status, data } = await apiInstance.testEchoBodyStringEnum( - body + stringEnumRef ); ``` @@ -446,7 +447,7 @@ const { status, data } = await apiInstance.testEchoBodyStringEnum( |Name | Type | Description | Notes| |------------- | ------------- | ------------- | -------------| -| **body** | **string**| String enum | | +| **stringEnumRef** | **StringEnumRef**| String enum | | ### Return type diff --git a/samples/client/echo_api/typescript/build/apis/BodyApi.ts b/samples/client/echo_api/typescript/build/apis/BodyApi.ts index 72e0c4d5d903..569b06751255 100644 --- a/samples/client/echo_api/typescript/build/apis/BodyApi.ts +++ b/samples/client/echo_api/typescript/build/apis/BodyApi.ts @@ -340,9 +340,9 @@ export class BodyApiRequestFactory extends BaseAPIRequestFactory { /** * Test string enum response body * Test string enum response body - * @param body String enum + * @param stringEnumRef String enum */ - public async testEchoBodyStringEnum(body?: string, _options?: Configuration): Promise { + public async testEchoBodyStringEnum(stringEnumRef?: StringEnumRef, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -360,7 +360,7 @@ export class BodyApiRequestFactory extends BaseAPIRequestFactory { ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "string", ""), + ObjectSerializer.serialize(stringEnumRef, "StringEnumRef", ""), contentType ); requestContext.setBody(serializedBody); diff --git a/samples/client/echo_api/typescript/build/docs/BodyApi.md b/samples/client/echo_api/typescript/build/docs/BodyApi.md index 182218637c70..92290ccd4f36 100644 --- a/samples/client/echo_api/typescript/build/docs/BodyApi.md +++ b/samples/client/echo_api/typescript/build/docs/BodyApi.md @@ -486,7 +486,7 @@ const apiInstance = new BodyApi(configuration); const request: BodyApiTestEchoBodyStringEnumRequest = { // String enum (optional) - body: "success", + stringEnumRef: "success", }; const data = await apiInstance.testEchoBodyStringEnum(request); @@ -498,7 +498,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string**| String enum | + **stringEnumRef** | **StringEnumRef**| String enum | ### Return type diff --git a/samples/client/echo_api/typescript/build/types/ObjectParamAPI.ts b/samples/client/echo_api/typescript/build/types/ObjectParamAPI.ts index d46287b56184..0284f7bddbdc 100644 --- a/samples/client/echo_api/typescript/build/types/ObjectParamAPI.ts +++ b/samples/client/echo_api/typescript/build/types/ObjectParamAPI.ts @@ -143,10 +143,10 @@ export interface BodyApiTestEchoBodyPetResponseStringRequest { export interface BodyApiTestEchoBodyStringEnumRequest { /** * String enum - * @type string + * @type StringEnumRef * @memberof BodyApitestEchoBodyStringEnum */ - body?: string + stringEnumRef?: StringEnumRef } export interface BodyApiTestEchoBodyTagResponseStringRequest { @@ -315,7 +315,7 @@ export class ObjectBodyApi { * @param param the request object */ public testEchoBodyStringEnumWithHttpInfo(param: BodyApiTestEchoBodyStringEnumRequest = {}, options?: ConfigurationOptions): Promise> { - return this.api.testEchoBodyStringEnumWithHttpInfo(param.body, options).toPromise(); + return this.api.testEchoBodyStringEnumWithHttpInfo(param.stringEnumRef, options).toPromise(); } /** @@ -324,7 +324,7 @@ export class ObjectBodyApi { * @param param the request object */ public testEchoBodyStringEnum(param: BodyApiTestEchoBodyStringEnumRequest = {}, options?: ConfigurationOptions): Promise { - return this.api.testEchoBodyStringEnum(param.body, options).toPromise(); + return this.api.testEchoBodyStringEnum(param.stringEnumRef, options).toPromise(); } /** diff --git a/samples/client/echo_api/typescript/build/types/ObservableAPI.ts b/samples/client/echo_api/typescript/build/types/ObservableAPI.ts index 66872fb4ac8f..d4da5a925c38 100644 --- a/samples/client/echo_api/typescript/build/types/ObservableAPI.ts +++ b/samples/client/echo_api/typescript/build/types/ObservableAPI.ts @@ -387,12 +387,12 @@ export class ObservableBodyApi { /** * Test string enum response body * Test string enum response body - * @param [body] String enum + * @param [stringEnumRef] String enum */ - public testEchoBodyStringEnumWithHttpInfo(body?: string, _options?: ConfigurationOptions): Observable> { + public testEchoBodyStringEnumWithHttpInfo(stringEnumRef?: StringEnumRef, _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); - const requestContextPromise = this.requestFactory.testEchoBodyStringEnum(body, _config); + const requestContextPromise = this.requestFactory.testEchoBodyStringEnum(stringEnumRef, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); for (const middleware of _config.middleware) { @@ -412,10 +412,10 @@ export class ObservableBodyApi { /** * Test string enum response body * Test string enum response body - * @param [body] String enum + * @param [stringEnumRef] String enum */ - public testEchoBodyStringEnum(body?: string, _options?: ConfigurationOptions): Observable { - return this.testEchoBodyStringEnumWithHttpInfo(body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public testEchoBodyStringEnum(stringEnumRef?: StringEnumRef, _options?: ConfigurationOptions): Observable { + return this.testEchoBodyStringEnumWithHttpInfo(stringEnumRef, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** diff --git a/samples/client/echo_api/typescript/build/types/PromiseAPI.ts b/samples/client/echo_api/typescript/build/types/PromiseAPI.ts index cc600ec9daaf..f37cf106210e 100644 --- a/samples/client/echo_api/typescript/build/types/PromiseAPI.ts +++ b/samples/client/echo_api/typescript/build/types/PromiseAPI.ts @@ -264,22 +264,22 @@ export class PromiseBodyApi { /** * Test string enum response body * Test string enum response body - * @param [body] String enum + * @param [stringEnumRef] String enum */ - public testEchoBodyStringEnumWithHttpInfo(body?: string, _options?: PromiseConfigurationOptions): Promise> { + public testEchoBodyStringEnumWithHttpInfo(stringEnumRef?: StringEnumRef, _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); - const result = this.api.testEchoBodyStringEnumWithHttpInfo(body, observableOptions); + const result = this.api.testEchoBodyStringEnumWithHttpInfo(stringEnumRef, observableOptions); return result.toPromise(); } /** * Test string enum response body * Test string enum response body - * @param [body] String enum + * @param [stringEnumRef] String enum */ - public testEchoBodyStringEnum(body?: string, _options?: PromiseConfigurationOptions): Promise { + public testEchoBodyStringEnum(stringEnumRef?: StringEnumRef, _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); - const result = this.api.testEchoBodyStringEnum(body, observableOptions); + const result = this.api.testEchoBodyStringEnum(stringEnumRef, observableOptions); return result.toPromise(); } diff --git a/samples/client/petstore/bash/docs/FakeApi.md b/samples/client/petstore/bash/docs/FakeApi.md index 7232298ecbdd..368f464d5d21 100644 --- a/samples/client/petstore/bash/docs/FakeApi.md +++ b/samples/client/petstore/bash/docs/FakeApi.md @@ -181,7 +181,7 @@ petstore-cli fakeOuterStringSerialize Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/apis/FakeApi.md index 408b1fc495ae..1ef0b125aa37 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 4274c049b6c0..05e2121b53cb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); ///

/// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2244,17 +2244,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2262,11 +2262,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2277,8 +2277,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2287,11 +2287,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2304,21 +2304,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2331,18 +2331,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2359,10 +2359,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2401,7 +2401,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2411,7 +2411,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/apis/FakeApi.md index c2bfb57e72e1..e8af6dbb79c2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 755ff671252b..96b43e1141fd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2244,17 +2244,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2262,11 +2262,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2277,8 +2277,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2287,11 +2287,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2304,21 +2304,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2331,18 +2331,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2359,10 +2359,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2401,7 +2401,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2411,7 +2411,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/apis/FakeApi.md index 408b1fc495ae..1ef0b125aa37 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index 4274c049b6c0..05e2121b53cb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2244,17 +2244,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2262,11 +2262,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2277,8 +2277,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2287,11 +2287,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2304,21 +2304,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2331,18 +2331,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2359,10 +2359,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2401,7 +2401,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2411,7 +2411,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/apis/FakeApi.md index c2bfb57e72e1..e8af6dbb79c2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 755ff671252b..96b43e1141fd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2244,17 +2244,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2262,11 +2262,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2277,8 +2277,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2287,11 +2287,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2304,21 +2304,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2331,18 +2331,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2359,10 +2359,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2401,7 +2401,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2411,7 +2411,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/apis/FakeApi.md index 0febc3875e97..bc05d56ecf1e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index da128c8093be..06373ee736b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2248,17 +2248,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2266,11 +2266,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2281,8 +2281,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2291,11 +2291,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2308,21 +2308,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2335,18 +2335,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2363,10 +2363,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2406,7 +2406,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2416,7 +2416,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/apis/FakeApi.md index a9d8e1b1b7c0..a8467f4f652e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs index 2b26ab6e6454..a476d256c0ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs @@ -133,10 +133,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -145,10 +145,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <?> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2250,17 +2250,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2268,11 +2268,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2283,8 +2283,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2293,11 +2293,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2310,21 +2310,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2337,18 +2337,18 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2365,10 +2365,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2408,7 +2408,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2418,7 +2418,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/apis/FakeApi.md index a9d8e1b1b7c0..a8467f4f652e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 913f08f8ce09..4f0187fc20d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2248,17 +2248,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2266,11 +2266,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2281,8 +2281,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2291,11 +2291,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2308,21 +2308,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2335,18 +2335,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2363,10 +2363,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2406,7 +2406,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2416,7 +2416,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/apis/FakeApi.md index a9d8e1b1b7c0..a8467f4f652e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs index 2b26ab6e6454..a476d256c0ac 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs @@ -133,10 +133,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -145,10 +145,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <?> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2250,17 +2250,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2268,11 +2268,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2283,8 +2283,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2293,11 +2293,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2310,21 +2310,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2337,18 +2337,18 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2365,10 +2365,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2408,7 +2408,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2418,7 +2418,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/apis/FakeApi.md index 0febc3875e97..bc05d56ecf1e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs index da128c8093be..06373ee736b0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2248,17 +2248,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2266,11 +2266,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2281,8 +2281,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2291,11 +2291,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2308,21 +2308,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2335,18 +2335,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2363,10 +2363,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2406,7 +2406,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2416,7 +2416,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/apis/FakeApi.md index a9d8e1b1b7c0..a8467f4f652e 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs index 2b26ab6e6454..a476d256c0ac 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Api/FakeApi.cs @@ -133,10 +133,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -145,10 +145,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <?> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2250,17 +2250,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2268,11 +2268,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2283,8 +2283,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2293,11 +2293,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2310,21 +2310,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2337,18 +2337,18 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2365,10 +2365,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2408,7 +2408,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2418,7 +2418,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/apis/FakeApi.md index a9d8e1b1b7c0..a8467f4f652e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 913f08f8ce09..4f0187fc20d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -131,10 +131,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -143,10 +143,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2248,17 +2248,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2266,11 +2266,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2281,8 +2281,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2291,11 +2291,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2308,21 +2308,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2335,18 +2335,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2363,10 +2363,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2406,7 +2406,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2416,7 +2416,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/apis/FakeApi.md index a9d8e1b1b7c0..a8467f4f652e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs index 2b26ab6e6454..a476d256c0ac 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Api/FakeApi.cs @@ -133,10 +133,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -145,10 +145,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <?> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2250,17 +2250,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2268,11 +2268,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2283,8 +2283,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2293,11 +2293,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2310,21 +2310,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2337,18 +2337,18 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2365,10 +2365,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2408,7 +2408,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2418,7 +2418,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/apis/FakeApi.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/apis/FakeApi.md index c2bfb57e72e1..e8af6dbb79c2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/apis/FakeApi.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/apis/FakeApi.md @@ -165,7 +165,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -177,7 +177,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index c3caaa0ae952..cc4f558b9db2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -130,10 +130,10 @@ public interface IFakeApi : IApi /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -142,10 +142,10 @@ public interface IFakeApi : IApi /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default); + Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums @@ -2243,17 +2243,17 @@ private void OnDeserializationErrorDefaultImplementation(Exception exception, Ht partial void OnDeserializationError(ref bool suppressDefaultLog, Exception exception, HttpStatusCode httpStatusCode); } - partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, ref Option body); + partial void FormatFakeOuterStringSerialize(ref Guid requiredStringUuid, Option outerString); /// /// Validates the request parameters /// - /// + /// /// - private void ValidateFakeOuterStringSerialize(Option body) + private void ValidateFakeOuterStringSerialize(Option outerString) { - if (body.IsSet && body.Value == null) - throw new ArgumentNullException(nameof(body)); + if (outerString.IsSet && outerString.Value == null) + throw new ArgumentNullException(nameof(outerString)); } /// @@ -2261,11 +2261,11 @@ private void ValidateFakeOuterStringSerialize(Option body) /// /// /// - /// - private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body) + /// + private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLog = false; - AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerialize(ref suppressDefaultLog, apiResponseLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLog) Logger.LogInformation("{0,-9} | {1} | {2}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path); } @@ -2276,8 +2276,8 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option body); + /// + partial void AfterFakeOuterStringSerialize(ref bool suppressDefaultLog, IFakeOuterStringSerializeApiResponse apiResponseLocalVar, Guid requiredStringUuid, Option outerString); /// /// Logs exceptions that occur while retrieving the server response @@ -2286,11 +2286,11 @@ private void AfterFakeOuterStringSerializeDefaultImplementation(IFakeOuterString /// /// /// - /// - private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body) + /// + private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString) { bool suppressDefaultLogLocalVar = false; - OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, body); + OnErrorFakeOuterStringSerialize(ref suppressDefaultLogLocalVar, exceptionLocalVar, pathFormatLocalVar, pathLocalVar, requiredStringUuid, outerString); if (!suppressDefaultLogLocalVar) Logger.LogError(exceptionLocalVar, "An error occurred while sending the request to the server."); } @@ -2303,21 +2303,21 @@ private void OnErrorFakeOuterStringSerializeDefaultImplementation(Exception exce /// /// /// - /// - partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option body); + /// + partial void OnErrorFakeOuterStringSerialize(ref bool suppressDefaultLogLocalVar, Exception exceptionLocalVar, string pathFormatLocalVar, string pathLocalVar, Guid requiredStringUuid, Option outerString); /// /// Test serialization of outer string types /// /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeOrDefaultAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { try { - return await FakeOuterStringSerializeAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + return await FakeOuterStringSerializeAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); } catch (Exception) { @@ -2330,18 +2330,18 @@ public async Task FakeOuterStringSerialize /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// <> - public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option body = default, System.Threading.CancellationToken cancellationToken = default) + public async Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, Option outerString = default, System.Threading.CancellationToken cancellationToken = default) { UriBuilder uriBuilderLocalVar = new UriBuilder(); try { - ValidateFakeOuterStringSerialize(body); + ValidateFakeOuterStringSerialize(outerString); - FormatFakeOuterStringSerialize(ref requiredStringUuid, ref body); + FormatFakeOuterStringSerialize(ref requiredStringUuid, outerString); using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage()) { @@ -2358,10 +2358,10 @@ public async Task FakeOuterStringSerialize uriBuilderLocalVar.Query = parseQueryStringLocalVar.ToString(); - if (body.IsSet) - httpRequestMessageLocalVar.Content = (body.Value as object) is System.IO.Stream stream + if (outerString.IsSet) + httpRequestMessageLocalVar.Content = (outerString.Value as object) is System.IO.Stream stream ? httpRequestMessageLocalVar.Content = new StreamContent(stream) - : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(body.Value, _jsonSerializerOptions)); + : httpRequestMessageLocalVar.Content = new StringContent(JsonSerializer.Serialize(outerString.Value, _jsonSerializerOptions)); httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri; @@ -2400,7 +2400,7 @@ public async Task FakeOuterStringSerialize } } - AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, body); + AfterFakeOuterStringSerializeDefaultImplementation(apiResponseLocalVar, requiredStringUuid, outerString); Events.ExecuteOnFakeOuterStringSerialize(apiResponseLocalVar); @@ -2410,7 +2410,7 @@ public async Task FakeOuterStringSerialize } catch(Exception e) { - OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, body); + OnErrorFakeOuterStringSerializeDefaultImplementation(e, "/fake/outer/string", uriBuilderLocalVar.Path, requiredStringUuid, outerString); Events.ExecuteOnErrorFakeOuterStringSerialize(e); throw; } diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FakeApi.md index 1edf19ba55b0..e32c322678b2 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/FakeApi.md @@ -394,7 +394,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString? outerString = null) @@ -422,11 +422,11 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new FakeApi(httpClient, config, httpClientHandler); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string? | Input string as post body (optional) + var outerString = new OuterString?(); // OuterString? | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -446,7 +446,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -464,7 +464,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string?** | Input string as post body | [optional] | +| **outerString** | [**OuterString?**](OuterString?.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 2da1ada6ba90..00241f7386d3 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -114,9 +114,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default); /// /// @@ -126,9 +126,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default); /// /// Array of Enums /// @@ -588,10 +588,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -601,10 +601,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1660,11 +1660,11 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1673,9 +1673,9 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = d /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1695,7 +1695,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request @@ -1715,12 +1715,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1729,10 +1729,10 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1754,7 +1754,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md index bedc98a6492a..4c3cf4aca7d4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md @@ -394,7 +394,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -422,11 +422,11 @@ namespace Example HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new FakeApi(httpClient, config, httpClientHandler); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string | Input string as post body (optional) + var outerString = new OuterString(); // OuterString | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -446,7 +446,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -464,7 +464,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 1b5a6fd37a61..35ad97fdb53b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -114,9 +114,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default); /// /// @@ -126,9 +126,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default); /// /// Array of Enums /// @@ -588,10 +588,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -601,10 +601,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1660,11 +1660,11 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1673,9 +1673,9 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = de /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1695,7 +1695,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request @@ -1715,12 +1715,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1729,10 +1729,10 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1754,7 +1754,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md index 06309f31e8a5..9faf12bbd918 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string | Input string as post body (optional) + var outerString = new OuterString(); // OuterString | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 049ff3648fda..eeb48ef2a4dd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = de /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md index 06309f31e8a5..9faf12bbd918 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string | Input string as post body (optional) + var outerString = new OuterString(); // OuterString | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 049ff3648fda..eeb48ef2a4dd 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = de /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FakeApi.md index 933fb1c7cad3..625e8d751511 100644 --- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString? outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string? | Input string as post body (optional) + var outerString = new OuterString?(); // OuterString? | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string?** | Input string as post body | [optional] | +| **outerString** | [**OuterString?**](OuterString?.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs index dd1ba1fb0e8b..eb2f35640461 100644 --- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = d /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FakeApi.md index 933fb1c7cad3..625e8d751511 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString? outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string? | Input string as post body (optional) + var outerString = new OuterString?(); // OuterString? | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string?** | Input string as post body | [optional] | +| **outerString** | [**OuterString?**](OuterString?.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index dd1ba1fb0e8b..eb2f35640461 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = d /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FakeApi.md index 933fb1c7cad3..625e8d751511 100644 --- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString? outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string? | Input string as post body (optional) + var outerString = new OuterString?(); // OuterString? | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string?** | Input string as post body | [optional] | +| **outerString** | [**OuterString?**](OuterString?.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs index dd1ba1fb0e8b..eb2f35640461 100644 --- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = d /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md index 06309f31e8a5..9faf12bbd918 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string | Input string as post body (optional) + var outerString = new OuterString(); // OuterString | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs index 049ff3648fda..eeb48ef2a4dd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = de /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md index 255136e959ee..b0ee74a04e07 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://localhost/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string | Input string as post body (optional) + var outerString = new OuterString(); // OuterString | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 049ff3648fda..eeb48ef2a4dd 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -122,10 +122,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// @@ -135,10 +135,10 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0); /// /// Array of Enums /// @@ -636,11 +636,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -650,11 +650,11 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1751,12 +1751,12 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1765,10 +1765,10 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = de /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1795,7 +1795,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; @@ -1820,13 +1820,13 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1835,11 +1835,11 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1866,7 +1866,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G } localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; localVarRequestOptions.Operation = "FakeApi.FakeOuterStringSerialize"; localVarRequestOptions.OperationIndex = operationIndex; diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FakeApi.md index 933fb1c7cad3..625e8d751511 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString? outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string? | Input string as post body (optional) + var outerString = new OuterString?(); // OuterString? | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string?** | Input string as post body | [optional] | +| **outerString** | [**OuterString?**](OuterString?.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index e91c7f1fd95a..1dbc5f09e3ab 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -113,9 +113,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default); /// /// @@ -125,9 +125,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default); /// /// Array of Enums /// @@ -587,10 +587,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -600,10 +600,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1634,11 +1634,11 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString? outerString = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1647,9 +1647,9 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = d /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString? outerString = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1669,7 +1669,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request @@ -1689,12 +1689,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default) { - var task = FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, cancellationToken); + var task = FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else @@ -1708,10 +1708,10 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString? outerString = default, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1733,7 +1733,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md index 06309f31e8a5..9faf12bbd918 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid requiredStringUuid, OuterString outerString = null) @@ -402,11 +402,11 @@ namespace Example config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String - var body = "body_example"; // string | Input string as post body (optional) + var outerString = new OuterString(); // OuterString | Input string as post body (optional) try { - string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, body); + string result = apiInstance.FakeOuterStringSerialize(requiredStringUuid, outerString); Debug.WriteLine(result); } catch (ApiException e) @@ -426,7 +426,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + ApiResponse response = apiInstance.FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -444,7 +444,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **requiredStringUuid** | **Guid** | Required UUID String | | -| **body** | **string** | Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 033b144e9c44..c1163241e698 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -113,9 +113,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default); + string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default); /// /// @@ -125,9 +125,9 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default); /// /// Array of Enums /// @@ -587,10 +587,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// @@ -600,10 +600,10 @@ public interface IFakeApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default); /// /// Array of Enums /// @@ -1634,11 +1634,11 @@ public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync( /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default) + public string FakeOuterStringSerialize(Guid requiredStringUuid, OuterString outerString = default) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, outerString); return localVarResponse.Data; } @@ -1647,9 +1647,9 @@ public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = de /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, OuterString outerString = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1669,7 +1669,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request @@ -1689,12 +1689,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithH /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default) { - var task = FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, cancellationToken); + var task = FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, outerString, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else @@ -1708,10 +1708,10 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G /// /// Thrown when fails to make API call /// Required UUID String - /// Input string as post body (optional) + /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, OuterString outerString = default, System.Threading.CancellationToken cancellationToken = default) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1733,7 +1733,7 @@ public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(G if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.QueryParameters.Add(Org.OpenAPITools.Client.ClientUtils.ParameterToMultiMap("", "required_string_uuid", requiredStringUuid)); - localVarRequestOptions.Data = body; + localVarRequestOptions.Data = outerString; // make the HTTP request diff --git a/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex b/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex index b54d84a44538..2359d0c439fd 100644 --- a/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex +++ b/samples/client/petstore/elixir/lib/openapi_petstore/api/fake.ex @@ -269,7 +269,7 @@ defmodule OpenapiPetstore.Api.Fake do - `connection` (OpenapiPetstore.Connection): Connection to server - `opts` (keyword): Optional parameters - - `:body` (String.t): Input string as post body + - `:body` (OuterString): Input string as post body ### Returns diff --git a/samples/client/petstore/go/go-petstore/api_fake.go b/samples/client/petstore/go/go-petstore/api_fake.go index 48de6702cee6..f6003b7bfd70 100644 --- a/samples/client/petstore/go/go-petstore/api_fake.go +++ b/samples/client/petstore/go/go-petstore/api_fake.go @@ -639,11 +639,11 @@ func (a *FakeAPIService) FakeOuterNumberSerializeExecute(r ApiFakeOuterNumberSer type ApiFakeOuterStringSerializeRequest struct { ctx context.Context ApiService FakeAPI - body *string + body *OuterString } // Input string as post body -func (r ApiFakeOuterStringSerializeRequest) Body(body string) ApiFakeOuterStringSerializeRequest { +func (r ApiFakeOuterStringSerializeRequest) Body(body OuterString) ApiFakeOuterStringSerializeRequest { r.body = &body return r } diff --git a/samples/client/petstore/go/go-petstore/docs/FakeAPI.md b/samples/client/petstore/go/go-petstore/docs/FakeAPI.md index a64980f5897b..1f7e6aba8d92 100644 --- a/samples/client/petstore/go/go-petstore/docs/FakeAPI.md +++ b/samples/client/petstore/go/go-petstore/docs/FakeAPI.md @@ -304,7 +304,7 @@ import ( ) func main() { - body := "body_example" // string | Input string as post body (optional) + body := TODO // OuterString | Input string as post body (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -329,7 +329,7 @@ Other parameters are passed through a pointer to a apiFakeOuterStringSerializeRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string** | Input string as post body | + **body** | [**OuterString**](OuterString.md) | Input string as post body | ### Return type diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs index e12f7dc61e60..f314e7c5082b 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/API/Fake.hs @@ -190,7 +190,7 @@ fakeOuterStringSerialize _ _ = data FakeOuterStringSerialize -- | /Body Param/ "body" - Input string as post body -instance HasBodyParam FakeOuterStringSerialize BodyText +instance HasBodyParam FakeOuterStringSerialize OuterString -- | @*/*@ instance MimeType mtype => Consumes FakeOuterStringSerialize mtype diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs index 1f120a7c2fab..c9e0070c802c 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs @@ -82,9 +82,6 @@ newtype BodyBool = BodyBool { unBodyBool :: Bool } deriving (P.Eq, P.Show, A.ToJ -- ** BodyDouble newtype BodyDouble = BodyDouble { unBodyDouble :: Double } deriving (P.Eq, P.Show, A.ToJSON) --- ** BodyText -newtype BodyText = BodyText { unBodyText :: Text } deriving (P.Eq, P.Show, A.ToJSON) - -- ** BooleanGroup newtype BooleanGroup = BooleanGroup { unBooleanGroup :: Bool } deriving (P.Eq, P.Show) diff --git a/samples/client/petstore/java-helidon-client/v3/mp/docs/FakeApi.md b/samples/client/petstore/java-helidon-client/v3/mp/docs/FakeApi.md index 4cdd475689dd..e5279e83bfcd 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/docs/FakeApi.md +++ b/samples/client/petstore/java-helidon-client/v3/mp/docs/FakeApi.md @@ -233,7 +233,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -244,7 +244,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/api/FakeApi.java index 51d0b283badb..3d3899cd45d8 100644 --- a/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java-helidon-client/v3/mp/src/main/java/org/openapitools/client/api/FakeApi.java @@ -37,6 +37,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -94,7 +95,7 @@ public interface FakeApi { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(String body) throws ApiException, ProcessingException; + String fakeOuterStringSerialize(OuterString outerString) throws ApiException, ProcessingException; @POST @Path("/property/enum-int") diff --git a/samples/client/petstore/java-helidon-client/v3/se/docs/FakeApi.md b/samples/client/petstore/java-helidon-client/v3/se/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/docs/FakeApi.md +++ b/samples/client/petstore/java-helidon-client/v3/se/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApi.java index bb8217985809..df6fb3400cb5 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApi.java @@ -27,6 +27,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -61,7 +62,7 @@ public interface FakeApi { ApiResponse fakeOuterNumberSerialize(BigDecimal body); - ApiResponse fakeOuterStringSerialize(String body); + ApiResponse fakeOuterStringSerialize(OuterString outerString); ApiResponse fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty); diff --git a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java index c66e825ebc05..15692861c2e8 100644 --- a/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java-helidon-client/v3/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -43,6 +43,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -326,19 +327,19 @@ protected ApiResponse fakeOuterNumberSerializeSubmit(WebClientReques } @Override - public ApiResponse fakeOuterStringSerialize(String body) { - WebClientRequestBuilder webClientRequestBuilder = fakeOuterStringSerializeRequestBuilder(body); - return fakeOuterStringSerializeSubmit(webClientRequestBuilder, body); + public ApiResponse fakeOuterStringSerialize(OuterString outerString) { + WebClientRequestBuilder webClientRequestBuilder = fakeOuterStringSerializeRequestBuilder(outerString); + return fakeOuterStringSerializeSubmit(webClientRequestBuilder, outerString); } /** * Creates a {@code WebClientRequestBuilder} for the fakeOuterStringSerialize operation. * Optional customization point for subclasses. * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return WebClientRequestBuilder for fakeOuterStringSerialize */ - protected WebClientRequestBuilder fakeOuterStringSerializeRequestBuilder(String body) { + protected WebClientRequestBuilder fakeOuterStringSerializeRequestBuilder(OuterString outerString) { WebClientRequestBuilder webClientRequestBuilder = apiClient.webClient() .method("POST"); @@ -354,11 +355,11 @@ protected WebClientRequestBuilder fakeOuterStringSerializeRequestBuilder(String * Optional customization point for subclasses. * * @param webClientRequestBuilder the request builder to use for submitting the request - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return {@code ApiResponse} for the submitted request */ - protected ApiResponse fakeOuterStringSerializeSubmit(WebClientRequestBuilder webClientRequestBuilder, String body) { - Single webClientResponse = webClientRequestBuilder.submit(body); + protected ApiResponse fakeOuterStringSerializeSubmit(WebClientRequestBuilder webClientRequestBuilder, OuterString outerString) { + Single webClientResponse = webClientRequestBuilder.submit(outerString); return ApiResponse.create(RESPONSE_TYPE_fakeOuterStringSerialize, webClientResponse); } diff --git a/samples/client/petstore/java-helidon-client/v4/mp/docs/FakeApi.md b/samples/client/petstore/java-helidon-client/v4/mp/docs/FakeApi.md index 4cdd475689dd..e5279e83bfcd 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/docs/FakeApi.md +++ b/samples/client/petstore/java-helidon-client/v4/mp/docs/FakeApi.md @@ -233,7 +233,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -244,7 +244,7 @@ Test serialization of outer string types | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/api/FakeApi.java index 56fbf7b872e1..1af288521776 100644 --- a/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java-helidon-client/v4/mp/src/main/java/org/openapitools/client/api/FakeApi.java @@ -38,6 +38,7 @@ import java.util.Optional; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -95,7 +96,7 @@ public interface FakeApi { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(String body) throws ApiException, ProcessingException; + String fakeOuterStringSerialize(OuterString outerString) throws ApiException, ProcessingException; @POST @Path("/property/enum-int") diff --git a/samples/client/petstore/java-helidon-client/v4/se/docs/FakeApi.md b/samples/client/petstore/java-helidon-client/v4/se/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/docs/FakeApi.md +++ b/samples/client/petstore/java-helidon-client/v4/se/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApi.java index 18faf4da0d8e..2fe9de97c83e 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApi.java @@ -28,6 +28,7 @@ import java.util.Optional; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -62,7 +63,7 @@ public interface FakeApi { ApiResponse fakeOuterNumberSerialize(BigDecimal body); - ApiResponse fakeOuterStringSerialize(String body); + ApiResponse fakeOuterStringSerialize(OuterString outerString); ApiResponse fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty); diff --git a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 672f90177814..453cf2e6766e 100644 --- a/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java-helidon-client/v4/se/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -44,6 +44,7 @@ import java.util.Optional; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -328,19 +329,19 @@ protected ApiResponse fakeOuterNumberSerializeSubmit(HttpClientReque } @Override - public ApiResponse fakeOuterStringSerialize(String body) { - HttpClientRequest webClientRequestBuilder = fakeOuterStringSerializeRequestBuilder(body); - return fakeOuterStringSerializeSubmit(webClientRequestBuilder, body); + public ApiResponse fakeOuterStringSerialize(OuterString outerString) { + HttpClientRequest webClientRequestBuilder = fakeOuterStringSerializeRequestBuilder(outerString); + return fakeOuterStringSerializeSubmit(webClientRequestBuilder, outerString); } /** * Creates a {@code WebClientRequestBuilder} for the fakeOuterStringSerialize operation. * Optional customization point for subclasses. * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return HttpClientRequest for fakeOuterStringSerialize */ - protected HttpClientRequest fakeOuterStringSerializeRequestBuilder(String body) { + protected HttpClientRequest fakeOuterStringSerializeRequestBuilder(OuterString outerString) { HttpClientRequest webClientRequestBuilder = apiClient.webClient() .method(Method.POST); @@ -356,11 +357,11 @@ protected HttpClientRequest fakeOuterStringSerializeRequestBuilder(String body) * Optional customization point for subclasses. * * @param webClientRequestBuilder the request builder to use for submitting the request - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return {@code ApiResponse} for the submitted request */ - protected ApiResponse fakeOuterStringSerializeSubmit(HttpClientRequest webClientRequestBuilder, String body) { - HttpClientResponse webClientResponse = webClientRequestBuilder.submit(body); + protected ApiResponse fakeOuterStringSerializeSubmit(HttpClientRequest webClientRequestBuilder, OuterString outerString) { + HttpClientResponse webClientResponse = webClientRequestBuilder.submit(outerString); return ApiResponse.create(RESPONSE_TYPE_fakeOuterStringSerialize, webClientResponse); } diff --git a/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md b/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md index 50260b878f48..e1ad9c4749c0 100644 --- a/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md +++ b/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md @@ -160,7 +160,7 @@ Test serialization of outer string types ### Parameters | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **_body** | `String`| Input string as post body | [optional parameter] | +| **_body** | [**OuterString**](OuterString.md)| Input string as post body | [optional parameter] | ### Return type diff --git a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java index 0db4b67caf27..370cd823ece8 100644 --- a/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/java-micronaut-client/src/main/java/org/openapitools/api/FakeApi.java @@ -24,6 +24,7 @@ import org.openapitools.model.ModelClient; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import javax.annotation.Generated; @@ -94,7 +95,7 @@ Mono fakeOuterNumberSerialize( @Post(uri="/fake/outer/string") Mono fakeOuterStringSerialize( - @Body @Nullable String _body + @Body @Nullable @Valid OuterString _body ); /** diff --git a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md +++ b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java index e6aa35366b5e..575bea02d178 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -32,6 +32,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -478,25 +479,25 @@ public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { - return this.fakeOuterStringSerialize(body, Collections.emptyMap()); + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws ApiException { + return this.fakeOuterStringSerialize(outerString, Collections.emptyMap()); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param additionalHeaders additionalHeaders for this call * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map additionalHeaders) throws ApiException { - Object localVarPostBody = body; + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, Map additionalHeaders) throws ApiException { + Object localVarPostBody = outerString; // create path and map variables String localVarPath = "/fake/outer/string"; diff --git a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/api/FakeApi.java index 430c85882cb7..58d065389d8b 100644 --- a/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign-hc5/src/main/java/org/openapitools/client/api/FakeApi.java @@ -16,6 +16,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -259,7 +260,7 @@ public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String */ @RequestLine("POST /fake/outer/string") @@ -267,13 +268,13 @@ public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final "Content-Type: application/json", "Accept: */*", }) - String fakeOuterStringSerialize(@javax.annotation.Nullable String body); + String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString); /** * * Similar to fakeOuterStringSerialize but it also returns the http response headers . * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("POST /fake/outer/string") @@ -281,7 +282,7 @@ public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body); + ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString); diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java index 0b7098e2e455..90f600b1c8fe 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java @@ -11,6 +11,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -149,7 +150,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - String fakeOuterStringSerialize(@javax.annotation.Nullable String body); + String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body); /** * @@ -163,7 +164,7 @@ public interface FakeApi extends ApiClient.Api { "Content-Type: */*", "Accept: */*", }) - ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body); + ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString body); diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java index 430c85882cb7..58d065389d8b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/FakeApi.java @@ -16,6 +16,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -259,7 +260,7 @@ public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String */ @RequestLine("POST /fake/outer/string") @@ -267,13 +268,13 @@ public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final "Content-Type: application/json", "Accept: */*", }) - String fakeOuterStringSerialize(@javax.annotation.Nullable String body); + String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString); /** * * Similar to fakeOuterStringSerialize but it also returns the http response headers . * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("POST /fake/outer/string") @@ -281,7 +282,7 @@ public FakeHttpSignatureTestQueryParams query1(@javax.annotation.Nullable final "Content-Type: application/json", "Accept: */*", }) - ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body); + ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString); diff --git a/samples/client/petstore/java/google-api-client/docs/FakeApi.md b/samples/client/petstore/java/google-api-client/docs/FakeApi.md index 627366e41db3..82927b3cfe17 100644 --- a/samples/client/petstore/java/google-api-client/docs/FakeApi.md +++ b/samples/client/petstore/java/google-api-client/docs/FakeApi.md @@ -308,7 +308,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -328,7 +328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java index 7ac7c4d4172a..a7a9d3fde5a4 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/FakeApi.java @@ -9,6 +9,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -394,7 +395,7 @@ public HttpResponse fakeOuterNumberSerializeForHttpResponse(@javax.annotation.Nu * @return String * @throws IOException if an error occurs while attempting to invoke the API **/ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws IOException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body) throws IOException { HttpResponse response = fakeOuterStringSerializeForHttpResponse(body); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); @@ -407,13 +408,13 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t * @return String * @throws IOException if an error occurs while attempting to invoke the API **/ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map params) throws IOException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body, Map params) throws IOException { HttpResponse response = fakeOuterStringSerializeForHttpResponse(body, params); TypeReference typeRef = new TypeReference() {}; return apiClient.getObjectMapper().readValue(response.getContent(), typeRef); } - public HttpResponse fakeOuterStringSerializeForHttpResponse(@javax.annotation.Nullable String body) throws IOException { + public HttpResponse fakeOuterStringSerializeForHttpResponse(@javax.annotation.Nullable OuterString body) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string"); @@ -439,7 +440,7 @@ apiClient.new JacksonJsonHttpContent(null) : return httpRequest.execute(); } - public HttpResponse fakeOuterStringSerializeForHttpResponse(@javax.annotation.Nullable String body, Map params) throws IOException { + public HttpResponse fakeOuterStringSerializeForHttpResponse(@javax.annotation.Nullable OuterString body, Map params) throws IOException { UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/fake/outer/string"); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md index d21432dbf3e4..3dada1a20ecb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md @@ -305,7 +305,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -325,7 +325,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java index fb6eed93ccd7..67c9d07e901f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/api/FakeApi.java @@ -15,6 +15,7 @@ import java.time.LocalDate; import java.time.LocalDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -222,7 +223,7 @@ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annot 200 Output string - */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); } @@ -239,7 +240,7 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 84167f65462a..c7d3197b3d5f 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -305,7 +305,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -325,7 +325,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 3266a2f65b41..1acde6cc659c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -15,6 +15,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -222,7 +223,7 @@ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annot 200 Output string - */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body) throws ApiException { return fakeOuterStringSerializeWithHttpInfo(body).getData(); } @@ -239,7 +240,7 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString body) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType(); GenericType localVarReturnType = new GenericType() {}; diff --git a/samples/client/petstore/java/jersey3/docs/FakeApi.md b/samples/client/petstore/java/jersey3/docs/FakeApi.md index 7d45cd6a51b8..6f3899a3d6d1 100644 --- a/samples/client/petstore/java/jersey3/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey3/docs/FakeApi.md @@ -283,7 +283,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -305,9 +305,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -325,7 +325,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java index 3e25e1279fa5..dd46c942c901 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/api/FakeApi.java @@ -17,6 +17,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -212,7 +213,7 @@ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@jakarta.ann /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws ApiException if fails to make API call * @http.response.details @@ -222,14 +223,14 @@ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@jakarta.ann 200 Output string - */ - public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws ApiException { - return fakeOuterStringSerializeWithHttpInfo(body).getData(); + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable OuterString outerString) throws ApiException { + return fakeOuterStringSerializeWithHttpInfo(outerString).getData(); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details @@ -239,11 +240,11 @@ public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterString outerString) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("FakeApi.fakeOuterStringSerialize", "/fake/outer/string", "POST", new ArrayList<>(), body, + return apiClient.invokeAPI("FakeApi.fakeOuterStringSerialize", "/fake/outer/string", "POST", new ArrayList<>(), outerString, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, null, localVarReturnType, false); } diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/docs/FakeApi.md b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/docs/FakeApi.md index 02df4858d16b..72b9ac4ef2ba 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/docs/FakeApi.md +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/docs/FakeApi.md @@ -421,7 +421,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -443,9 +443,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -463,7 +463,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/api/FakeApi.java index a9be02e311b2..890a1a2dc2ca 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0-jackson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -23,6 +23,7 @@ import org.openapitools.client.model.HealthCheckResult; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -99,7 +100,7 @@ public interface FakeApi { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(String body) throws ApiException, ProcessingException; + String fakeOuterStringSerialize(OuterString outerString) throws ApiException, ProcessingException; @POST @Path("/property/enum-int") diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/docs/FakeApi.md b/samples/client/petstore/java/microprofile-rest-client-3.0/docs/FakeApi.md index 02df4858d16b..72b9ac4ef2ba 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/docs/FakeApi.md +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/docs/FakeApi.md @@ -421,7 +421,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -443,9 +443,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -463,7 +463,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/api/FakeApi.java index a9be02e311b2..890a1a2dc2ca 100644 --- a/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/microprofile-rest-client-3.0/src/main/java/org/openapitools/client/api/FakeApi.java @@ -23,6 +23,7 @@ import org.openapitools.client.model.HealthCheckResult; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -99,7 +100,7 @@ public interface FakeApi { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(String body) throws ApiException, ProcessingException; + String fakeOuterStringSerialize(OuterString outerString) throws ApiException, ProcessingException; @POST @Path("/property/enum-int") diff --git a/samples/client/petstore/java/microprofile-rest-client/docs/FakeApi.md b/samples/client/petstore/java/microprofile-rest-client/docs/FakeApi.md index 02df4858d16b..72b9ac4ef2ba 100644 --- a/samples/client/petstore/java/microprofile-rest-client/docs/FakeApi.md +++ b/samples/client/petstore/java/microprofile-rest-client/docs/FakeApi.md @@ -421,7 +421,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -443,9 +443,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -463,7 +463,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/api/FakeApi.java index 4736dcaaf122..bc1e35efc833 100644 --- a/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/microprofile-rest-client/src/main/java/org/openapitools/client/api/FakeApi.java @@ -23,6 +23,7 @@ import org.openapitools.client.model.HealthCheckResult; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -99,7 +100,7 @@ public interface FakeApi { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(String body) throws ApiException, ProcessingException; + String fakeOuterStringSerialize(OuterString outerString) throws ApiException, ProcessingException; @POST @Path("/property/enum-int") diff --git a/samples/client/petstore/java/native-async/docs/FakeApi.md b/samples/client/petstore/java/native-async/docs/FakeApi.md index e10d657aaa82..be5022633ce3 100644 --- a/samples/client/petstore/java/native-async/docs/FakeApi.md +++ b/samples/client/petstore/java/native-async/docs/FakeApi.md @@ -744,7 +744,7 @@ No authorization required ## fakeOuterStringSerialize -> CompletableFuture fakeOuterStringSerialize(body) +> CompletableFuture fakeOuterStringSerialize(outerString) @@ -767,9 +767,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - CompletableFuture result = apiInstance.fakeOuterStringSerialize(body); + CompletableFuture result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result.get()); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -787,7 +787,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type @@ -810,7 +810,7 @@ No authorization required ## fakeOuterStringSerializeWithHttpInfo -> CompletableFuture> fakeOuterStringSerialize fakeOuterStringSerializeWithHttpInfo(body) +> CompletableFuture> fakeOuterStringSerialize fakeOuterStringSerializeWithHttpInfo(outerString) @@ -834,9 +834,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - CompletableFuture> response = apiInstance.fakeOuterStringSerializeWithHttpInfo(body); + CompletableFuture> response = apiInstance.fakeOuterStringSerializeWithHttpInfo(outerString); System.out.println("Status code: " + response.get().getStatusCode()); System.out.println("Response headers: " + response.get().getHeaders()); System.out.println("Response body: " + response.get().getData()); @@ -863,7 +863,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java index f8bf6ea550ef..b24af4fa9fd1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/api/FakeApi.java @@ -28,6 +28,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -806,25 +807,25 @@ private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(@javax.annota /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return CompletableFuture<String> * @throws ApiException if fails to make API call */ - public CompletableFuture fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { - return fakeOuterStringSerialize(body, null); + public CompletableFuture fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws ApiException { + return fakeOuterStringSerialize(outerString, null); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param headers Optional headers to include in the request * @return CompletableFuture<String> * @throws ApiException if fails to make API call */ - public CompletableFuture fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map headers) throws ApiException { + public CompletableFuture fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, Map headers) throws ApiException { try { - return fakeOuterStringSerializeWithHttpInfo(body, headers) + return fakeOuterStringSerializeWithHttpInfo(outerString, headers) .thenApply(ApiResponse::getData); } catch (ApiException e) { @@ -835,25 +836,25 @@ public CompletableFuture fakeOuterStringSerialize(@javax.annotation.Null /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return CompletableFuture<ApiResponse<String>> * @throws ApiException if fails to make API call */ - public CompletableFuture> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { - return fakeOuterStringSerializeWithHttpInfo(body, null); + public CompletableFuture> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws ApiException { + return fakeOuterStringSerializeWithHttpInfo(outerString, null); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param headers Optional headers to include in the request * @return CompletableFuture<ApiResponse<String>> * @throws ApiException if fails to make API call */ - public CompletableFuture> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body, Map headers) throws ApiException { + public CompletableFuture> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString, Map headers) throws ApiException { try { - HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body, headers); + HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(outerString, headers); return memberVarHttpClient.sendAsync( localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofInputStream()).thenComposeAsync(localVarResponse -> { @@ -903,7 +904,7 @@ public CompletableFuture> fakeOuterStringSerializeWithHttpIn } } - private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable String body, Map headers) throws ApiException { + private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable OuterString outerString, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -914,7 +915,7 @@ private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annota localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "*/*"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofString(body)); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofString(outerString)); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } diff --git a/samples/client/petstore/java/native/docs/FakeApi.md b/samples/client/petstore/java/native/docs/FakeApi.md index f9dd65ba4ec9..a472869ba1c2 100644 --- a/samples/client/petstore/java/native/docs/FakeApi.md +++ b/samples/client/petstore/java/native/docs/FakeApi.md @@ -699,7 +699,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -721,9 +721,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -741,7 +741,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type @@ -764,7 +764,7 @@ No authorization required ## fakeOuterStringSerializeWithHttpInfo -> ApiResponse fakeOuterStringSerialize fakeOuterStringSerializeWithHttpInfo(body) +> ApiResponse fakeOuterStringSerialize fakeOuterStringSerializeWithHttpInfo(outerString) @@ -787,9 +787,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - ApiResponse response = apiInstance.fakeOuterStringSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.fakeOuterStringSerializeWithHttpInfo(outerString); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); @@ -809,7 +809,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java index 3d86e3ca616e..fbad9dac878a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/api/FakeApi.java @@ -28,6 +28,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -758,48 +759,48 @@ private HttpRequest.Builder fakeOuterNumberSerializeRequestBuilder(@javax.annota /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { - return fakeOuterStringSerialize(body, null); + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws ApiException { + return fakeOuterStringSerialize(outerString, null); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param headers Optional headers to include in the request * @return String * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body, Map headers) throws ApiException { - ApiResponse localVarResponse = fakeOuterStringSerializeWithHttpInfo(body, headers); + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, Map headers) throws ApiException { + ApiResponse localVarResponse = fakeOuterStringSerializeWithHttpInfo(outerString, headers); return localVarResponse.getData(); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { - return fakeOuterStringSerializeWithHttpInfo(body, null); + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws ApiException { + return fakeOuterStringSerializeWithHttpInfo(outerString, null); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param headers Optional headers to include in the request * @return ApiResponse<String> * @throws ApiException if fails to make API call */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(body, headers); + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString, Map headers) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = fakeOuterStringSerializeRequestBuilder(outerString, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -846,7 +847,7 @@ public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotatio } } - private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable String body, Map headers) throws ApiException { + private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annotation.Nullable OuterString outerString, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -857,7 +858,7 @@ private HttpRequest.Builder fakeOuterStringSerializeRequestBuilder(@javax.annota localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "*/*"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofString(body)); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofString(outerString)); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md index 98f0b0098b8b..552235f3e6a1 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md @@ -290,7 +290,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -309,7 +309,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java index e9806568a562..8c5bdd9e9c3a 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/java/org/openapitools/client/api/FakeApi.java @@ -37,6 +37,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -618,7 +619,7 @@ public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable Big 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable OuterString body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -671,7 +672,7 @@ public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable OuterString body, final ApiCallback _callback) throws ApiException { return fakeOuterStringSerializeCall(body, _callback); } @@ -689,7 +690,7 @@ private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotatio 200 Output string - */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body) throws ApiException { ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -707,7 +708,7 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString body) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -727,7 +728,7 @@ public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotatio 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable OuterString body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md index 98f0b0098b8b..552235f3e6a1 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md @@ -290,7 +290,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -309,7 +309,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java index cb2d2e706a22..8b06a0f239d3 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/FakeApi.java @@ -34,6 +34,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -583,7 +584,7 @@ public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable Big 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable OuterString body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -628,7 +629,7 @@ public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable OuterString body, final ApiCallback _callback) throws ApiException { return fakeOuterStringSerializeCall(body, _callback); } @@ -646,7 +647,7 @@ private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotatio 200 Output string - */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body) throws ApiException { ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body); return localVarResp.getData(); } @@ -664,7 +665,7 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString body) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -684,7 +685,7 @@ public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotatio 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable OuterString body, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md index eb2f76491a83..29fbca3fb340 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md @@ -274,7 +274,7 @@ No authorization required # **fakeOuterStringSerialize** -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -295,9 +295,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -314,7 +314,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java index 7055253c1a0b..648b1b14c90e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -39,6 +39,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -570,7 +571,7 @@ public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable Big } /** * Build call for fakeOuterStringSerialize - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -581,7 +582,7 @@ public okhttp3.Call fakeOuterNumberSerializeAsync(@javax.annotation.Nullable Big 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable OuterString outerString, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -595,7 +596,7 @@ public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable Stri basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = outerString; // create path and map variables String localVarPath = "/fake/outer/string"; @@ -627,15 +628,15 @@ public okhttp3.Call fakeOuterStringSerializeCall(@javax.annotation.Nullable Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { - return fakeOuterStringSerializeCall(body, _callback); + private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotation.Nullable OuterString outerString, final ApiCallback _callback) throws ApiException { + return fakeOuterStringSerializeCall(outerString, _callback); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -645,15 +646,15 @@ private okhttp3.Call fakeOuterStringSerializeValidateBeforeCall(@javax.annotatio 200 Output string - */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { - ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(body); + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws ApiException { + ApiResponse localVarResp = fakeOuterStringSerializeWithHttpInfo(outerString); return localVarResp.getData(); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -663,8 +664,8 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { - okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, null); + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws ApiException { + okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(outerString, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -672,7 +673,7 @@ public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotatio /** * (asynchronously) * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -683,9 +684,9 @@ public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotatio 200 Output string - */ - public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable String body, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fakeOuterStringSerializeAsync(@javax.annotation.Nullable OuterString outerString, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(body, _callback); + okhttp3.Call localVarCall = fakeOuterStringSerializeValidateBeforeCall(outerString, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md b/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md index 969883dc5140..9693432d1ac8 100644 --- a/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md @@ -211,7 +211,7 @@ api.fakeOuterStringSerialize().execute(r -> r.prettyPeek()); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java index f7277688dfad..832e3dbc4be6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/api/FakeApi.java @@ -20,6 +20,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -471,10 +472,10 @@ public String executeAs(Function handler) { } /** - * @param body (String) Input string as post body (optional) + * @param body (OuterString) Input string as post body (optional) * @return operation */ - public FakeOuterStringSerializeOper body(@javax.annotation.Nullable String body) { + public FakeOuterStringSerializeOper body(@javax.annotation.Nullable OuterString body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/rest-assured/docs/FakeApi.md b/samples/client/petstore/java/rest-assured/docs/FakeApi.md index 969883dc5140..9693432d1ac8 100644 --- a/samples/client/petstore/java/rest-assured/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured/docs/FakeApi.md @@ -211,7 +211,7 @@ api.fakeOuterStringSerialize().execute(r -> r.prettyPeek()); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java index 3f1783f8e1a7..5fc8727079ce 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/FakeApi.java @@ -21,6 +21,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -472,10 +473,10 @@ public String executeAs(Function handler) { } /** - * @param body (String) Input string as post body (optional) + * @param body (OuterString) Input string as post body (optional) * @return operation */ - public FakeOuterStringSerializeOper body(@javax.annotation.Nullable String body) { + public FakeOuterStringSerializeOper body(@javax.annotation.Nullable OuterString body) { reqSpec.setBody(body); return this; } diff --git a/samples/client/petstore/java/restclient-swagger2/docs/FakeApi.md b/samples/client/petstore/java/restclient-swagger2/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/restclient-swagger2/docs/FakeApi.md +++ b/samples/client/petstore/java/restclient-swagger2/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java index 6d06ece3262b..e35c54c0b8fb 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -487,12 +488,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap<>(); @@ -520,38 +521,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).body(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/docs/FakeApi.md b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/docs/FakeApi.md +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java index 200398e4378e..b6b6d6039af0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -578,12 +579,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap<>(); @@ -611,38 +612,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).body(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/docs/FakeApi.md b/samples/client/petstore/java/restclient-useSingleRequestParameter/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/docs/FakeApi.md +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java index a780bb4bb940..fb47589960a0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -523,12 +524,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap<>(); @@ -556,38 +557,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).body(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/restclient/docs/FakeApi.md b/samples/client/petstore/java/restclient/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/restclient/docs/FakeApi.md +++ b/samples/client/petstore/java/restclient/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java index 6d06ece3262b..e35c54c0b8fb 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -487,12 +488,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap<>(); @@ -520,38 +521,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public String fakeOuterStringSerialize(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).body(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).body(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws RestClientResponseException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference<>() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws RestClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws RestClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterString outerString) throws RestClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/resteasy/docs/FakeApi.md b/samples/client/petstore/java/resteasy/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/resteasy/docs/FakeApi.md +++ b/samples/client/petstore/java/resteasy/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java index 6aa5fd2a3b4f..325ffbeaa375 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/FakeApi.java @@ -19,6 +19,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -286,12 +287,12 @@ public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return a {@code String} * @throws ApiException if fails to make API call */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { - Object localVarPostBody = body; + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws ApiException { + Object localVarPostBody = outerString; // create path and map variables String localVarPath = "/fake/outer/string".replaceAll("\\{format\\}","json"); diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java index d1d42b7090ae..24f7304a9284 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java @@ -15,6 +15,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -317,24 +318,24 @@ public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecima * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientException { - return fakeOuterStringSerializeWithHttpInfo(body).getBody(); + public String fakeOuterStringSerialize(OuterString outerString) throws RestClientException { + return fakeOuterStringSerializeWithHttpInfo(outerString).getBody(); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException { - Object localVarPostBody = body; + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(OuterString outerString) throws RestClientException { + Object localVarPostBody = outerString; final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); diff --git a/samples/client/petstore/java/resttemplate/docs/FakeApi.md b/samples/client/petstore/java/resttemplate/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/resttemplate/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java index d1d42b7090ae..24f7304a9284 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java @@ -15,6 +15,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -317,24 +318,24 @@ public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecima * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientException { - return fakeOuterStringSerializeWithHttpInfo(body).getBody(); + public String fakeOuterStringSerialize(OuterString outerString) throws RestClientException { + return fakeOuterStringSerializeWithHttpInfo(outerString).getBody(); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException { - Object localVarPostBody = body; + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(OuterString outerString) throws RestClientException { + Object localVarPostBody = outerString; final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); diff --git a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md index 5722d2acb576..0c9bda90555a 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md @@ -308,7 +308,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -328,7 +328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java index 43c1db6acd00..72a589789ad7 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/api/FakeApi.java @@ -16,6 +16,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -86,7 +87,7 @@ CompletionStage> fakeOuterNumberSerialize( */ @POST("fake/outer/string") CompletionStage> fakeOuterStringSerialize( - @retrofit2.http.Body String body + @retrofit2.http.Body OuterString body ); /** diff --git a/samples/client/petstore/java/retrofit2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2/docs/FakeApi.md index 5722d2acb576..0c9bda90555a 100644 --- a/samples/client/petstore/java/retrofit2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2/docs/FakeApi.md @@ -308,7 +308,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -328,7 +328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java index e00e4eb6812e..437cbdc653c6 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -16,6 +16,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -81,7 +82,7 @@ Call fakeOuterNumberSerialize( */ @POST("fake/outer/string") Call fakeOuterStringSerialize( - @retrofit2.http.Body String body + @retrofit2.http.Body OuterString body ); /** diff --git a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md index 5722d2acb576..0c9bda90555a 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md @@ -308,7 +308,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -328,7 +328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java index 6347d08144f2..34b9a7dd9c08 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -17,6 +17,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -82,7 +83,7 @@ Observable fakeOuterNumberSerialize( */ @POST("fake/outer/string") Observable fakeOuterStringSerialize( - @retrofit2.http.Body String body + @retrofit2.http.Body OuterString body ); /** diff --git a/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md index 5722d2acb576..0c9bda90555a 100644 --- a/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md @@ -308,7 +308,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -328,7 +328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java index 0cabd8162440..d68bc73c0c00 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/api/FakeApi.java @@ -17,6 +17,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -82,7 +83,7 @@ Observable fakeOuterNumberSerialize( */ @POST("fake/outer/string") Observable fakeOuterStringSerialize( - @retrofit2.http.Body String body + @retrofit2.http.Body OuterString body ); /** diff --git a/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md b/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md index efb255c14f26..b9a32e42ea0b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md @@ -308,7 +308,7 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString body = new OuterString(); // OuterString | Input string as post body try { String result = apiInstance.fakeOuterStringSerialize(body); System.out.println(result); @@ -328,7 +328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **body** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java index 298ac0529b7b..40d17ad7256c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApi.java @@ -8,6 +8,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; import io.vertx.core.AsyncResult; @@ -34,9 +35,9 @@ public interface FakeApi { void fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterStringSerialize(@javax.annotation.Nullable String body, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body, Handler> handler); - void fakeOuterStringSerialize(@javax.annotation.Nullable String body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable OuterString body, ApiClient.AuthInfo authInfo, Handler> handler); void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass body, Handler> handler); diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 2d888d3163d4..ac13fa6ef1f4 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -7,6 +7,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; @@ -228,7 +229,7 @@ public void fakeOuterNumberSerialize(BigDecimal body, ApiClient.AuthInfo authInf * @param body Input string as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, Handler> resultHandler) { + public void fakeOuterStringSerialize(OuterString body, Handler> resultHandler) { fakeOuterStringSerialize(body, null, resultHandler); } @@ -239,7 +240,7 @@ public void fakeOuterStringSerialize(String body, Handler> r * @param authInfo per call authentication override. * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { + public void fakeOuterStringSerialize(OuterString body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { Object localVarBody = body; // create path and map variables diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java index 2e611cea4008..8ada8097a8c8 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java @@ -7,6 +7,7 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.User; import org.openapitools.client.model.XmlItem; import org.openapitools.client.ApiClient; @@ -216,7 +217,7 @@ public Single rxFakeOuterNumberSerialize(BigDecimal body, ApiClient. * @param body Input string as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, Handler> resultHandler) { + public void fakeOuterStringSerialize(OuterString body, Handler> resultHandler) { delegate.fakeOuterStringSerialize(body, resultHandler); } @@ -227,7 +228,7 @@ public void fakeOuterStringSerialize(String body, Handler> r * @param authInfo call specific auth overrides * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { + public void fakeOuterStringSerialize(OuterString body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { delegate.fakeOuterStringSerialize(body, authInfo, resultHandler); } @@ -237,7 +238,7 @@ public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, H * @param body Input string as post body (optional) * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterStringSerialize(String body) { + public Single rxFakeOuterStringSerialize(OuterString body) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> delegate.fakeOuterStringSerialize(body, fut) )); @@ -250,7 +251,7 @@ public Single rxFakeOuterStringSerialize(String body) { * @param authInfo call specific auth overrides * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo) { + public Single rxFakeOuterStringSerialize(OuterString body, ApiClient.AuthInfo authInfo) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> delegate.fakeOuterStringSerialize(body, authInfo, fut) )); diff --git a/samples/client/petstore/java/vertx-supportVertxFuture/docs/FakeApi.md b/samples/client/petstore/java/vertx-supportVertxFuture/docs/FakeApi.md index 22cff7dd2e8a..d61af4783835 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx-supportVertxFuture/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApi.java index b5f109d785f9..f0a918687ccd 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApi.java @@ -13,6 +13,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -122,19 +123,19 @@ default Future fakeOuterNumberSerialize(@javax.annotation.Nullable B return promise.future(); } - void fakeOuterStringSerialize(@javax.annotation.Nullable String body, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, Handler> handler); - default Future fakeOuterStringSerialize(@javax.annotation.Nullable String body){ + default Future fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString){ Promise promise = Promise.promise(); - fakeOuterStringSerialize(body, promise); + fakeOuterStringSerialize(outerString, promise); return promise.future(); } - void fakeOuterStringSerialize(@javax.annotation.Nullable String body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, ApiClient.AuthInfo authInfo, Handler> handler); - default Future fakeOuterStringSerialize(@javax.annotation.Nullable String body, ApiClient.AuthInfo authInfo){ + default Future fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, ApiClient.AuthInfo authInfo){ Promise promise = Promise.promise(); - fakeOuterStringSerialize(body, authInfo, promise); + fakeOuterStringSerialize(outerString, authInfo, promise); return promise.future(); } diff --git a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 4f0e596e5b5e..5faecc3298a0 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -12,6 +12,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -318,22 +319,22 @@ public void fakeOuterNumberSerialize(BigDecimal body, ApiClient.AuthInfo authInf /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, Handler> resultHandler) { - fakeOuterStringSerialize(body, null, resultHandler); + public void fakeOuterStringSerialize(OuterString outerString, Handler> resultHandler) { + fakeOuterStringSerialize(outerString, null, resultHandler); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param authInfo per call authentication override. * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { - Object localVarBody = body; + public void fakeOuterStringSerialize(OuterString outerString, ApiClient.AuthInfo authInfo, Handler> resultHandler) { + Object localVarBody = outerString; // create path and map variables String localVarPath = "/fake/outer/string"; diff --git a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java index 05ca94326c5f..32eaf2d4b344 100644 --- a/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java +++ b/samples/client/petstore/java/vertx-supportVertxFuture/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java @@ -12,6 +12,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -309,46 +310,46 @@ public Single rxFakeOuterNumberSerialize(BigDecimal body, ApiClient. /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, Handler> resultHandler) { - delegate.fakeOuterStringSerialize(body, resultHandler); + public void fakeOuterStringSerialize(OuterString outerString, Handler> resultHandler) { + delegate.fakeOuterStringSerialize(outerString, resultHandler); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param authInfo call specific auth overrides * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { - delegate.fakeOuterStringSerialize(body, authInfo, resultHandler); + public void fakeOuterStringSerialize(OuterString outerString, ApiClient.AuthInfo authInfo, Handler> resultHandler) { + delegate.fakeOuterStringSerialize(outerString, authInfo, resultHandler); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterStringSerialize(String body) { + public Single rxFakeOuterStringSerialize(OuterString outerString) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> - delegate.fakeOuterStringSerialize(body, fut) + delegate.fakeOuterStringSerialize(outerString, fut) )); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param authInfo call specific auth overrides * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo) { + public Single rxFakeOuterStringSerialize(OuterString outerString, ApiClient.AuthInfo authInfo) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> - delegate.fakeOuterStringSerialize(body, authInfo, fut) + delegate.fakeOuterStringSerialize(outerString, authInfo, fut) )); } /** diff --git a/samples/client/petstore/java/vertx/docs/FakeApi.md b/samples/client/petstore/java/vertx/docs/FakeApi.md index 22cff7dd2e8a..d61af4783835 100644 --- a/samples/client/petstore/java/vertx/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java index f3f934b1c703..b4f9df7b57b0 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApi.java @@ -13,6 +13,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -48,9 +49,9 @@ public interface FakeApi { void fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body, ApiClient.AuthInfo authInfo, Handler> handler); - void fakeOuterStringSerialize(@javax.annotation.Nullable String body, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, Handler> handler); - void fakeOuterStringSerialize(@javax.annotation.Nullable String body, ApiClient.AuthInfo authInfo, Handler> handler); + void fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString, ApiClient.AuthInfo authInfo, Handler> handler); void fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty, Handler> handler); diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java index 4f0e596e5b5e..5faecc3298a0 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/FakeApiImpl.java @@ -12,6 +12,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -318,22 +319,22 @@ public void fakeOuterNumberSerialize(BigDecimal body, ApiClient.AuthInfo authInf /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, Handler> resultHandler) { - fakeOuterStringSerialize(body, null, resultHandler); + public void fakeOuterStringSerialize(OuterString outerString, Handler> resultHandler) { + fakeOuterStringSerialize(outerString, null, resultHandler); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param authInfo per call authentication override. * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { - Object localVarBody = body; + public void fakeOuterStringSerialize(OuterString outerString, ApiClient.AuthInfo authInfo, Handler> resultHandler) { + Object localVarBody = outerString; // create path and map variables String localVarPath = "/fake/outer/string"; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java index 05ca94326c5f..32eaf2d4b344 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/FakeApi.java @@ -12,6 +12,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -309,46 +310,46 @@ public Single rxFakeOuterNumberSerialize(BigDecimal body, ApiClient. /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, Handler> resultHandler) { - delegate.fakeOuterStringSerialize(body, resultHandler); + public void fakeOuterStringSerialize(OuterString outerString, Handler> resultHandler) { + delegate.fakeOuterStringSerialize(outerString, resultHandler); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param authInfo call specific auth overrides * @param resultHandler Asynchronous result handler */ - public void fakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo, Handler> resultHandler) { - delegate.fakeOuterStringSerialize(body, authInfo, resultHandler); + public void fakeOuterStringSerialize(OuterString outerString, ApiClient.AuthInfo authInfo, Handler> resultHandler) { + delegate.fakeOuterStringSerialize(outerString, authInfo, resultHandler); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterStringSerialize(String body) { + public Single rxFakeOuterStringSerialize(OuterString outerString) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> - delegate.fakeOuterStringSerialize(body, fut) + delegate.fakeOuterStringSerialize(outerString, fut) )); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @param authInfo call specific auth overrides * @return Asynchronous result handler (RxJava Single) */ - public Single rxFakeOuterStringSerialize(String body, ApiClient.AuthInfo authInfo) { + public Single rxFakeOuterStringSerialize(OuterString outerString, ApiClient.AuthInfo authInfo) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> - delegate.fakeOuterStringSerialize(body, authInfo, fut) + delegate.fakeOuterStringSerialize(outerString, authInfo, fut) )); } /** diff --git a/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md b/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java index 638903a95e0a..6142af4d9874 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -489,12 +490,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable String body) throws WebClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation.Nullable OuterString outerString) throws WebClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap(); @@ -522,38 +523,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@jakarta.annotation * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(@jakarta.annotation.Nullable String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@jakarta.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).bodyToMono(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@jakarta.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable String body) throws WebClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@jakarta.annotation.Nullable OuterString outerString) throws WebClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md b/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java index 1f57df244638..2edc6774f04c 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -489,12 +490,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@javax.annotation.N * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable String body) throws WebClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap(); @@ -522,38 +523,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.N * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).bodyToMono(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable String body) throws WebClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/docs/FakeApi.md b/samples/client/petstore/java/webclient-useSingleRequestParameter/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java index c9a23e127977..e89e484cf117 100644 --- a/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient-useSingleRequestParameter/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -581,12 +582,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@javax.annotation.N * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable String body) throws WebClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap(); @@ -614,38 +615,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.N * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).bodyToMono(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable String body) throws WebClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/java/webclient/docs/FakeApi.md b/samples/client/petstore/java/webclient/docs/FakeApi.md index 37a949ea0508..80bdf69d44d7 100644 --- a/samples/client/petstore/java/webclient/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient/docs/FakeApi.md @@ -420,7 +420,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -442,9 +442,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -462,7 +462,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java index 1f57df244638..2edc6774f04c 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/FakeApi.java @@ -14,6 +14,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterObjectWithEnumProperty; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.Pet; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -489,12 +490,12 @@ public ResponseSpec fakeOuterNumberSerializeWithResponseSpec(@javax.annotation.N * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable String body) throws WebClientResponseException { - Object postBody = body; + private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { + Object postBody = outerString; // create path and map variables final Map pathParams = new HashMap(); @@ -522,38 +523,38 @@ private ResponseSpec fakeOuterStringSerializeRequestCreation(@javax.annotation.N * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return String * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws WebClientResponseException { + public Mono fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).bodyToMono(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).bodyToMono(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseEntity<String> * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws WebClientResponseException { + public Mono> fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return fakeOuterStringSerializeRequestCreation(body).toEntity(localVarReturnType); + return fakeOuterStringSerializeRequestCreation(outerString).toEntity(localVarReturnType); } /** * * Test serialization of outer string types *

200 - Output string - * @param body Input string as post body + * @param outerString Input string as post body * @return ResponseSpec * @throws WebClientResponseException if an error occurs while attempting to invoke the API */ - public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable String body) throws WebClientResponseException { - return fakeOuterStringSerializeRequestCreation(body); + public ResponseSpec fakeOuterStringSerializeWithResponseSpec(@javax.annotation.Nullable OuterString outerString) throws WebClientResponseException { + return fakeOuterStringSerializeRequestCreation(outerString); } /** diff --git a/samples/client/petstore/javascript-apollo/docs/FakeApi.md b/samples/client/petstore/javascript-apollo/docs/FakeApi.md index 02cc9e67cf79..7a8c13bffa4a 100644 --- a/samples/client/petstore/javascript-apollo/docs/FakeApi.md +++ b/samples/client/petstore/javascript-apollo/docs/FakeApi.md @@ -272,7 +272,7 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let opts = { - 'body': "body_example" // String | Input string as post body + 'outerString': "outerString_example" // OuterString | Input string as post body }; apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { if (error) { @@ -288,7 +288,7 @@ apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] + **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/javascript-apollo/src/api/FakeApi.js b/samples/client/petstore/javascript-apollo/src/api/FakeApi.js index 9a542a4cb8db..88b89d76a706 100644 --- a/samples/client/petstore/javascript-apollo/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-apollo/src/api/FakeApi.js @@ -20,6 +20,7 @@ import FileSchemaTestClass from '../model/FileSchemaTestClass'; import HealthCheckResult from '../model/HealthCheckResult'; import OuterComposite from '../model/OuterComposite'; import OuterObjectWithEnumProperty from '../model/OuterObjectWithEnumProperty'; +import OuterString from '../model/OuterString'; import Pet from '../model/Pet'; import TestInlineFreeformAdditionalPropertiesRequest from '../model/TestInlineFreeformAdditionalPropertiesRequest'; import User from '../model/User'; @@ -214,13 +215,13 @@ export default class FakeApi extends ApiClient { /** * Test serialization of outer string types * @param {Object} opts Optional parameters - * @param {String} [body] Input string as post body + * @param {module:model/OuterString} [outerString] Input string as post body * @param requestInit Dynamic configuration. @see {@link https://github.com/apollographql/apollo-server/pull/1277} * @return {Promise} */ async fakeOuterStringSerialize(opts, requestInit) { opts = opts || {}; - let postBody = opts['body']; + let postBody = opts['outerString']; let pathParams = { }; diff --git a/samples/client/petstore/javascript-es6/docs/FakeApi.md b/samples/client/petstore/javascript-es6/docs/FakeApi.md index e8b03a16bb3b..a1ab7eec6e0c 100644 --- a/samples/client/petstore/javascript-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-es6/docs/FakeApi.md @@ -272,7 +272,7 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let opts = { - 'body': "body_example" // String | Input string as post body + 'outerString': "outerString_example" // OuterString | Input string as post body }; apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { if (error) { @@ -288,7 +288,7 @@ apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] + **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-es6/src/api/FakeApi.js index f11f7f4da115..18c5662e6db8 100644 --- a/samples/client/petstore/javascript-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-es6/src/api/FakeApi.js @@ -19,6 +19,7 @@ import FileSchemaTestClass from '../model/FileSchemaTestClass'; import HealthCheckStatus from '../model/HealthCheckStatus'; import OuterComposite from '../model/OuterComposite'; import OuterObjectWithEnumProperty from '../model/OuterObjectWithEnumProperty'; +import OuterString from '../model/OuterString'; import Pet from '../model/Pet'; import TestInlineFreeformAdditionalPropertiesRequest from '../model/TestInlineFreeformAdditionalPropertiesRequest'; import User from '../model/User'; @@ -252,13 +253,13 @@ export default class FakeApi { /** * Test serialization of outer string types * @param {Object} opts Optional parameters - * @param {String} [body] Input string as post body + * @param {module:model/OuterString} [outerString] Input string as post body * @param {module:api/FakeApi~fakeOuterStringSerializeCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link String} */ fakeOuterStringSerialize(opts, callback) { opts = opts || {}; - let postBody = opts['body']; + let postBody = opts['outerString']; let pathParams = { }; diff --git a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md index 35eefd239021..d9ff63f186f1 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md +++ b/samples/client/petstore/javascript-promise-es6/docs/FakeApi.md @@ -267,7 +267,7 @@ import OpenApiPetstore from 'open_api_petstore'; let apiInstance = new OpenApiPetstore.FakeApi(); let opts = { - 'body': "body_example" // String | Input string as post body + 'outerString': "outerString_example" // OuterString | Input string as post body }; apiInstance.fakeOuterStringSerialize(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); @@ -282,7 +282,7 @@ apiInstance.fakeOuterStringSerialize(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] + **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js index 13b37ed3dc7c..5f36aa3b4176 100644 --- a/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js +++ b/samples/client/petstore/javascript-promise-es6/src/api/FakeApi.js @@ -19,6 +19,7 @@ import FileSchemaTestClass from '../model/FileSchemaTestClass'; import HealthCheckResult from '../model/HealthCheckResult'; import OuterComposite from '../model/OuterComposite'; import OuterObjectWithEnumProperty from '../model/OuterObjectWithEnumProperty'; +import OuterString from '../model/OuterString'; import Pet from '../model/Pet'; import TestInlineFreeformAdditionalPropertiesRequest from '../model/TestInlineFreeformAdditionalPropertiesRequest'; import User from '../model/User'; @@ -271,12 +272,12 @@ export default class FakeApi { /** * Test serialization of outer string types * @param {Object} opts Optional parameters - * @param {String} [body] Input string as post body + * @param {module:model/OuterString} [outerString] Input string as post body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response */ fakeOuterStringSerializeWithHttpInfo(opts) { opts = opts || {}; - let postBody = opts['body']; + let postBody = opts['outerString']; let pathParams = { }; @@ -301,7 +302,7 @@ export default class FakeApi { /** * Test serialization of outer string types * @param {Object} opts Optional parameters - * @param {String} opts.body Input string as post body + * @param {module:model/OuterString} opts.outerString Input string as post body * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} */ fakeOuterStringSerialize(opts) { diff --git a/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.ml b/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.ml index 7dd18fe3ceb2..e887ad820db4 100644 --- a/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.ml +++ b/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.ml @@ -135,7 +135,7 @@ let fake_outer_number_serialize ~body () = Cohttp_lwt_unix.Client.call `POST uri ~headers ~body >>= fun (resp, body) -> Request.read_json_body_as (JsonSupport.to_float) resp body -let fake_outer_string_serialize ~body () = +let fake_outer_string_serialize ~outer_string_t () = let open Lwt.Infix in let uri = Request.build_uri "/fake/outer/string" in let headers = Request.default_headers in @@ -148,10 +148,11 @@ let fake_outer_string_serialize ~body () = + Outer_string.to_yojson - body + outer_string_t in Cohttp_lwt_unix.Client.call `POST uri ~headers ~body >>= fun (resp, body) -> Request.read_json_body_as (JsonSupport.to_string) resp body diff --git a/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.mli b/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.mli index 259a66dd29e0..c437822a644c 100644 --- a/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.mli +++ b/samples/client/petstore/ocaml-fake-petstore/src/apis/fake_api.mli @@ -11,7 +11,7 @@ val fake_http_signature_test : pet_t:Pet.t -> ?query_1:string -> ?header_1:strin val fake_outer_boolean_serialize : body:bool -> unit -> bool Lwt.t val fake_outer_composite_serialize : outer_composite_t:Outer_composite.t -> unit -> Outer_composite.t Lwt.t val fake_outer_number_serialize : body:float -> unit -> float Lwt.t -val fake_outer_string_serialize : body:string -> unit -> string Lwt.t +val fake_outer_string_serialize : outer_string_t:Outer_string.t -> unit -> string Lwt.t val fake_property_enum_integer_serialize : outer_object_with_enum_property_t:Outer_object_with_enum_property.t -> Outer_object_with_enum_property.t Lwt.t val test_additional_properties_reference : request_body:(string * Yojson.Safe.t) list -> unit Lwt.t val test_body_with_binary : body:string -> unit Lwt.t diff --git a/samples/client/petstore/perl/docs/FakeApi.md b/samples/client/petstore/perl/docs/FakeApi.md index 440d7f0e5506..b40b9bb7dc59 100644 --- a/samples/client/petstore/perl/docs/FakeApi.md +++ b/samples/client/petstore/perl/docs/FakeApi.md @@ -302,7 +302,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> string fake_outer_string_serialize(body => $body) +> string fake_outer_string_serialize(outer_string => $outer_string) @@ -315,10 +315,10 @@ use WWW::OpenAPIClient::FakeApi; my $api_instance = WWW::OpenAPIClient::FakeApi->new( ); -my $body = WWW::OpenAPIClient::Object::string->new(); # string | Input string as post body +my $outer_string = WWW::OpenAPIClient::Object::OuterString->new(); # OuterString | Input string as post body eval { - my $result = $api_instance->fake_outer_string_serialize(body => $body); + my $result = $api_instance->fake_outer_string_serialize(outer_string => $outer_string); print Dumper($result); }; if ($@) { @@ -330,7 +330,7 @@ if ($@) { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm index d2a79db97cf4..34ce44e39485 100644 --- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm +++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/FakeApi.pm @@ -414,11 +414,11 @@ sub fake_outer_number_serialize { # # # -# @param string $body Input string as post body (optional) +# @param OuterString $outer_string Input string as post body (optional) { my $params = { - 'body' => { - data_type => 'string', + 'outer_string' => { + data_type => 'OuterString', description => 'Input string as post body', required => '0', }, @@ -451,8 +451,8 @@ sub fake_outer_string_serialize { my $_body_data; # body params - if ( exists $args{'body'}) { - $_body_data = $args{'body'}; + if ( exists $args{'outer_string'}) { + $_body_data = $args{'outer_string'}; } # authentication setting, if any diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md index 9e3a212955f2..7376b5f634ba 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/docs/Api/FakeApi.md @@ -480,7 +480,7 @@ No authorization required ## `fakeOuterStringSerialize()` ```php -fakeOuterStringSerialize($body): string +fakeOuterStringSerialize($outer_string): string ``` @@ -500,10 +500,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$body = 'body_example'; // string | Input string as post body +$outer_string = 'outer_string_example'; // \OpenAPI\Client\Model\OuterString | Input string as post body try { - $result = $apiInstance->fakeOuterStringSerialize($body); + $result = $apiInstance->fakeOuterStringSerialize($outer_string); print_r($result); } catch (Exception $e) { echo 'Exception when calling FakeApi->fakeOuterStringSerialize: ', $e->getMessage(), PHP_EOL; @@ -514,7 +514,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **body** | **string**| Input string as post body | [optional] | +| **outer_string** | [**\OpenAPI\Client\Model\OuterString**](../Model/OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php index 9208c30b80d8..f2414314069e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/FakeApi.php @@ -2363,7 +2363,7 @@ public function fakeOuterNumberSerializeRequest( /** * Operation fakeOuterStringSerialize * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws ApiException on non-2xx response or if the response body is not in the expected format @@ -2371,18 +2371,18 @@ public function fakeOuterNumberSerializeRequest( * @return string */ public function fakeOuterStringSerialize( - ?string $body = null, + ?\OpenAPI\Client\Model\OuterString $outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] ): string { - list($response) = $this->fakeOuterStringSerializeWithHttpInfo($body, $contentType); + list($response) = $this->fakeOuterStringSerializeWithHttpInfo($outer_string, $contentType); return $response; } /** * Operation fakeOuterStringSerializeWithHttpInfo * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws ApiException on non-2xx response or if the response body is not in the expected format @@ -2390,11 +2390,11 @@ public function fakeOuterStringSerialize( * @return array of string, HTTP status code, HTTP response headers (array of strings) */ public function fakeOuterStringSerializeWithHttpInfo( - ?string $body = null, + ?\OpenAPI\Client\Model\OuterString $outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] ): array { - $request = $this->fakeOuterStringSerializeRequest($body, $contentType); + $request = $this->fakeOuterStringSerializeRequest($outer_string, $contentType); try { $options = $this->createHttpClientOption(); @@ -2465,18 +2465,18 @@ public function fakeOuterStringSerializeWithHttpInfo( /** * Operation fakeOuterStringSerializeAsync * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws InvalidArgumentException * @return PromiseInterface */ public function fakeOuterStringSerializeAsync( - ?string $body = null, + ?\OpenAPI\Client\Model\OuterString $outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] ): PromiseInterface { - return $this->fakeOuterStringSerializeAsyncWithHttpInfo($body, $contentType) + return $this->fakeOuterStringSerializeAsyncWithHttpInfo($outer_string, $contentType) ->then( function ($response) { return $response[0]; @@ -2487,19 +2487,19 @@ function ($response) { /** * Operation fakeOuterStringSerializeAsyncWithHttpInfo * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws InvalidArgumentException * @return PromiseInterface */ public function fakeOuterStringSerializeAsyncWithHttpInfo( - ?string $body = null, + ?\OpenAPI\Client\Model\OuterString $outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] ): PromiseInterface { $returnType = 'string'; - $request = $this->fakeOuterStringSerializeRequest($body, $contentType); + $request = $this->fakeOuterStringSerializeRequest($outer_string, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2540,14 +2540,14 @@ function ($exception) { /** * Create request for operation 'fakeOuterStringSerialize' * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ public function fakeOuterStringSerializeRequest( - ?string $body = null, + ?\OpenAPI\Client\Model\OuterString $outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0] ): Request { @@ -2572,12 +2572,12 @@ public function fakeOuterStringSerializeRequest( ); // for model (json/xml) - if (isset($body)) { + if (isset($outer_string)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($body)); + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($outer_string)); } else { - $httpBody = $body; + $httpBody = $outer_string; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md index c0414db77f7e..5994b33999aa 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/FakeApi.md @@ -428,7 +428,7 @@ No authorization required ## `fakeOuterStringSerialize()` ```php -fakeOuterStringSerialize($body): string +fakeOuterStringSerialize($outer_string): string ``` @@ -448,10 +448,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); -$body = 'body_example'; // string | Input string as post body +$outer_string = 'outer_string_example'; // \OpenAPI\Client\Model\OuterString | Input string as post body try { - $result = $apiInstance->fakeOuterStringSerialize($body); + $result = $apiInstance->fakeOuterStringSerialize($outer_string); print_r($result); } catch (Exception $e) { echo 'Exception when calling FakeApi->fakeOuterStringSerialize: ', $e->getMessage(), PHP_EOL; @@ -462,7 +462,7 @@ try { | Name | Type | Description | Notes | | ------------- | ------------- | ------------- | ------------- | -| **body** | **string**| Input string as post body | [optional] | +| **outer_string** | [**\OpenAPI\Client\Model\OuterString**](../Model/OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php index 4d709acf51c6..2d4f1bb29a13 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php @@ -2015,32 +2015,32 @@ public function fakeOuterNumberSerializeRequest($body = null, string $contentTyp /** * Operation fakeOuterStringSerialize * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return string */ - public function fakeOuterStringSerialize($body = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) + public function fakeOuterStringSerialize($outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) { - list($response) = $this->fakeOuterStringSerializeWithHttpInfo($body, $contentType); + list($response) = $this->fakeOuterStringSerializeWithHttpInfo($outer_string, $contentType); return $response; } /** * Operation fakeOuterStringSerializeWithHttpInfo * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function fakeOuterStringSerializeWithHttpInfo($body = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) + public function fakeOuterStringSerializeWithHttpInfo($outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) { - $request = $this->fakeOuterStringSerializeRequest($body, $contentType); + $request = $this->fakeOuterStringSerializeRequest($outer_string, $contentType); try { $options = $this->createHttpClientOption(); @@ -2114,15 +2114,15 @@ public function fakeOuterStringSerializeWithHttpInfo($body = null, string $conte /** * Operation fakeOuterStringSerializeAsync * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function fakeOuterStringSerializeAsync($body = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) + public function fakeOuterStringSerializeAsync($outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) { - return $this->fakeOuterStringSerializeAsyncWithHttpInfo($body, $contentType) + return $this->fakeOuterStringSerializeAsyncWithHttpInfo($outer_string, $contentType) ->then( function ($response) { return $response[0]; @@ -2133,16 +2133,16 @@ function ($response) { /** * Operation fakeOuterStringSerializeAsyncWithHttpInfo * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function fakeOuterStringSerializeAsyncWithHttpInfo($body = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) + public function fakeOuterStringSerializeAsyncWithHttpInfo($outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) { $returnType = 'string'; - $request = $this->fakeOuterStringSerializeRequest($body, $contentType); + $request = $this->fakeOuterStringSerializeRequest($outer_string, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2183,13 +2183,13 @@ function ($exception) { /** * Create request for operation 'fakeOuterStringSerialize' * - * @param string|null $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString|null $outer_string Input string as post body (optional) * @param string $contentType The value for the Content-Type header. Check self::contentTypes['fakeOuterStringSerialize'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function fakeOuterStringSerializeRequest($body = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) + public function fakeOuterStringSerializeRequest($outer_string = null, string $contentType = self::contentTypes['fakeOuterStringSerialize'][0]) { @@ -2212,12 +2212,12 @@ public function fakeOuterStringSerializeRequest($body = null, string $contentTyp ); // for model (json/xml) - if (isset($body)) { + if (isset($outer_string)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($body)); + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($outer_string)); } else { - $httpBody = $body; + $httpBody = $outer_string; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md b/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md index 7fff81c2a77d..8400eb8679a6 100644 --- a/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md +++ b/samples/client/petstore/php/psr-18/docs/Api/FakeApi.md @@ -426,7 +426,7 @@ No authorization required ## `fakeOuterStringSerialize()` ```php -fakeOuterStringSerialize($body): string +fakeOuterStringSerialize($outer_string): string ``` @@ -446,10 +446,10 @@ $apiInstance = new OpenAPI\Client\Api\FakeApi( // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface new GuzzleHttp\Client() ); -$body = 'body_example'; // string | Input string as post body +$outer_string = 'outer_string_example'; // \OpenAPI\Client\Model\OuterString | Input string as post body try { - $result = $apiInstance->fakeOuterStringSerialize($body); + $result = $apiInstance->fakeOuterStringSerialize($outer_string); print_r($result); } catch (Exception $e) { echo 'Exception when calling FakeApi->fakeOuterStringSerialize: ', $e->getMessage(), PHP_EOL; @@ -460,7 +460,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string**| Input string as post body | [optional] + **outer_string** | [**\OpenAPI\Client\Model\OuterString**](../Model/OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php index 7992aba59357..fe98457af9b8 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php @@ -1906,30 +1906,30 @@ public function fakeOuterNumberSerializeRequest($body = null) /** * Operation fakeOuterStringSerialize * - * @param string $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString $outer_string Input string as post body (optional) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return string */ - public function fakeOuterStringSerialize($body = null) + public function fakeOuterStringSerialize($outer_string = null) { - list($response) = $this->fakeOuterStringSerializeWithHttpInfo($body); + list($response) = $this->fakeOuterStringSerializeWithHttpInfo($outer_string); return $response; } /** * Operation fakeOuterStringSerializeWithHttpInfo * - * @param string $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString $outer_string Input string as post body (optional) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function fakeOuterStringSerializeWithHttpInfo($body = null) + public function fakeOuterStringSerializeWithHttpInfo($outer_string = null) { - $request = $this->fakeOuterStringSerializeRequest($body); + $request = $this->fakeOuterStringSerializeRequest($outer_string); try { try { @@ -2006,14 +2006,14 @@ public function fakeOuterStringSerializeWithHttpInfo($body = null) /** * Operation fakeOuterStringSerializeAsync * - * @param string $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString $outer_string Input string as post body (optional) * * @throws \InvalidArgumentException * @return Promise */ - public function fakeOuterStringSerializeAsync($body = null) + public function fakeOuterStringSerializeAsync($outer_string = null) { - return $this->fakeOuterStringSerializeAsyncWithHttpInfo($body) + return $this->fakeOuterStringSerializeAsyncWithHttpInfo($outer_string) ->then( function ($response) { return $response[0]; @@ -2024,15 +2024,15 @@ function ($response) { /** * Operation fakeOuterStringSerializeAsyncWithHttpInfo * - * @param string $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString $outer_string Input string as post body (optional) * * @throws \InvalidArgumentException * @return Promise */ - public function fakeOuterStringSerializeAsyncWithHttpInfo($body = null) + public function fakeOuterStringSerializeAsyncWithHttpInfo($outer_string = null) { $returnType = 'string'; - $request = $this->fakeOuterStringSerializeRequest($body); + $request = $this->fakeOuterStringSerializeRequest($outer_string); return $this->httpAsyncClient->sendAsyncRequest($request) ->then( @@ -2069,12 +2069,12 @@ function (HttpException $exception) { /** * Create request for operation 'fakeOuterStringSerialize' * - * @param string $body Input string as post body (optional) + * @param \OpenAPI\Client\Model\OuterString $outer_string Input string as post body (optional) * * @throws \InvalidArgumentException * @return RequestInterface */ - public function fakeOuterStringSerializeRequest($body = null) + public function fakeOuterStringSerializeRequest($outer_string = null) { $resourcePath = '/fake/outer/string'; @@ -2095,11 +2095,11 @@ public function fakeOuterStringSerializeRequest($body = null) ); // for model (json/xml) - if (isset($body)) { + if (isset($outer_string)) { if ($this->headerSelector->isJsonMime($headers['Content-Type'])) { - $httpBody = json_encode(ObjectSerializer::sanitizeForSerialization($body)); + $httpBody = json_encode(ObjectSerializer::sanitizeForSerialization($outer_string)); } else { - $httpBody = $body; + $httpBody = $outer_string; } } elseif (count($formParams) > 0) { if ($multipart) { diff --git a/samples/client/petstore/powershell/docs/PSFakeApi.md b/samples/client/petstore/powershell/docs/PSFakeApi.md index 6aa3b3a35320..5cb99bccf2f0 100644 --- a/samples/client/petstore/powershell/docs/PSFakeApi.md +++ b/samples/client/petstore/powershell/docs/PSFakeApi.md @@ -189,7 +189,7 @@ No authorization required # **Invoke-PSFakeOuterStringSerialize** > String Invoke-PSFakeOuterStringSerialize
->         [-Body]
+>         [-OuterString]
@@ -197,10 +197,10 @@ Test serialization of outer string types ### Example ```powershell -$Body = "MyBody" # String | Input string as post body (optional) +"MyOuterString" # OuterString | Input string as post body (optional) try { - $Result = Invoke-PSFakeOuterStringSerialize -Body $Body + $Result = Invoke-PSFakeOuterStringSerialize -OuterString $OuterString } catch { Write-Host ("Exception occurred when calling Invoke-PSFakeOuterStringSerialize: {0}" -f ($_.ErrorDetails | ConvertFrom-Json)) Write-Host ("Response headers: {0}" -f ($_.Exception.Response.Headers | ConvertTo-Json)) @@ -211,7 +211,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Body** | **String**| Input string as post body | [optional] + **OuterString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 index 52d0e4fc5b12..fe01f39be636 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 @@ -299,7 +299,7 @@ No summary available. No description available. -.PARAMETER Body +.PARAMETER OuterString Input string as post body .PARAMETER WithHttpInfo @@ -314,8 +314,8 @@ function Invoke-PSFakeOuterStringSerialize { [CmdletBinding()] Param ( [Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] - [String] - ${Body}, + [PSCustomObject] + ${OuterString}, [Switch] $WithHttpInfo ) @@ -342,7 +342,7 @@ function Invoke-PSFakeOuterStringSerialize { $LocalVarUri = '/fake/outer/string' - $LocalVarBodyParameter = $Body | ConvertTo-Json -Depth 100 + $LocalVarBodyParameter = $OuterString | ConvertTo-Json -Depth 100 $LocalVarResult = Invoke-PSApiClient -Method 'POST' ` -Uri $LocalVarUri ` diff --git a/samples/client/petstore/ruby-autoload/docs/FakeApi.md b/samples/client/petstore/ruby-autoload/docs/FakeApi.md index 4262104d12af..0bce6db77b68 100644 --- a/samples/client/petstore/ruby-autoload/docs/FakeApi.md +++ b/samples/client/petstore/ruby-autoload/docs/FakeApi.md @@ -432,7 +432,7 @@ require 'petstore' api_instance = Petstore::FakeApi.new opts = { - body: 'body_example' # String | Input string as post body + outer_string: TODO # OuterString | Input string as post body } begin @@ -466,7 +466,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | Input string as post body | [optional] | +| **outer_string** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb index e3b9164b1d70..55a24f5dc3b5 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb @@ -387,7 +387,7 @@ def fake_outer_number_serialize_with_http_info(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [String] def fake_outer_string_serialize(opts = {}) data, _status_code, _headers = fake_outer_string_serialize_with_http_info(opts) @@ -396,7 +396,7 @@ def fake_outer_string_serialize(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def fake_outer_string_serialize_with_http_info(opts = {}) if @api_client.config.debugging @@ -422,7 +422,7 @@ def fake_outer_string_serialize_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'outer_string']) # return_type return_type = opts[:debug_return_type] || 'String' diff --git a/samples/client/petstore/ruby-faraday/docs/FakeApi.md b/samples/client/petstore/ruby-faraday/docs/FakeApi.md index 1e05788c53ab..5e8de9ab19b6 100644 --- a/samples/client/petstore/ruby-faraday/docs/FakeApi.md +++ b/samples/client/petstore/ruby-faraday/docs/FakeApi.md @@ -432,7 +432,7 @@ require 'petstore' api_instance = Petstore::FakeApi.new opts = { - body: 'body_example' # String | Input string as post body + outer_string: TODO # OuterString | Input string as post body } begin @@ -466,7 +466,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | Input string as post body | [optional] | +| **outer_string** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb index 2a049f19e5f8..cdd7b621d9db 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb @@ -387,7 +387,7 @@ def fake_outer_number_serialize_with_http_info(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [String] def fake_outer_string_serialize(opts = {}) data, _status_code, _headers = fake_outer_string_serialize_with_http_info(opts) @@ -396,7 +396,7 @@ def fake_outer_string_serialize(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def fake_outer_string_serialize_with_http_info(opts = {}) if @api_client.config.debugging @@ -422,7 +422,7 @@ def fake_outer_string_serialize_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'outer_string']) # return_type return_type = opts[:debug_return_type] || 'String' diff --git a/samples/client/petstore/ruby-httpx/docs/FakeApi.md b/samples/client/petstore/ruby-httpx/docs/FakeApi.md index 1e05788c53ab..5e8de9ab19b6 100644 --- a/samples/client/petstore/ruby-httpx/docs/FakeApi.md +++ b/samples/client/petstore/ruby-httpx/docs/FakeApi.md @@ -432,7 +432,7 @@ require 'petstore' api_instance = Petstore::FakeApi.new opts = { - body: 'body_example' # String | Input string as post body + outer_string: TODO # OuterString | Input string as post body } begin @@ -466,7 +466,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | Input string as post body | [optional] | +| **outer_string** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb index 2a049f19e5f8..cdd7b621d9db 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb @@ -387,7 +387,7 @@ def fake_outer_number_serialize_with_http_info(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [String] def fake_outer_string_serialize(opts = {}) data, _status_code, _headers = fake_outer_string_serialize_with_http_info(opts) @@ -396,7 +396,7 @@ def fake_outer_string_serialize(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def fake_outer_string_serialize_with_http_info(opts = {}) if @api_client.config.debugging @@ -422,7 +422,7 @@ def fake_outer_string_serialize_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'outer_string']) # return_type return_type = opts[:debug_return_type] || 'String' diff --git a/samples/client/petstore/ruby/docs/FakeApi.md b/samples/client/petstore/ruby/docs/FakeApi.md index 1dff682f9a2d..3366c6f09200 100644 --- a/samples/client/petstore/ruby/docs/FakeApi.md +++ b/samples/client/petstore/ruby/docs/FakeApi.md @@ -432,7 +432,7 @@ require 'petstore' api_instance = Petstore::FakeApi.new opts = { - body: 'body_example' # String | Input string as post body + outer_string: TODO # OuterString | Input string as post body } begin @@ -466,7 +466,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | **String** | Input string as post body | [optional] | +| **outer_string** | [**OuterString**](OuterString.md) | Input string as post body | [optional] | ### Return type diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb index f704ade94657..ff47943cedce 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb @@ -387,7 +387,7 @@ def fake_outer_number_serialize_with_http_info(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [String] def fake_outer_string_serialize(opts = {}) data, _status_code, _headers = fake_outer_string_serialize_with_http_info(opts) @@ -396,7 +396,7 @@ def fake_outer_string_serialize(opts = {}) # Test serialization of outer string types # @param [Hash] opts the optional parameters - # @option opts [String] :body Input string as post body + # @option opts [OuterString] :outer_string Input string as post body # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers def fake_outer_string_serialize_with_http_info(opts = {}) if @api_client.config.debugging @@ -422,7 +422,7 @@ def fake_outer_string_serialize_with_http_info(opts = {}) form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body']) + post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'outer_string']) # return_type return_type = opts[:debug_return_type] || 'String' diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index 2fe3fde9648f..b79a2d72ed75 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterCompositeDto; +import org.openapitools.model.OuterStringDto; import org.openapitools.model.UserDto; import org.openapitools.model.XmlItemDto; import org.springframework.http.HttpStatus; @@ -111,7 +112,7 @@ BigDecimal fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerStringDto Input string as post body (optional) * @return Output string (status code 200) */ @ResponseStatus(HttpStatus.OK) @@ -122,7 +123,7 @@ BigDecimal fakeOuterNumberSerialize( contentType = "application/json" ) String fakeOuterStringSerialize( - @RequestBody(required = false) @Nullable String body + @RequestBody(required = false) @Nullable OuterStringDto outerStringDto ); diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index 68620a9f4b56..ec9c65473859 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; @@ -115,7 +116,7 @@ Mono fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ResponseStatus(HttpStatus.OK) @@ -126,7 +127,7 @@ Mono fakeOuterNumberSerialize( contentType = "application/json" ) Mono fakeOuterStringSerialize( - @RequestBody(required = false) Mono body + @RequestBody(required = false) Mono outerString ); diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java index b2ca426bdef4..8717a71cfaa7 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.ResponseEntity; @@ -111,7 +112,7 @@ Mono> fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @HttpExchange( @@ -121,7 +122,7 @@ Mono> fakeOuterNumberSerialize( contentType = "application/json" ) Mono> fakeOuterStringSerialize( - @RequestBody(required = false) Mono body + @RequestBody(required = false) Mono outerString ); diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java index 261ef7f7d32d..dcf196c0b36b 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterCompositeDto; +import org.openapitools.model.OuterStringDto; import org.openapitools.model.UserDto; import org.openapitools.model.XmlItemDto; import org.springframework.http.ResponseEntity; @@ -107,7 +108,7 @@ ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerStringDto Input string as post body (optional) * @return Output string (status code 200) */ @HttpExchange( @@ -117,7 +118,7 @@ ResponseEntity fakeOuterNumberSerialize( contentType = "application/json" ) ResponseEntity fakeOuterStringSerialize( - @RequestBody(required = false) @Nullable String body + @RequestBody(required = false) @Nullable OuterStringDto outerStringDto ); diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 9e246a77ebea..b41100ca68e5 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -145,7 +145,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute(apiResponseQueue) { result in switch result { case let .success(response): @@ -162,7 +162,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/alamofireLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/alamofireLibrary/docs/FakeAPI.md index 1d64d2d2c4cd..700429268b34 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/alamofireLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index a5e7145d297c..91efe78003e5 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -120,7 +120,7 @@ open class FakeAPI { - returns: String */ @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func fakeOuterStringSerialize(body: String? = nil) async throws -> String { + open class func fakeOuterStringSerialize(body: OuterString? = nil) async throws -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body).execute().body } @@ -130,7 +130,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/asyncAwaitLibrary/docs/FakeAPI.md index 69b1faa2b991..cd773e0783dd 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index e65abe35fcd4..7ffe81edfe79 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -175,7 +175,7 @@ open class FakeAPI { */ #if canImport(Combine) @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func fakeOuterStringSerialize(body: String? = nil) -> AnyPublisher { + open class func fakeOuterStringSerialize(body: OuterString? = nil) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask return Future { promise in @@ -201,7 +201,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/combineLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/combineLibrary/docs/FakeAPI.md index 69b1faa2b991..cd773e0783dd 100644 --- a/samples/client/petstore/swift5/combineLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/combineLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 1a5d74a29efc..0110b61cd3aa 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -189,7 +189,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute(apiResponseQueue) { result in switch result { case let .success(response): @@ -206,7 +206,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/default/docs/FakeAPI.md b/samples/client/petstore/swift5/default/docs/FakeAPI.md index 5004221689ee..d07e60fe8acc 100644 --- a/samples/client/petstore/swift5/default/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/default/docs/FakeAPI.md @@ -219,7 +219,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -231,7 +231,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -249,7 +249,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 3f6e3111d931..272a559d2dd1 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -145,7 +145,7 @@ import AnyCodable - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute(apiResponseQueue) { result in switch result { case let .success(response): @@ -162,7 +162,7 @@ import AnyCodable - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/objcCompatible/docs/FakeAPI.md b/samples/client/petstore/swift5/objcCompatible/docs/FakeAPI.md index a75c5864f1c6..c41ddbecc93e 100644 --- a/samples/client/petstore/swift5/objcCompatible/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/objcCompatible/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 9358f7ce983f..133055742306 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -144,7 +144,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: Promise */ - open class func fakeOuterStringSerialize( body: String? = nil) -> Promise { + open class func fakeOuterStringSerialize( body: OuterString? = nil) -> Promise { let deferred = Promise.pending() fakeOuterStringSerializeWithRequestBuilder(body: body).execute { result in switch result { @@ -163,7 +163,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/promisekitLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/promisekitLibrary/docs/FakeAPI.md index 5164a64867d8..90817adbc43d 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/promisekitLibrary/docs/FakeAPI.md @@ -158,7 +158,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize( body: String? = nil) -> Promise + open class func fakeOuterStringSerialize( body: OuterString? = nil) -> Promise ``` @@ -170,7 +170,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body).then { // when the promise is fulfilled @@ -185,7 +185,7 @@ FakeAPI.fakeOuterStringSerialize(body: body).then { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 88f9dd49fb02..9dbf9ed077fa 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -145,7 +145,7 @@ internal class FakeAPI { - parameter completion: completion handler to receive the result */ @discardableResult - internal class func fakeOuterStringSerialize(body: String? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ result: Swift.Result) -> Void)) -> RequestTask { + internal class func fakeOuterStringSerialize(body: OuterString? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ result: Swift.Result) -> Void)) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute(apiResponseQueue) { result in switch result { case let .success(response): @@ -162,7 +162,7 @@ internal class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - internal class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + internal class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/resultLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/resultLibrary/docs/FakeAPI.md index 1cc75c5aab2c..9c4a085c0174 100644 --- a/samples/client/petstore/swift5/resultLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/resultLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - internal class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + internal class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 03433120c1ab..8fe224376230 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -163,7 +163,7 @@ open class FakeAPI { - parameter apiResponseQueue: The queue on which api response is dispatched. - returns: Observable */ - open class func fakeOuterStringSerialize(body: String? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue) -> Observable { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue) -> Observable { return Observable.create { observer -> Disposable in let requestTask = fakeOuterStringSerializeWithRequestBuilder(body: body).execute(apiResponseQueue) { result in switch result { @@ -187,7 +187,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/rxswiftLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/rxswiftLibrary/docs/FakeAPI.md index 350928e8e7f7..b251f7604734 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/rxswiftLibrary/docs/FakeAPI.md @@ -140,7 +140,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil) -> Observable + open class func fakeOuterStringSerialize(body: OuterString? = nil) -> Observable ``` @@ -152,7 +152,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) // TODO RxSwift sample code not yet implemented. To contribute, please open a ticket via http://github.com/OpenAPITools/openapi-generator/issues/new ``` @@ -161,7 +161,7 @@ let body = "body_example" // String | Input string as post body (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 6f88769930d8..bb2f31d8ce6f 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -148,7 +148,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiResponseQueue: DispatchQueue = PetstoreClientAPI.apiResponseQueue, completion: @escaping ((_ data: String?, _ error: Error?) -> Void)) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute(apiResponseQueue) { result in switch result { case let .success(response): @@ -165,7 +165,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) diff --git a/samples/client/petstore/swift5/urlsessionLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/urlsessionLibrary/docs/FakeAPI.md index 69b1faa2b991..cd773e0783dd 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/urlsessionLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 014da8378336..371eec225309 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -211,7 +211,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: `EventLoopFuture` of `ClientResponse` */ - open class func fakeOuterStringSerializeRaw(body: String? = nil, headers: HTTPHeaders = PetstoreClientAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { + open class func fakeOuterStringSerializeRaw(body: OuterString? = nil, headers: HTTPHeaders = PetstoreClientAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { let localVariablePath = "/fake/outer/string" let localVariableURLString = PetstoreClientAPI.basePath + localVariablePath @@ -224,7 +224,7 @@ open class FakeAPI { if let localVariableBody = body { - try localVariableRequest.content.encode(localVariableBody, using: Configuration.contentConfiguration.requireEncoder(for: String.defaultContentType)) + try localVariableRequest.content.encode(localVariableBody, using: Configuration.contentConfiguration.requireEncoder(for: OuterString.defaultContentType)) } try beforeSend(&localVariableRequest) @@ -242,7 +242,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: `EventLoopFuture` of `FakeOuterStringSerialize` */ - open class func fakeOuterStringSerialize(body: String? = nil, headers: HTTPHeaders = PetstoreClientAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { + open class func fakeOuterStringSerialize(body: OuterString? = nil, headers: HTTPHeaders = PetstoreClientAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { return fakeOuterStringSerializeRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FakeOuterStringSerialize in switch response.status.code { case 200: diff --git a/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md b/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md index 2cb0e52af6d4..e679f13398fa 100644 --- a/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift5/vaporLibrary/docs/FakeAPI.md @@ -255,7 +255,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, headers: HTTPHeaders = PetstoreClientAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture + open class func fakeOuterStringSerialize(body: OuterString? = nil, headers: HTTPHeaders = PetstoreClientAPI.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture ``` @@ -267,7 +267,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body).whenComplete { result in switch result { @@ -287,7 +287,7 @@ FakeAPI.fakeOuterStringSerialize(body: body).whenComplete { result in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index ed312f46a129..d04f7a06941c 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/alamofireLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -145,7 +145,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute { result in switch result { case let .success(response): @@ -163,7 +163,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/alamofireLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/alamofireLibrary/docs/FakeAPI.md index 1d64d2d2c4cd..700429268b34 100644 --- a/samples/client/petstore/swift6/alamofireLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/alamofireLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift index d4ba08951590..5c6250e92487 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/apiNonStaticMethod/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -441,7 +441,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open func fakeOuterStringSerialize(body: String? = nil, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { + open func fakeOuterStringSerialize(body: OuterString? = nil, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute { result in switch result { case let .success(response): @@ -457,7 +457,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: Promise */ - open func fakeOuterStringSerialize(body: String? = nil) -> Promise { + open func fakeOuterStringSerialize(body: OuterString? = nil) -> Promise { let deferred = Promise.pending() fakeOuterStringSerializeWithRequestBuilder(body: body).execute { result in switch result { @@ -475,7 +475,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: Observable */ - open func fakeOuterStringSerialize(body: String? = nil) -> Observable { + open func fakeOuterStringSerialize(body: OuterString? = nil) -> Observable { return Observable.create { observer -> Disposable in let requestTask = self.fakeOuterStringSerializeWithRequestBuilder(body: body).execute { result in switch result { @@ -500,7 +500,7 @@ open class FakeAPI { */ #if canImport(Combine) @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open func fakeOuterStringSerialize(body: String? = nil) -> AnyPublisher { + open func fakeOuterStringSerialize(body: OuterString? = nil) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body) let requestTask = requestBuilder.requestTask return Deferred { Future { promise in @@ -529,7 +529,7 @@ open class FakeAPI { - returns: String */ @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open func fakeOuterStringSerialize(body: String? = nil) async throws(ErrorResponse) -> String { + open func fakeOuterStringSerialize(body: OuterString? = nil) async throws(ErrorResponse) -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body).execute().body } @@ -539,7 +539,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the result */ @discardableResult - open func fakeOuterStringSerialize(body: String? = nil, completion: @Sendable @escaping (_ result: Swift.Result) -> Void) -> RequestTask { + open func fakeOuterStringSerialize(body: OuterString? = nil, completion: @Sendable @escaping (_ result: Swift.Result) -> Void) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body).execute { result in switch result { case let .success(response): @@ -556,7 +556,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: RequestBuilder */ - open func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil) -> RequestBuilder { + open func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/apiNonStaticMethod/docs/FakeAPI.md b/samples/client/petstore/swift6/apiNonStaticMethod/docs/FakeAPI.md index 1b34193a2aba..6c5d845edcce 100644 --- a/samples/client/petstore/swift6/apiNonStaticMethod/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/apiNonStaticMethod/docs/FakeAPI.md @@ -164,8 +164,8 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize( body: String? = nil) -> Promise - open class func fakeOuterStringSerialize(body: String? = nil) -> Observable + open class func fakeOuterStringSerialize( body: OuterString? = nil) -> Promise + open class func fakeOuterStringSerialize(body: OuterString? = nil) -> Observable ``` @@ -177,7 +177,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body).then { // when the promise is fulfilled @@ -193,7 +193,7 @@ FakeAPI.fakeOuterStringSerialize(body: body).then { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 8c2a987f7c77..cf8eabee183f 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -124,7 +124,7 @@ open class FakeAPI { - returns: String */ @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -135,7 +135,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/asyncAwaitLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/asyncAwaitLibrary/docs/FakeAPI.md index 69b1faa2b991..cd773e0783dd 100644 --- a/samples/client/petstore/swift6/asyncAwaitLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/asyncAwaitLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 554d10d64d99..3ced19c68b1c 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/combineDeferredLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -188,7 +188,7 @@ open class FakeAPI { */ #if canImport(Combine) @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask return Deferred { Future { promise in @@ -218,7 +218,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/combineDeferredLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/combineDeferredLibrary/docs/FakeAPI.md index 69b1faa2b991..cd773e0783dd 100644 --- a/samples/client/petstore/swift6/combineDeferredLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/combineDeferredLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift index a1941d1ca55b..e30c4f5cc4bd 100644 --- a/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/combineLibrary/Sources/CombineLibrary/APIs/FakeAPI.swift @@ -182,7 +182,7 @@ open class FakeAPI { */ #if canImport(Combine) @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> AnyPublisher { let requestBuilder = fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration) let requestTask = requestBuilder.requestTask return Future { promise in @@ -210,7 +210,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/combineLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/combineLibrary/docs/FakeAPI.md index 69b1faa2b991..cd773e0783dd 100644 --- a/samples/client/petstore/swift6/combineLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/combineLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift index 1a841ea0b02d..e7f4e3286e0d 100644 --- a/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/default/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -162,7 +162,7 @@ open class FakeAPI { - returns: String */ @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) async throws(ErrorResponse) -> String { return try await fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute().body } @@ -173,7 +173,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/default/docs/FakeAPI.md b/samples/client/petstore/swift6/default/docs/FakeAPI.md index 5004221689ee..d07e60fe8acc 100644 --- a/samples/client/petstore/swift6/default/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/default/docs/FakeAPI.md @@ -219,7 +219,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -231,7 +231,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -249,7 +249,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift index b2197abd7378..9839505a4fa8 100644 --- a/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/objcCompatible/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -145,7 +145,7 @@ import Foundation - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute { result in switch result { case let .success(response): @@ -163,7 +163,7 @@ import Foundation - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/objcCompatible/docs/FakeAPI.md b/samples/client/petstore/swift6/objcCompatible/docs/FakeAPI.md index a75c5864f1c6..c41ddbecc93e 100644 --- a/samples/client/petstore/swift6/objcCompatible/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/objcCompatible/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 4807c976fc72..1c36d63af398 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -148,7 +148,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Promise */ - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> Promise { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> Promise { let deferred = Promise.pending() fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute { result in switch result { @@ -168,7 +168,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/promisekitLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/promisekitLibrary/docs/FakeAPI.md index 5164a64867d8..90817adbc43d 100644 --- a/samples/client/petstore/swift6/promisekitLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/promisekitLibrary/docs/FakeAPI.md @@ -158,7 +158,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize( body: String? = nil) -> Promise + open class func fakeOuterStringSerialize( body: OuterString? = nil) -> Promise ``` @@ -170,7 +170,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body).then { // when the promise is fulfilled @@ -185,7 +185,7 @@ FakeAPI.fakeOuterStringSerialize(body: body).then { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index e1c145c8313d..580ea104cf5e 100644 --- a/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -145,7 +145,7 @@ internal class FakeAPI { - parameter completion: completion handler to receive the result */ @discardableResult - internal class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ result: Swift.Result) -> Void) -> RequestTask { + internal class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ result: Swift.Result) -> Void) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute { result in switch result { case let .success(response): @@ -163,7 +163,7 @@ internal class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - internal class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + internal class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/resultLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/resultLibrary/docs/FakeAPI.md index 1cc75c5aab2c..9c4a085c0174 100644 --- a/samples/client/petstore/swift6/resultLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/resultLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - internal class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + internal class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index aa0560d9f274..0a1500b33533 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -163,7 +163,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: Observable */ - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> Observable { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> Observable { return Observable.create { observer -> Disposable in let requestTask = self.fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute { result in switch result { @@ -188,7 +188,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/rxswiftLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/rxswiftLibrary/docs/FakeAPI.md index 350928e8e7f7..b251f7604734 100644 --- a/samples/client/petstore/swift6/rxswiftLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/rxswiftLibrary/docs/FakeAPI.md @@ -140,7 +140,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil) -> Observable + open class func fakeOuterStringSerialize(body: OuterString? = nil) -> Observable ``` @@ -152,7 +152,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) // TODO RxSwift sample code not yet implemented. To contribute, please open a ticket via http://github.com/OpenAPITools/openapi-generator/issues/new ``` @@ -161,7 +161,7 @@ let body = "body_example" // String | Input string as post body (optional) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 157140d7c6dc..5b8848a03c69 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -148,7 +148,7 @@ open class FakeAPI { - parameter completion: completion handler to receive the data and the error objects */ @discardableResult - open class func fakeOuterStringSerialize(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { + open class func fakeOuterStringSerialize(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared, completion: @Sendable @escaping (_ data: String?, _ error: Error?) -> Void) -> RequestTask { return fakeOuterStringSerializeWithRequestBuilder(body: body, apiConfiguration: apiConfiguration).execute { result in switch result { case let .success(response): @@ -166,7 +166,7 @@ open class FakeAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func fakeOuterStringSerializeWithRequestBuilder(body: String? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { + open class func fakeOuterStringSerializeWithRequestBuilder(body: OuterString? = nil, apiConfiguration: PetstoreClientAPIConfiguration = PetstoreClientAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body, codableHelper: apiConfiguration.codableHelper) diff --git a/samples/client/petstore/swift6/urlsessionLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/urlsessionLibrary/docs/FakeAPI.md index f4348177a71d..1706e6e068ac 100644 --- a/samples/client/petstore/swift6/urlsessionLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/urlsessionLibrary/docs/FakeAPI.md @@ -167,7 +167,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) + open class func fakeOuterStringSerialize(body: OuterString? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void) ``` @@ -179,7 +179,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in guard error == nil else { @@ -197,7 +197,7 @@ FakeAPI.fakeOuterStringSerialize(body: body) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 480dc61d468e..c3158774693a 100644 --- a/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift6/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -208,7 +208,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: `EventLoopFuture` of `ClientResponse` */ - open class func fakeOuterStringSerializeRaw(body: String? = nil, headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { + open class func fakeOuterStringSerializeRaw(body: OuterString? = nil, headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { let localVariablePath = "/fake/outer/string" let localVariableURLString = apiConfiguration.basePath + localVariablePath @@ -221,7 +221,7 @@ open class FakeAPI { if let localVariableBody = body { - try localVariableRequest.content.encode(localVariableBody, using: apiConfiguration.contentConfiguration.requireEncoder(for: String.defaultContentType)) + try localVariableRequest.content.encode(localVariableBody, using: apiConfiguration.contentConfiguration.requireEncoder(for: OuterString.defaultContentType)) } try beforeSend(&localVariableRequest) @@ -239,7 +239,7 @@ open class FakeAPI { - parameter body: (body) Input string as post body (optional) - returns: `EventLoopFuture` of `FakeOuterStringSerialize` */ - open class func fakeOuterStringSerialize(body: String? = nil, headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { + open class func fakeOuterStringSerialize(body: OuterString? = nil, headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture { return fakeOuterStringSerializeRaw(body: body, headers: headers, beforeSend: beforeSend).flatMapThrowing { response -> FakeOuterStringSerialize in switch response.status.code { case 200: diff --git a/samples/client/petstore/swift6/vaporLibrary/docs/FakeAPI.md b/samples/client/petstore/swift6/vaporLibrary/docs/FakeAPI.md index 0061a8e0d5ca..0575bba070c4 100644 --- a/samples/client/petstore/swift6/vaporLibrary/docs/FakeAPI.md +++ b/samples/client/petstore/swift6/vaporLibrary/docs/FakeAPI.md @@ -255,7 +255,7 @@ No authorization required # **fakeOuterStringSerialize** ```swift - open class func fakeOuterStringSerialize(body: String? = nil, headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture + open class func fakeOuterStringSerialize(body: OuterString? = nil, headers: HTTPHeaders = PetstoreClientAPIConfiguration.shared.customHeaders, beforeSend: (inout ClientRequest) throws -> () = { _ in }) -> EventLoopFuture ``` @@ -267,7 +267,7 @@ Test serialization of outer string types // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import PetstoreClient -let body = "body_example" // String | Input string as post body (optional) +let body = TODO // OuterString | Input string as post body (optional) FakeAPI.fakeOuterStringSerialize(body: body).whenComplete { result in switch result { @@ -287,7 +287,7 @@ FakeAPI.fakeOuterStringSerialize(body: body).whenComplete { result in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String** | Input string as post body | [optional] + **body** | [**OuterString**](OuterString.md) | Input string as post body | [optional] ### Return type diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts index 86de5e91358e..58e2df371db6 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/api.ts @@ -939,11 +939,11 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration) }, /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterStringSerialize: async (body?: string, options: RawAxiosRequestConfig = {}): Promise => { + fakeOuterStringSerialize: async (outerString?: OuterString, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/fake/outer/string`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -962,7 +962,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(outerString, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1699,12 +1699,12 @@ export const FakeApiFp = function(configuration?: Configuration) { }, /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.fakeOuterStringSerialize(body, options); + async fakeOuterStringSerialize(outerString?: OuterString, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fakeOuterStringSerialize(outerString, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FakeApi.fakeOuterStringSerialize']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1965,12 +1965,12 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? }, /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.fakeOuterStringSerialize(body, options).then((request) => request(axios, basePath)); + fakeOuterStringSerialize(outerString?: OuterString, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fakeOuterStringSerialize(outerString, options).then((request) => request(axios, basePath)); }, /** * @@ -2188,12 +2188,12 @@ export class FakeApi extends BaseAPI { /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig) { - return FakeApiFp(this.configuration).fakeOuterStringSerialize(body, options).then((request) => request(this.axios, this.basePath)); + public fakeOuterStringSerialize(outerString?: OuterString, options?: RawAxiosRequestConfig) { + return FakeApiFp(this.configuration).fakeOuterStringSerialize(outerString, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/FakeApi.md b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/FakeApi.md index ad04911b6a7d..5df7d25fe00e 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/FakeApi.md +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/FakeApi.md @@ -231,16 +231,17 @@ Test serialization of outer string types ```typescript import { FakeApi, - Configuration + Configuration, + OuterString } from './api'; const configuration = new Configuration(); const apiInstance = new FakeApi(configuration); -let body: string; //Input string as post body (optional) +let outerString: OuterString; //Input string as post body (optional) const { status, data } = await apiInstance.fakeOuterStringSerialize( - body + outerString ); ``` @@ -248,7 +249,7 @@ const { status, data } = await apiInstance.fakeOuterStringSerialize( |Name | Type | Description | Notes| |------------- | ------------- | ------------- | -------------| -| **body** | **string**| Input string as post body | | +| **outerString** | **OuterString**| Input string as post body | | ### Return type diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts index 6b0430e50cd6..84125a6fd3b1 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts @@ -778,11 +778,11 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration) }, /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterStringSerialize: async (body?: string, options: RawAxiosRequestConfig = {}): Promise => { + fakeOuterStringSerialize: async (outerString?: OuterString, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/fake/outer/string`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -801,7 +801,7 @@ export const FakeApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(outerString, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -1519,12 +1519,12 @@ export const FakeApiFp = function(configuration?: Configuration) { }, /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.fakeOuterStringSerialize(body, options); + async fakeOuterStringSerialize(outerString?: OuterString, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.fakeOuterStringSerialize(outerString, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['FakeApi.fakeOuterStringSerialize']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); @@ -1773,12 +1773,12 @@ export const FakeApiFactory = function (configuration?: Configuration, basePath? }, /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig): AxiosPromise { - return localVarFp.fakeOuterStringSerialize(body, options).then((request) => request(axios, basePath)); + fakeOuterStringSerialize(outerString?: OuterString, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.fakeOuterStringSerialize(outerString, options).then((request) => request(axios, basePath)); }, /** * @@ -1987,12 +1987,12 @@ export class FakeApi extends BaseAPI { /** * Test serialization of outer string types - * @param {string} [body] Input string as post body + * @param {OuterString} [outerString] Input string as post body * @param {*} [options] Override http request option. * @throws {RequiredError} */ - public fakeOuterStringSerialize(body?: string, options?: RawAxiosRequestConfig) { - return FakeApiFp(this.configuration).fakeOuterStringSerialize(body, options).then((request) => request(this.axios, this.basePath)); + public fakeOuterStringSerialize(outerString?: OuterString, options?: RawAxiosRequestConfig) { + return FakeApiFp(this.configuration).fakeOuterStringSerialize(outerString, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/docs/FakeApi.md b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/docs/FakeApi.md index 1fb1e763b333..3aef159a1e88 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/docs/FakeApi.md +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/docs/FakeApi.md @@ -230,16 +230,17 @@ Test serialization of outer string types ```typescript import { FakeApi, - Configuration + Configuration, + OuterString } from './api'; const configuration = new Configuration(); const apiInstance = new FakeApi(configuration); -let body: string; //Input string as post body (optional) +let outerString: OuterString; //Input string as post body (optional) const { status, data } = await apiInstance.fakeOuterStringSerialize( - body + outerString ); ``` @@ -247,7 +248,7 @@ const { status, data } = await apiInstance.fakeOuterStringSerialize( |Name | Type | Description | Notes| |------------- | ------------- | ------------- | -------------| -| **body** | **string**| Input string as post body | | +| **outerString** | **OuterString**| Input string as post body | | ### Return type diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts index 0eef4125671b..4af60300896b 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/apis/FakeApi.ts @@ -23,6 +23,7 @@ import type { HealthCheckResult, OuterComposite, OuterObjectWithEnumProperty, + OuterString, Pet, TestInlineFreeformAdditionalPropertiesRequest, User, @@ -44,6 +45,8 @@ import { OuterCompositeToJSON, OuterObjectWithEnumPropertyFromJSON, OuterObjectWithEnumPropertyToJSON, + OuterStringFromJSON, + OuterStringToJSON, PetFromJSON, PetToJSON, TestInlineFreeformAdditionalPropertiesRequestFromJSON, @@ -71,7 +74,7 @@ export interface FakeOuterNumberSerializeRequest { } export interface FakeOuterStringSerializeRequest { - body?: string; + outerString?: OuterString; } export interface FakePropertyEnumIntegerSerializeRequest { @@ -399,7 +402,7 @@ export class FakeApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['body'] as any, + body: OuterStringToJSON(requestParameters['outerString']), }, initOverrides); if (this.isJsonMime(response.headers.get('content-type'))) { diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/docs/FakeApi.md b/samples/client/petstore/typescript-fetch/builds/default-v3.0/docs/FakeApi.md index 9a679499c16f..69900a784e64 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/docs/FakeApi.md +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/docs/FakeApi.md @@ -423,7 +423,7 @@ No authorization required ## fakeOuterStringSerialize -> string fakeOuterStringSerialize(body) +> string fakeOuterStringSerialize(outerString) @@ -443,8 +443,8 @@ async function example() { const api = new FakeApi(); const body = { - // string | Input string as post body (optional) - body: body_example, + // OuterString | Input string as post body (optional) + outerString: outerString_example, } satisfies FakeOuterStringSerializeRequest; try { @@ -464,7 +464,7 @@ example().catch(console.error); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | `string` | Input string as post body | [Optional] | +| **outerString** | [OuterString](OuterString.md) | Input string as post body | [Optional] | ### Return type diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts index 21ad0984b848..ce7251b2d945 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/apis/FakeApi.ts @@ -22,6 +22,7 @@ import type { HealthCheckResult, OuterComposite, OuterObjectWithEnumProperty, + OuterString, Pet, User, } from '../models/index'; @@ -40,6 +41,8 @@ import { OuterCompositeToJSON, OuterObjectWithEnumPropertyFromJSON, OuterObjectWithEnumPropertyToJSON, + OuterStringFromJSON, + OuterStringToJSON, PetFromJSON, PetToJSON, UserFromJSON, @@ -65,7 +68,7 @@ export interface FakeOuterNumberSerializeRequest { } export interface FakeOuterStringSerializeRequest { - body?: string; + outerString?: OuterString; } export interface FakePropertyEnumIntegerSerializeRequest { @@ -377,7 +380,7 @@ export class FakeApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, - body: requestParameters['body'] as any, + body: OuterStringToJSON(requestParameters['outerString']), }, initOverrides); if (this.isJsonMime(response.headers.get('content-type'))) { diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/docs/FakeApi.md b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/docs/FakeApi.md index 4c05440de4b0..76614312b837 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/docs/FakeApi.md +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/docs/FakeApi.md @@ -419,7 +419,7 @@ No authorization required ## fakeOuterStringSerialize -> string fakeOuterStringSerialize(body) +> string fakeOuterStringSerialize(outerString) @@ -439,8 +439,8 @@ async function example() { const api = new FakeApi(); const body = { - // string | Input string as post body (optional) - body: body_example, + // OuterString | Input string as post body (optional) + outerString: outerString_example, } satisfies FakeOuterStringSerializeRequest; try { @@ -460,7 +460,7 @@ example().catch(console.error); | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | `string` | Input string as post body | [Optional] | +| **outerString** | [OuterString](OuterString.md) | Input string as post body | [Optional] | ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md index a438ec165818..fbbf5829504e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/doc/FakeApi.md @@ -321,7 +321,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterStringSerialize** -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -332,10 +332,10 @@ Test serialization of outer string types import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final String body = body_example; // String | Input string as post body +final OuterString outerString = outerString_example; // OuterString | Input string as post body try { - final response = api.fakeOuterStringSerialize(body); + final response = api.fakeOuterStringSerialize(outerString); print(response); } on DioException catch (e) { print('Exception when calling FakeApi->fakeOuterStringSerialize: $e\n'); @@ -346,7 +346,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] + **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart index 95e28581f213..2f3f2225823e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/api/fake_api.dart @@ -18,6 +18,7 @@ import 'package:openapi/src/model/model_enum_class.dart'; import 'package:openapi/src/model/object_that_references_objects_with_duplicate_inline_enums.dart'; import 'package:openapi/src/model/outer_composite.dart'; import 'package:openapi/src/model/outer_object_with_enum_property.dart'; +import 'package:openapi/src/model/outer_string.dart'; import 'package:openapi/src/model/pet.dart'; import 'package:openapi/src/model/test_inline_freeform_additional_properties_request.dart'; import 'package:openapi/src/model/user.dart'; @@ -594,7 +595,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'num', g /// Test serialization of outer string types /// /// Parameters: - /// * [body] - Input string as post body + /// * [outerString] - Input string as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -605,7 +606,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'num', g /// Returns a [Future] containing a [Response] with a [String] as data /// Throws [DioException] if API call or serialization fails Future> fakeOuterStringSerialize({ - String? body, + OuterString? outerString, CancelToken? cancelToken, Map? headers, Map? extra, @@ -630,7 +631,7 @@ _responseData = rawData == null ? null : deserialize(rawData, 'num', g dynamic _bodyData; try { -_bodyData=jsonEncode(body); +_bodyData=jsonEncode(outerString); } catch(error, stackTrace) { throw DioException( requestOptions: _options.compose( diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md index b458ce09db28..bb33632bdb0e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/doc/FakeApi.md @@ -321,7 +321,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterStringSerialize** -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -332,10 +332,10 @@ Test serialization of outer string types import 'package:openapi/api.dart'; final api = Openapi().getFakeApi(); -final String body = body_example; // String | Input string as post body +final OuterString outerString = outerString_example; // OuterString | Input string as post body try { - final response = api.fakeOuterStringSerialize(body); + final response = api.fakeOuterStringSerialize(outerString); print(response); } on DioException catch (e) { print('Exception when calling FakeApi->fakeOuterStringSerialize: $e\n'); @@ -346,7 +346,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] + **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart index 2c26b06536d9..f20664cbfba8 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/api/fake_api.dart @@ -22,6 +22,7 @@ import 'package:openapi/src/model/model_enum_class.dart'; import 'package:openapi/src/model/object_that_references_objects_with_duplicate_inline_enums.dart'; import 'package:openapi/src/model/outer_composite.dart'; import 'package:openapi/src/model/outer_object_with_enum_property.dart'; +import 'package:openapi/src/model/outer_string.dart'; import 'package:openapi/src/model/pet.dart'; import 'package:openapi/src/model/test_inline_freeform_additional_properties_request.dart'; import 'package:openapi/src/model/user.dart'; @@ -618,7 +619,7 @@ class FakeApi { /// Test serialization of outer string types /// /// Parameters: - /// * [body] - Input string as post body + /// * [outerString] - Input string as post body /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -629,7 +630,7 @@ class FakeApi { /// Returns a [Future] containing a [Response] with a [String] as data /// Throws [DioException] if API call or serialization fails Future> fakeOuterStringSerialize({ - String? body, + OuterString? outerString, CancelToken? cancelToken, Map? headers, Map? extra, @@ -654,7 +655,8 @@ class FakeApi { dynamic _bodyData; try { - _bodyData = body; + const _type = FullType(OuterString); + _bodyData = outerString == null ? null : _serializers.serialize(outerString, specifiedType: _type); } catch(error, stackTrace) { throw DioException( diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md index d5621895e316..4dbbaf998ad2 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/doc/FakeApi.md @@ -321,7 +321,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fakeOuterStringSerialize** -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -332,10 +332,10 @@ Test serialization of outer string types import 'package:openapi/api.dart'; final api_instance = FakeApi(); -final body = String(); // String | Input string as post body +final outerString = OuterString(); // OuterString | Input string as post body try { - final result = api_instance.fakeOuterStringSerialize(body); + final result = api_instance.fakeOuterStringSerialize(outerString); print(result); } catch (e) { print('Exception when calling FakeApi->fakeOuterStringSerialize: $e\n'); @@ -346,7 +346,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **String**| Input string as post body | [optional] + **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart index 4d970ba6cf01..4a2c9091d1e9 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/api/fake_api.dart @@ -382,14 +382,14 @@ class FakeApi { /// /// Parameters: /// - /// * [String] body: + /// * [OuterString] outerString: /// Input string as post body - Future fakeOuterStringSerializeWithHttpInfo({ String? body, }) async { + Future fakeOuterStringSerializeWithHttpInfo({ OuterString? outerString, }) async { // ignore: prefer_const_declarations final path = r'/fake/outer/string'; // ignore: prefer_final_locals - Object? postBody = body; + Object? postBody = outerString; final queryParams = []; final headerParams = {}; @@ -413,10 +413,10 @@ class FakeApi { /// /// Parameters: /// - /// * [String] body: + /// * [OuterString] outerString: /// Input string as post body - Future fakeOuterStringSerialize({ String? body, }) async { - final response = await fakeOuterStringSerializeWithHttpInfo( body: body, ); + Future fakeOuterStringSerialize({ OuterString? outerString, }) async { + final response = await fakeOuterStringSerializeWithHttpInfo( outerString: outerString, ); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_fake.go b/samples/openapi3/client/petstore/go/go-petstore/api_fake.go index 063323ff0824..3fd5a3db411c 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_fake.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_fake.go @@ -726,12 +726,12 @@ func (a *FakeAPIService) FakeOuterNumberSerializeExecute(r ApiFakeOuterNumberSer type ApiFakeOuterStringSerializeRequest struct { ctx context.Context ApiService FakeAPI - body *string + outerString *OuterString } // Input string as post body -func (r ApiFakeOuterStringSerializeRequest) Body(body string) ApiFakeOuterStringSerializeRequest { - r.body = &body +func (r ApiFakeOuterStringSerializeRequest) OuterString(outerString OuterString) ApiFakeOuterStringSerializeRequest { + r.outerString = &outerString return r } @@ -793,7 +793,7 @@ func (a *FakeAPIService) FakeOuterStringSerializeExecute(r ApiFakeOuterStringSer localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.body + localVarPostBody = r.outerString req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/samples/openapi3/client/petstore/go/go-petstore/docs/FakeAPI.md b/samples/openapi3/client/petstore/go/go-petstore/docs/FakeAPI.md index fb380f21673d..16826adfc3df 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/docs/FakeAPI.md +++ b/samples/openapi3/client/petstore/go/go-petstore/docs/FakeAPI.md @@ -287,7 +287,7 @@ No authorization required ## FakeOuterStringSerialize -> string FakeOuterStringSerialize(ctx).Body(body).Execute() +> string FakeOuterStringSerialize(ctx).OuterString(outerString).Execute() @@ -306,11 +306,11 @@ import ( ) func main() { - body := "body_example" // string | Input string as post body (optional) + outerString := TODO // OuterString | Input string as post body (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.FakeAPI.FakeOuterStringSerialize(context.Background()).Body(body).Execute() + resp, r, err := apiClient.FakeAPI.FakeOuterStringSerialize(context.Background()).OuterString(outerString).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FakeAPI.FakeOuterStringSerialize``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -331,7 +331,7 @@ Other parameters are passed through a pointer to a apiFakeOuterStringSerializeRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string** | Input string as post body | + **outerString** | [**OuterString**](OuterString.md) | Input string as post body | ### Return type diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md index 3816afc1ce7c..6ec4429235f8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -283,7 +283,7 @@ No authorization required ## fakeOuterStringSerialize -> String fakeOuterStringSerialize(body) +> String fakeOuterStringSerialize(outerString) @@ -305,9 +305,9 @@ public class Example { defaultClient.setBasePath("http://petstore.swagger.io:80/v2"); FakeApi apiInstance = new FakeApi(defaultClient); - String body = "body_example"; // String | Input string as post body + OuterString outerString = new OuterString(); // OuterString | Input string as post body try { - String result = apiInstance.fakeOuterStringSerialize(body); + String result = apiInstance.fakeOuterStringSerialize(outerString); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FakeApi#fakeOuterStringSerialize"); @@ -325,7 +325,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | **String**| Input string as post body | [optional] | +| **outerString** | [**OuterString**](OuterString.md)| Input string as post body | [optional] | ### Return type diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java index 14037381282a..73d3feb69a7c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/FakeApi.java @@ -17,6 +17,7 @@ import java.time.OffsetDateTime; import org.openapitools.client.model.OuterComposite; import org.openapitools.client.model.OuterEnum; +import org.openapitools.client.model.OuterString; import org.openapitools.client.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.client.model.User; @@ -209,7 +210,7 @@ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annot /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return String * @throws ApiException if fails to make API call * @http.response.details @@ -219,14 +220,14 @@ public ApiResponse fakeOuterNumberSerializeWithHttpInfo(@javax.annot 200 Output string - */ - public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws ApiException { - return fakeOuterStringSerializeWithHttpInfo(body).getData(); + public String fakeOuterStringSerialize(@javax.annotation.Nullable OuterString outerString) throws ApiException { + return fakeOuterStringSerializeWithHttpInfo(outerString).getData(); } /** * * Test serialization of outer string types - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return ApiResponse<String> * @throws ApiException if fails to make API call * @http.response.details @@ -236,11 +237,11 @@ public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) t 200 Output string - */ - public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws ApiException { + public ApiResponse fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable OuterString outerString) throws ApiException { String localVarAccept = apiClient.selectHeaderAccept("*/*"); String localVarContentType = apiClient.selectHeaderContentType("application/json"); GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("FakeApi.fakeOuterStringSerialize", "/fake/outer/string", "POST", new ArrayList<>(), body, + return apiClient.invokeAPI("FakeApi.fakeOuterStringSerialize", "/fake/outer/string", "POST", new ArrayList<>(), outerString, new LinkedHashMap<>(), new LinkedHashMap<>(), new LinkedHashMap<>(), localVarAccept, localVarContentType, null, localVarReturnType, false); } diff --git a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md index 843b8f246632..2adfc002dcce 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-aiohttp/docs/FakeApi.md @@ -561,7 +561,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> str fake_outer_string_serialize(body=body) +> str fake_outer_string_serialize(outer_string=outer_string) Test serialization of outer string types @@ -584,10 +584,10 @@ configuration = petstore_api.Configuration( async with petstore_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = petstore_api.FakeApi(api_client) - body = 'body_example' # str | Input string as post body (optional) + outer_string = petstore_api.OuterString() # OuterString | Input string as post body (optional) try: - api_response = await api_instance.fake_outer_string_serialize(body=body) + api_response = await api_instance.fake_outer_string_serialize(outer_string=outer_string) print("The response of FakeApi->fake_outer_string_serialize:\n") pprint(api_response) except Exception as e: @@ -601,7 +601,7 @@ async with petstore_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py index 3bb7f0218ef8..0143896266d9 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/api/fake_api.py @@ -1930,7 +1930,7 @@ def _fake_outer_number_serialize_serialize( @validate_call async def fake_outer_string_serialize( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1948,8 +1948,8 @@ async def fake_outer_string_serialize( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1973,7 +1973,7 @@ async def fake_outer_string_serialize( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1997,7 +1997,7 @@ async def fake_outer_string_serialize( @validate_call async def fake_outer_string_serialize_with_http_info( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2015,8 +2015,8 @@ async def fake_outer_string_serialize_with_http_info( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2040,7 +2040,7 @@ async def fake_outer_string_serialize_with_http_info( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2064,7 +2064,7 @@ async def fake_outer_string_serialize_with_http_info( @validate_call async def fake_outer_string_serialize_without_preload_content( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2082,8 +2082,8 @@ async def fake_outer_string_serialize_without_preload_content( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2107,7 +2107,7 @@ async def fake_outer_string_serialize_without_preload_content( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2126,7 +2126,7 @@ async def fake_outer_string_serialize_without_preload_content( def _fake_outer_string_serialize_serialize( self, - body, + outer_string, _request_auth, _content_type, _headers, @@ -2152,8 +2152,8 @@ def _fake_outer_string_serialize_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if outer_string is not None: + _body_params = outer_string # set the HTTP header `Accept` diff --git a/samples/openapi3/client/petstore/python-httpx/docs/FakeApi.md b/samples/openapi3/client/petstore/python-httpx/docs/FakeApi.md index 843b8f246632..2adfc002dcce 100644 --- a/samples/openapi3/client/petstore/python-httpx/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-httpx/docs/FakeApi.md @@ -561,7 +561,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> str fake_outer_string_serialize(body=body) +> str fake_outer_string_serialize(outer_string=outer_string) Test serialization of outer string types @@ -584,10 +584,10 @@ configuration = petstore_api.Configuration( async with petstore_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = petstore_api.FakeApi(api_client) - body = 'body_example' # str | Input string as post body (optional) + outer_string = petstore_api.OuterString() # OuterString | Input string as post body (optional) try: - api_response = await api_instance.fake_outer_string_serialize(body=body) + api_response = await api_instance.fake_outer_string_serialize(outer_string=outer_string) print("The response of FakeApi->fake_outer_string_serialize:\n") pprint(api_response) except Exception as e: @@ -601,7 +601,7 @@ async with petstore_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py index 3bb7f0218ef8..0143896266d9 100644 --- a/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-httpx/petstore_api/api/fake_api.py @@ -1930,7 +1930,7 @@ def _fake_outer_number_serialize_serialize( @validate_call async def fake_outer_string_serialize( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1948,8 +1948,8 @@ async def fake_outer_string_serialize( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1973,7 +1973,7 @@ async def fake_outer_string_serialize( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1997,7 +1997,7 @@ async def fake_outer_string_serialize( @validate_call async def fake_outer_string_serialize_with_http_info( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2015,8 +2015,8 @@ async def fake_outer_string_serialize_with_http_info( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2040,7 +2040,7 @@ async def fake_outer_string_serialize_with_http_info( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2064,7 +2064,7 @@ async def fake_outer_string_serialize_with_http_info( @validate_call async def fake_outer_string_serialize_without_preload_content( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2082,8 +2082,8 @@ async def fake_outer_string_serialize_without_preload_content( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2107,7 +2107,7 @@ async def fake_outer_string_serialize_without_preload_content( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2126,7 +2126,7 @@ async def fake_outer_string_serialize_without_preload_content( def _fake_outer_string_serialize_serialize( self, - body, + outer_string, _request_auth, _content_type, _headers, @@ -2152,8 +2152,8 @@ def _fake_outer_string_serialize_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if outer_string is not None: + _body_params = outer_string # set the HTTP header `Accept` diff --git a/samples/openapi3/client/petstore/python-lazyImports/docs/FakeApi.md b/samples/openapi3/client/petstore/python-lazyImports/docs/FakeApi.md index 8adef01f88e6..30d8f8656720 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-lazyImports/docs/FakeApi.md @@ -561,7 +561,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> str fake_outer_string_serialize(body=body) +> str fake_outer_string_serialize(outer_string=outer_string) Test serialization of outer string types @@ -584,10 +584,10 @@ configuration = petstore_api.Configuration( with petstore_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = petstore_api.FakeApi(api_client) - body = 'body_example' # str | Input string as post body (optional) + outer_string = petstore_api.OuterString() # OuterString | Input string as post body (optional) try: - api_response = api_instance.fake_outer_string_serialize(body=body) + api_response = api_instance.fake_outer_string_serialize(outer_string=outer_string) print("The response of FakeApi->fake_outer_string_serialize:\n") pprint(api_response) except Exception as e: @@ -601,7 +601,7 @@ with petstore_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py index 17761ab9bd0e..ed8943548208 100644 --- a/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-lazyImports/petstore_api/api/fake_api.py @@ -1930,7 +1930,7 @@ def _fake_outer_number_serialize_serialize( @validate_call def fake_outer_string_serialize( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1948,8 +1948,8 @@ def fake_outer_string_serialize( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1973,7 +1973,7 @@ def fake_outer_string_serialize( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1997,7 +1997,7 @@ def fake_outer_string_serialize( @validate_call def fake_outer_string_serialize_with_http_info( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2015,8 +2015,8 @@ def fake_outer_string_serialize_with_http_info( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2040,7 +2040,7 @@ def fake_outer_string_serialize_with_http_info( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2064,7 +2064,7 @@ def fake_outer_string_serialize_with_http_info( @validate_call def fake_outer_string_serialize_without_preload_content( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2082,8 +2082,8 @@ def fake_outer_string_serialize_without_preload_content( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2107,7 +2107,7 @@ def fake_outer_string_serialize_without_preload_content( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2126,7 +2126,7 @@ def fake_outer_string_serialize_without_preload_content( def _fake_outer_string_serialize_serialize( self, - body, + outer_string, _request_auth, _content_type, _headers, @@ -2152,8 +2152,8 @@ def _fake_outer_string_serialize_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if outer_string is not None: + _body_params = outer_string # set the HTTP header `Accept` diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md index 6aa84ef041f1..c94734ad184b 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/docs/FakeApi.md @@ -568,7 +568,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> str fake_outer_string_serialize(body=body) +> str fake_outer_string_serialize(outer_string=outer_string) @@ -594,10 +594,10 @@ configuration = petstore_api.Configuration( async with petstore_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = petstore_api.FakeApi(api_client) - body = 'body_example' # str | Input string as post body (optional) + outer_string = petstore_api.OuterString() # OuterString | Input string as post body (optional) try: - api_response = await api_instance.fake_outer_string_serialize(body=body) + api_response = await api_instance.fake_outer_string_serialize(outer_string=outer_string) print("The response of FakeApi->fake_outer_string_serialize:\n") pprint(api_response) except Exception as e: @@ -610,7 +610,7 @@ async with petstore_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/api/fake_api.py index 7ee53259a5b9..3e2e23d695db 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/api/fake_api.py @@ -947,13 +947,13 @@ async def fake_outer_number_serialize_with_http_info(self, body : Annotated[Opti _request_auth=_params.get('_request_auth')) @validate_arguments - async def fake_outer_string_serialize(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> str: # noqa: E501 + async def fake_outer_string_serialize(self, outer_string : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> str: # noqa: E501 """fake_outer_string_serialize # noqa: E501 Test serialization of outer string types # noqa: E501 - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -967,16 +967,16 @@ async def fake_outer_string_serialize(self, body : Annotated[Optional[StrictStr] if '_preload_content' in kwargs: message = "Error! Please call the fake_outer_string_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 raise ValueError(message) - return await self.fake_outer_string_serialize_with_http_info(body, **kwargs) # noqa: E501 + return await self.fake_outer_string_serialize_with_http_info(outer_string, **kwargs) # noqa: E501 @validate_arguments - async def fake_outer_string_serialize_with_http_info(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501 + async def fake_outer_string_serialize_with_http_info(self, outer_string : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501 """fake_outer_string_serialize # noqa: E501 Test serialization of outer string types # noqa: E501 - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _preload_content: if False, the ApiResponse.data will be set to none and raw_data will store the HTTP response body without reading/decoding. @@ -1003,7 +1003,7 @@ async def fake_outer_string_serialize_with_http_info(self, body : Annotated[Opti _params = locals() _all_params = [ - 'body' + 'outer_string' ] _all_params.extend( [ @@ -1040,8 +1040,8 @@ async def fake_outer_string_serialize_with_http_info(self, body : Annotated[Opti _files = {} # process the body parameter _body_params = None - if _params['body'] is not None: - _body_params = _params['body'] + if _params['outer_string'] is not None: + _body_params = _params['outer_string'] # set the HTTP header `Accept` _header_params['Accept'] = self.api_client.select_header_accept( diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md b/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md index 6935c8587a23..cbe94a5595d1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python-pydantic-v1/docs/FakeApi.md @@ -568,7 +568,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> str fake_outer_string_serialize(body=body) +> str fake_outer_string_serialize(outer_string=outer_string) @@ -594,10 +594,10 @@ configuration = petstore_api.Configuration( with petstore_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = petstore_api.FakeApi(api_client) - body = 'body_example' # str | Input string as post body (optional) + outer_string = petstore_api.OuterString() # OuterString | Input string as post body (optional) try: - api_response = api_instance.fake_outer_string_serialize(body=body) + api_response = api_instance.fake_outer_string_serialize(outer_string=outer_string) print("The response of FakeApi->fake_outer_string_serialize:\n") pprint(api_response) except Exception as e: @@ -610,7 +610,7 @@ with petstore_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/api/fake_api.py index 62ef06ed6b0e..813f60320cb2 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/api/fake_api.py @@ -1058,18 +1058,18 @@ def fake_outer_number_serialize_with_http_info(self, body : Annotated[Optional[S _request_auth=_params.get('_request_auth')) @validate_arguments - def fake_outer_string_serialize(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> str: # noqa: E501 + def fake_outer_string_serialize(self, outer_string : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> str: # noqa: E501 """fake_outer_string_serialize # noqa: E501 Test serialization of outer string types # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.fake_outer_string_serialize(body, async_req=True) + >>> thread = api.fake_outer_string_serialize(outer_string, async_req=True) >>> result = thread.get() - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _request_timeout: timeout setting for this request. @@ -1085,21 +1085,21 @@ def fake_outer_string_serialize(self, body : Annotated[Optional[StrictStr], Fiel if '_preload_content' in kwargs: message = "Error! Please call the fake_outer_string_serialize_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 raise ValueError(message) - return self.fake_outer_string_serialize_with_http_info(body, **kwargs) # noqa: E501 + return self.fake_outer_string_serialize_with_http_info(outer_string, **kwargs) # noqa: E501 @validate_arguments - def fake_outer_string_serialize_with_http_info(self, body : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def fake_outer_string_serialize_with_http_info(self, outer_string : Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, **kwargs) -> ApiResponse: # noqa: E501 """fake_outer_string_serialize # noqa: E501 Test serialization of outer string types # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.fake_outer_string_serialize_with_http_info(body, async_req=True) + >>> thread = api.fake_outer_string_serialize_with_http_info(outer_string, async_req=True) >>> result = thread.get() - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param async_req: Whether to execute the request asynchronously. :type async_req: bool, optional :param _preload_content: if False, the ApiResponse.data will @@ -1128,7 +1128,7 @@ def fake_outer_string_serialize_with_http_info(self, body : Annotated[Optional[S _params = locals() _all_params = [ - 'body' + 'outer_string' ] _all_params.extend( [ @@ -1166,8 +1166,8 @@ def fake_outer_string_serialize_with_http_info(self, body : Annotated[Optional[S _files = {} # process the body parameter _body_params = None - if _params['body'] is not None: - _body_params = _params['body'] + if _params['outer_string'] is not None: + _body_params = _params['outer_string'] # set the HTTP header `Accept` _header_params['Accept'] = self.api_client.select_header_accept( diff --git a/samples/openapi3/client/petstore/python/docs/FakeApi.md b/samples/openapi3/client/petstore/python/docs/FakeApi.md index 8adef01f88e6..30d8f8656720 100644 --- a/samples/openapi3/client/petstore/python/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/python/docs/FakeApi.md @@ -561,7 +561,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **fake_outer_string_serialize** -> str fake_outer_string_serialize(body=body) +> str fake_outer_string_serialize(outer_string=outer_string) Test serialization of outer string types @@ -584,10 +584,10 @@ configuration = petstore_api.Configuration( with petstore_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = petstore_api.FakeApi(api_client) - body = 'body_example' # str | Input string as post body (optional) + outer_string = petstore_api.OuterString() # OuterString | Input string as post body (optional) try: - api_response = api_instance.fake_outer_string_serialize(body=body) + api_response = api_instance.fake_outer_string_serialize(outer_string=outer_string) print("The response of FakeApi->fake_outer_string_serialize:\n") pprint(api_response) except Exception as e: @@ -601,7 +601,7 @@ with petstore_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **str**| Input string as post body | [optional] + **outer_string** | [**OuterString**](OuterString.md)| Input string as post body | [optional] ### Return type diff --git a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py index 17761ab9bd0e..ed8943548208 100755 --- a/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api/fake_api.py @@ -1930,7 +1930,7 @@ def _fake_outer_number_serialize_serialize( @validate_call def fake_outer_string_serialize( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1948,8 +1948,8 @@ def fake_outer_string_serialize( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1973,7 +1973,7 @@ def fake_outer_string_serialize( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1997,7 +1997,7 @@ def fake_outer_string_serialize( @validate_call def fake_outer_string_serialize_with_http_info( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2015,8 +2015,8 @@ def fake_outer_string_serialize_with_http_info( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2040,7 +2040,7 @@ def fake_outer_string_serialize_with_http_info( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2064,7 +2064,7 @@ def fake_outer_string_serialize_with_http_info( @validate_call def fake_outer_string_serialize_without_preload_content( self, - body: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, + outer_string: Annotated[Optional[StrictStr], Field(description="Input string as post body")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2082,8 +2082,8 @@ def fake_outer_string_serialize_without_preload_content( Test serialization of outer string types - :param body: Input string as post body - :type body: str + :param outer_string: Input string as post body + :type outer_string: OuterString :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2107,7 +2107,7 @@ def fake_outer_string_serialize_without_preload_content( """ # noqa: E501 _param = self._fake_outer_string_serialize_serialize( - body=body, + outer_string=outer_string, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2126,7 +2126,7 @@ def fake_outer_string_serialize_without_preload_content( def _fake_outer_string_serialize_serialize( self, - body, + outer_string, _request_auth, _content_type, _headers, @@ -2152,8 +2152,8 @@ def _fake_outer_string_serialize_serialize( # process the header parameters # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if outer_string is not None: + _body_params = outer_string # set the HTTP header `Accept` diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java index 499f26919c69..348131e4d0f3 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.v3.oas.annotations.ExternalDocumentation; @@ -165,7 +166,7 @@ ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @Operation( @@ -185,7 +186,7 @@ ResponseEntity fakeOuterNumberSerialize( consumes = "application/json" ) ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @Parameter(name = "OuterString", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ); diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/FakeApi.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/FakeApi.ts index d4dcd8f7ce08..fef35197b2b6 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/FakeApi.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/apis/FakeApi.ts @@ -17,6 +17,7 @@ import { FileSchemaTestClass } from '../models/FileSchemaTestClass'; import { HealthCheckResult } from '../models/HealthCheckResult'; import { OuterComposite } from '../models/OuterComposite'; import { OuterObjectWithEnumProperty } from '../models/OuterObjectWithEnumProperty'; +import { OuterString } from '../models/OuterString'; import { Pet } from '../models/Pet'; import { User } from '../models/User'; @@ -242,9 +243,9 @@ export class FakeApiRequestFactory extends BaseAPIRequestFactory { /** * Test serialization of outer string types - * @param body Input string as post body + * @param outerString Input string as post body */ - public async fakeOuterStringSerialize(body?: string, _options?: Configuration): Promise { + public async fakeOuterStringSerialize(outerString?: OuterString, _options?: Configuration): Promise { let _config = _options || this.configuration; @@ -262,7 +263,7 @@ export class FakeApiRequestFactory extends BaseAPIRequestFactory { ]); requestContext.setHeaderParam("Content-Type", contentType); const serializedBody = ObjectSerializer.stringify( - ObjectSerializer.serialize(body, "string", ""), + ObjectSerializer.serialize(outerString, "OuterString", ""), contentType ); requestContext.setBody(serializedBody); diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/docs/FakeApi.md b/samples/openapi3/client/petstore/typescript/builds/explode-query/docs/FakeApi.md index 4afa96edc2e9..80f98933457c 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/docs/FakeApi.md @@ -370,7 +370,7 @@ const apiInstance = new FakeApi(configuration); const request: FakeApiFakeOuterStringSerializeRequest = { // Input string as post body (optional) - body: "body_example", + outerString: "outerString_example", }; const data = await apiInstance.fakeOuterStringSerialize(request); @@ -382,7 +382,7 @@ console.log('API called successfully. Returned data:', data); Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **string**| Input string as post body | + **outerString** | **OuterString**| Input string as post body | ### Return type diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObjectParamAPI.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObjectParamAPI.ts index 259a88a703af..21469ed66489 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObjectParamAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObjectParamAPI.ts @@ -180,10 +180,10 @@ export interface FakeApiFakeOuterNumberSerializeRequest { export interface FakeApiFakeOuterStringSerializeRequest { /** * Input string as post body - * @type string + * @type OuterString * @memberof FakeApifakeOuterStringSerialize */ - body?: string + outerString?: OuterString } export interface FakeApiFakePropertyEnumIntegerSerializeRequest { @@ -645,7 +645,7 @@ export class ObjectFakeApi { * @param param the request object */ public fakeOuterStringSerializeWithHttpInfo(param: FakeApiFakeOuterStringSerializeRequest = {}, options?: ConfigurationOptions): Promise> { - return this.api.fakeOuterStringSerializeWithHttpInfo(param.body, options).toPromise(); + return this.api.fakeOuterStringSerializeWithHttpInfo(param.outerString, options).toPromise(); } /** @@ -653,7 +653,7 @@ export class ObjectFakeApi { * @param param the request object */ public fakeOuterStringSerialize(param: FakeApiFakeOuterStringSerializeRequest = {}, options?: ConfigurationOptions): Promise { - return this.api.fakeOuterStringSerialize(param.body, options).toPromise(); + return this.api.fakeOuterStringSerialize(param.outerString, options).toPromise(); } /** diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObservableAPI.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObservableAPI.ts index e6627dbbe7a8..d6b4f69d1f1d 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObservableAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/types/ObservableAPI.ts @@ -359,12 +359,12 @@ export class ObservableFakeApi { /** * Test serialization of outer string types - * @param [body] Input string as post body + * @param [outerString] Input string as post body */ - public fakeOuterStringSerializeWithHttpInfo(body?: string, _options?: ConfigurationOptions): Observable> { + public fakeOuterStringSerializeWithHttpInfo(outerString?: OuterString, _options?: ConfigurationOptions): Observable> { const _config = mergeConfiguration(this.configuration, _options); - const requestContextPromise = this.requestFactory.fakeOuterStringSerialize(body, _config); + const requestContextPromise = this.requestFactory.fakeOuterStringSerialize(outerString, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); for (const middleware of _config.middleware) { @@ -383,10 +383,10 @@ export class ObservableFakeApi { /** * Test serialization of outer string types - * @param [body] Input string as post body + * @param [outerString] Input string as post body */ - public fakeOuterStringSerialize(body?: string, _options?: ConfigurationOptions): Observable { - return this.fakeOuterStringSerializeWithHttpInfo(body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + public fakeOuterStringSerialize(outerString?: OuterString, _options?: ConfigurationOptions): Observable { + return this.fakeOuterStringSerializeWithHttpInfo(outerString, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** diff --git a/samples/openapi3/client/petstore/typescript/builds/explode-query/types/PromiseAPI.ts b/samples/openapi3/client/petstore/typescript/builds/explode-query/types/PromiseAPI.ts index 41a2e59b3840..5a3aa2d21718 100644 --- a/samples/openapi3/client/petstore/typescript/builds/explode-query/types/PromiseAPI.ts +++ b/samples/openapi3/client/petstore/typescript/builds/explode-query/types/PromiseAPI.ts @@ -261,21 +261,21 @@ export class PromiseFakeApi { /** * Test serialization of outer string types - * @param [body] Input string as post body + * @param [outerString] Input string as post body */ - public fakeOuterStringSerializeWithHttpInfo(body?: string, _options?: PromiseConfigurationOptions): Promise> { + public fakeOuterStringSerializeWithHttpInfo(outerString?: OuterString, _options?: PromiseConfigurationOptions): Promise> { const observableOptions = wrapOptions(_options); - const result = this.api.fakeOuterStringSerializeWithHttpInfo(body, observableOptions); + const result = this.api.fakeOuterStringSerializeWithHttpInfo(outerString, observableOptions); return result.toPromise(); } /** * Test serialization of outer string types - * @param [body] Input string as post body + * @param [outerString] Input string as post body */ - public fakeOuterStringSerialize(body?: string, _options?: PromiseConfigurationOptions): Promise { + public fakeOuterStringSerialize(outerString?: OuterString, _options?: PromiseConfigurationOptions): Promise { const observableOptions = wrapOptions(_options); - const result = this.api.fakeOuterStringSerialize(body, observableOptions); + const result = this.api.fakeOuterStringSerialize(outerString, observableOptions); return result.toPromise(); } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 78e9ee2df57e..af92f1451f0a 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -178,7 +179,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @Operation( @@ -198,9 +199,9 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @Parameter(name = "OuterString", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { - return getDelegate().fakeOuterStringSerialize(body); + return getDelegate().fakeOuterStringSerialize(outerString); } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java index 46fcce25dd85..e18bcf4c5099 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -11,6 +11,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -103,11 +104,11 @@ default ResponseEntity fakeOuterNumberSerialize(BigDecimal body) { * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - default ResponseEntity fakeOuterStringSerialize(String body) { + default ResponseEntity fakeOuterStringSerialize(OuterString outerString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index 68b3944d2d58..cb50b38e6c55 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -195,7 +196,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @Operation( @@ -215,7 +216,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @Parameter(name = "OuterString", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.cpp b/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.cpp index 33208f75c74a..9206b0772f3b 100644 --- a/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.cpp +++ b/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.cpp @@ -852,7 +852,7 @@ void FakeOuterStringResource::handler_POST_internal(const std::shared_ptrget_request(); // body params or form params here from the body content string std::string bodyContent = extractBodyContent(session); - auto body = boost::lexical_cast(bodyContent); + auto outerString = extractJsonModelBodyParam(bodyContent); int status_code = 500; std::string resultObject = ""; @@ -860,7 +860,7 @@ void FakeOuterStringResource::handler_POST_internal(const std::shared_ptr FakeOuterStringResource::handler_POST( - std::string & body) + OuterString & outerString) { - return handler_POST_func(body); + return handler_POST_func(outerString); } diff --git a/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.h b/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.h index 0b355a1835e0..f74bb76ecadd 100644 --- a/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.h +++ b/samples/server/petstore/cpp-restbed/generated/3_0/api/FakeApi.h @@ -40,6 +40,7 @@ #include "HealthCheckResult.h" #include "OuterComposite.h" #include "OuterObjectWithEnumProperty.h" +#include "OuterString.h" #include "Pet.h" #include "TestInlineFreeformAdditionalProperties_request.h" #include "User.h" @@ -466,8 +467,8 @@ class FakeOuterStringResource: public restbed::Resource // Set these to implement the server functionality // ///////////////////////////////////////////////////// std::function( - std::string & body)> handler_POST_func = - [](std::string &) -> std::pair + OuterString & outerString)> handler_POST_func = + [](OuterString &) -> std::pair { throw FakeApiException(501, "Not implemented"); }; @@ -478,7 +479,7 @@ class FakeOuterStringResource: public restbed::Resource ////////////////////////////////////////////////////////// virtual std::pair handler_POST( - std::string & body); + OuterString & outerString); protected: diff --git a/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeService.java b/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeService.java index ffdaf81685e1..e28a427a728c 100644 --- a/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeService.java +++ b/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeService.java @@ -26,6 +26,7 @@ import java.time.OffsetDateTime; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import org.openapitools.server.model.Pet; import org.openapitools.server.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.server.model.User; @@ -79,7 +80,7 @@ public interface FakeService { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(@Valid String body); + String fakeOuterStringSerialize(@Valid OuterString outerString); @POST @Path("/property/enum-int") diff --git a/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java b/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java index 9f271c5cf229..2a342bd705ca 100644 --- a/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java +++ b/samples/server/petstore/java-helidon-server/v3/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java @@ -26,6 +26,7 @@ import java.time.OffsetDateTime; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import org.openapitools.server.model.Pet; import org.openapitools.server.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.server.model.User; @@ -96,7 +97,7 @@ public BigDecimal fakeOuterNumberSerialize(@Valid BigDecimal body) { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - public String fakeOuterStringSerialize(@Valid String body) { + public String fakeOuterStringSerialize(@Valid OuterString outerString) { String result = ""; // Replace with correct business logic. return result; } diff --git a/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeService.java b/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeService.java index 6455447871e9..560992246837 100644 --- a/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeService.java +++ b/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeService.java @@ -16,6 +16,7 @@ import java.time.OffsetDateTime; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import org.openapitools.server.model.Pet; import org.openapitools.server.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.server.model.User; @@ -39,7 +40,7 @@ default void update(Routing.Rules rules) { rules.post("/fake/outer/boolean", this::fakeOuterBooleanSerialize); rules.post("/fake/outer/composite", Handler.create(OuterComposite.class, this::fakeOuterCompositeSerialize)); rules.post("/fake/outer/number", this::fakeOuterNumberSerialize); - rules.post("/fake/outer/string", this::fakeOuterStringSerialize); + rules.post("/fake/outer/string", Handler.create(OuterString.class, this::fakeOuterStringSerialize)); rules.post("/fake/property/enum-int", Handler.create(OuterObjectWithEnumProperty.class, this::fakePropertyEnumIntegerSerialize)); rules.post("/fake/additionalProperties-reference", this::testAdditionalPropertiesReference); rules.put("/fake/body-with-binary", this::testBodyWithBinary); @@ -106,8 +107,9 @@ default void update(Routing.Rules rules) { * POST /fake/outer/string. * @param request the server request * @param response the server response + * @param outerString Input string as post body */ - void fakeOuterStringSerialize(ServerRequest request, ServerResponse response); + void fakeOuterStringSerialize(ServerRequest request, ServerResponse response, OuterString outerString); /** * POST /fake/property/enum-int. diff --git a/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java b/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java index 6d4fe55bbe02..830b6f8ec18c 100644 --- a/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java +++ b/samples/server/petstore/java-helidon-server/v3/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java @@ -16,6 +16,7 @@ import java.time.OffsetDateTime; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import org.openapitools.server.model.Pet; import org.openapitools.server.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.server.model.User; @@ -55,7 +56,7 @@ public void fakeOuterNumberSerialize(ServerRequest request, ServerResponse respo response.status(HTTP_CODE_NOT_IMPLEMENTED).send(); } - public void fakeOuterStringSerialize(ServerRequest request, ServerResponse response) { + public void fakeOuterStringSerialize(ServerRequest request, ServerResponse response, OuterString outerString) { response.status(HTTP_CODE_NOT_IMPLEMENTED).send(); } diff --git a/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeService.java b/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeService.java index 78aef37359f1..22c3f05319b6 100644 --- a/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeService.java +++ b/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeService.java @@ -27,6 +27,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import org.openapitools.server.model.Pet; import org.openapitools.server.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.server.model.User; @@ -80,7 +81,7 @@ public interface FakeService { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - String fakeOuterStringSerialize(@Valid String body); + String fakeOuterStringSerialize(@Valid OuterString outerString); @POST @Path("/property/enum-int") diff --git a/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java b/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java index dcc95633e110..4a41ae81c4b7 100644 --- a/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java +++ b/samples/server/petstore/java-helidon-server/v4/mp/src/main/java/org/openapitools/server/api/FakeServiceImpl.java @@ -27,6 +27,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import org.openapitools.server.model.Pet; import org.openapitools.server.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.server.model.User; @@ -97,7 +98,7 @@ public BigDecimal fakeOuterNumberSerialize(@Valid BigDecimal body) { @Path("/outer/string") @Consumes({ "application/json" }) @Produces({ "*/*" }) - public String fakeOuterStringSerialize(@Valid String body) { + public String fakeOuterStringSerialize(@Valid OuterString outerString) { String result = ""; // Replace with correct business logic. return result; } diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeService.java b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeService.java index 6caa30314595..b17f488d7613 100644 --- a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeService.java +++ b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeService.java @@ -29,6 +29,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import io.helidon.common.parameters.Parameters; import java.nio.file.Path; import org.openapitools.server.model.Pet; @@ -290,13 +291,13 @@ protected void fakeOuterStringSerialize(ServerRequest request, ServerResponse re ValidatorUtils.Validator validator = ValidatorUtils.validator(); - // Parameter: body - Optional body = fakeOuterStringSerializeOp.body(request, validator); + // Parameter: OuterString + Optional outerString = fakeOuterStringSerializeOp.outerString(request, validator); validator.execute(); handleFakeOuterStringSerialize(request, response, - body); + outerString); } /** @@ -304,10 +305,10 @@ protected void fakeOuterStringSerialize(ServerRequest request, ServerResponse re * * @param request the server request * @param response the server response - * @param body Input string as post body + * @param outerString Input string as post body */ protected abstract void handleFakeOuterStringSerialize(ServerRequest request, ServerResponse response, - Optional body); + Optional outerString); /** * POST /fake/property/enum-int. @@ -1758,15 +1759,15 @@ protected FakeOuterStringSerializeOp createFakeOuterStringSerializeOp() { public static class FakeOuterStringSerializeOp { /** - * Prepares the body parameter. + * Prepares the outerString parameter. * * @param request {@link io.helidon.webserver.http.ServerRequest} containing the parameter * @param validator {@link org.openapitools.server.api.ValidatorUtils.Validator} for validating all parameters to the operation - * @return body parameter value + * @return outerString parameter value */ - protected Optional body(ServerRequest request, ValidatorUtils.Validator validator) { + protected Optional outerString(ServerRequest request, ValidatorUtils.Validator validator) { return request.content().hasEntity() - ? Optional.of(request.content().as(String.class)) + ? Optional.of(request.content().as(OuterString.class)) : Optional.empty(); } diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeServiceImpl.java b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeServiceImpl.java index e47df278f682..99721a951c20 100644 --- a/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeServiceImpl.java +++ b/samples/server/petstore/java-helidon-server/v4/se-uac-group-by-file-path/src/main/java/org/openapitools/server/api/FakeServiceImpl.java @@ -29,6 +29,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import io.helidon.common.parameters.Parameters; import java.nio.file.Path; import org.openapitools.server.model.Pet; @@ -87,7 +88,7 @@ protected void handleFakeOuterNumberSerialize(ServerRequest request, ServerRespo @Override protected void handleFakeOuterStringSerialize(ServerRequest request, ServerResponse response, - Optional body) { + Optional outerString) { response.status(Status.NOT_IMPLEMENTED_501).send(); } diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeService.java b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeService.java index a308fb480027..aee132ce1219 100644 --- a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeService.java +++ b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeService.java @@ -27,6 +27,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import io.helidon.common.parameters.Parameters; import java.nio.file.Path; import org.openapitools.server.model.Pet; @@ -286,13 +287,13 @@ protected void fakeOuterStringSerialize(ServerRequest request, ServerResponse re ValidatorUtils.Validator validator = ValidatorUtils.validator(); - // Parameter: body - Optional body = fakeOuterStringSerializeOp.body(request, validator); + // Parameter: OuterString + Optional outerString = fakeOuterStringSerializeOp.outerString(request, validator); validator.execute(); handleFakeOuterStringSerialize(request, response, - body); + outerString); } /** @@ -300,10 +301,10 @@ protected void fakeOuterStringSerialize(ServerRequest request, ServerResponse re * * @param request the server request * @param response the server response - * @param body Input string as post body + * @param outerString Input string as post body */ protected abstract void handleFakeOuterStringSerialize(ServerRequest request, ServerResponse response, - Optional body); + Optional outerString); /** * POST /fake/property/enum-int. @@ -1706,15 +1707,15 @@ protected FakeOuterStringSerializeOp createFakeOuterStringSerializeOp() { public static class FakeOuterStringSerializeOp { /** - * Prepares the body parameter. + * Prepares the outerString parameter. * * @param request {@link io.helidon.webserver.http.ServerRequest} containing the parameter * @param validator {@link org.openapitools.server.api.ValidatorUtils.Validator} for validating all parameters to the operation - * @return body parameter value + * @return outerString parameter value */ - protected Optional body(ServerRequest request, ValidatorUtils.Validator validator) { + protected Optional outerString(ServerRequest request, ValidatorUtils.Validator validator) { return request.content().hasEntity() - ? Optional.of(request.content().as(String.class)) + ? Optional.of(request.content().as(OuterString.class)) : Optional.empty(); } diff --git a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeServiceImpl.java b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeServiceImpl.java index 012b7789b1b5..a31328d9c16c 100644 --- a/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeServiceImpl.java +++ b/samples/server/petstore/java-helidon-server/v4/se-uac/src/main/java/org/openapitools/server/api/FakeServiceImpl.java @@ -27,6 +27,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import io.helidon.common.parameters.Parameters; import java.nio.file.Path; import org.openapitools.server.model.Pet; @@ -85,7 +86,7 @@ protected void handleFakeOuterNumberSerialize(ServerRequest request, ServerRespo @Override protected void handleFakeOuterStringSerialize(ServerRequest request, ServerResponse response, - Optional body) { + Optional outerString) { response.status(Status.NOT_IMPLEMENTED_501).send(); } diff --git a/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeService.java b/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeService.java index 590761b0577d..e413ec7f96c8 100644 --- a/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeService.java +++ b/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeService.java @@ -25,6 +25,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import io.helidon.common.parameters.Parameters; import java.nio.file.Path; import org.openapitools.server.model.Pet; diff --git a/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java b/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java index 5d591e8e957a..65a5fb49c767 100644 --- a/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java +++ b/samples/server/petstore/java-helidon-server/v4/se/src/main/java/org/openapitools/server/api/FakeServiceImpl.java @@ -25,6 +25,7 @@ import java.util.Optional; import org.openapitools.server.model.OuterComposite; import org.openapitools.server.model.OuterObjectWithEnumProperty; +import org.openapitools.server.model.OuterString; import io.helidon.common.parameters.Parameters; import java.nio.file.Path; import org.openapitools.server.model.Pet; diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java index a7b4612b1f3e..c06d36c7b104 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -95,7 +96,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", }) @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) OuterString body ) throws NotFoundException { return delegate.fakeOuterStringSerialize(body); diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApiService.java index 8ce82805e173..32b985c36e6b 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApiService.java @@ -15,6 +15,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -36,7 +37,7 @@ public abstract Response fakeOuterCompositeSerialize(OuterComposite body ) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body ) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body + public abstract Response fakeOuterStringSerialize(OuterString body ) throws NotFoundException; public abstract Response testBodyWithFileSchema(FileSchemaTestClass body ) throws NotFoundException; diff --git a/samples/server/petstore/java-msf4j/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/java-msf4j/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index fc157484b14c..42b3b6d85352 100644 --- a/samples/server/petstore/java-msf4j/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/java-msf4j/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -12,6 +12,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -53,7 +54,7 @@ public Response fakeOuterNumberSerialize(BigDecimal body return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterStringSerialize(String body + public Response fakeOuterStringSerialize(OuterString body ) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiController.java b/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiController.java index 4cc83697c1d9..4ecfed1c3c69 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiController.java +++ b/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiController.java @@ -8,6 +8,7 @@ import java.util.Map; import java.time.OffsetDateTime; import apimodels.OuterComposite; +import apimodels.OuterString; import apimodels.User; import apimodels.XmlItem; @@ -109,9 +110,9 @@ public Result fakeOuterNumberSerialize(Http.Request request) throws Exception { @ApiAction public Result fakeOuterStringSerialize(Http.Request request) throws Exception { JsonNode nodebody = request.body().asJson(); - String body; + OuterString body; if (nodebody != null) { - body = mapper.readValue(nodebody.toString(), String.class); + body = mapper.readValue(nodebody.toString(), OuterString.class); if (configuration.getBoolean("useInputBeanValidation")) { OpenAPIUtils.validate(body); } diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImp.java b/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImp.java index 6956fafbca5b..fd26cd1027c6 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImp.java +++ b/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImp.java @@ -8,6 +8,7 @@ import java.util.Map; import java.time.OffsetDateTime; import apimodels.OuterComposite; +import apimodels.OuterString; import apimodels.User; import apimodels.XmlItem; @@ -46,7 +47,7 @@ public BigDecimal fakeOuterNumberSerialize(Http.Request request, BigDecimal body } @Override - public String fakeOuterStringSerialize(Http.Request request, String body) throws Exception { + public String fakeOuterStringSerialize(Http.Request request, OuterString body) throws Exception { //Do your magic!!! return new String(); } diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImpInterface.java b/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImpInterface.java index 4625cca51f05..63b2237ba946 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImpInterface.java +++ b/samples/server/petstore/java-play-framework-fake-endpoints/app/controllers/FakeApiControllerImpInterface.java @@ -8,6 +8,7 @@ import java.util.Map; import java.time.OffsetDateTime; import apimodels.OuterComposite; +import apimodels.OuterString; import apimodels.User; import apimodels.XmlItem; @@ -84,7 +85,7 @@ public Result fakeOuterNumberSerializeHttp(Http.Request request, BigDecimal body public abstract BigDecimal fakeOuterNumberSerialize(Http.Request request, BigDecimal body) throws Exception; - public Result fakeOuterStringSerializeHttp(Http.Request request, String body) throws Exception { + public Result fakeOuterStringSerializeHttp(Http.Request request, OuterString body) throws Exception { String obj = fakeOuterStringSerialize(request, body); JsonNode result = mapper.valueToTree(obj); @@ -92,7 +93,7 @@ public Result fakeOuterStringSerializeHttp(Http.Request request, String body) th } - public abstract String fakeOuterStringSerialize(Http.Request request, String body) throws Exception; + public abstract String fakeOuterStringSerialize(Http.Request request, OuterString body) throws Exception; public Result testBodyWithFileSchemaHttp(Http.Request request, FileSchemaTestClass body) throws Exception { testBodyWithFileSchema(request, body); diff --git a/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/FakeApiMockServer.java b/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/FakeApiMockServer.java index 22300eb6f996..2561c749b4b3 100644 --- a/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/FakeApiMockServer.java +++ b/samples/server/petstore/java-wiremock/src/main/java/org/openapitools/mockserver/api/FakeApiMockServer.java @@ -245,7 +245,7 @@ public static MappingBuilder stubFakeOuterStringSerializeFault(@javax.annotation public static String fakeOuterStringSerializeRequestSample1() { - return ""; + return "null"; } diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java index 287f3b59203f..cff5f4402d0b 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/FakeApi.java @@ -8,6 +8,7 @@ import org.joda.time.LocalDate; import java.util.Map; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -78,7 +79,7 @@ public interface FakeApi { @ApiOperation(value = "", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - public String fakeOuterStringSerialize(@Valid String body); + public String fakeOuterStringSerialize(@Valid OuterString body); @PUT @Path("/body-with-file-schema") diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index 7c20267aebef..aed73f93957a 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.openapitools.model.ModelApiResponse; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -120,7 +121,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") OuterString body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java index d85313c69beb..dc0fd93b29b9 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApiService.java @@ -13,6 +13,7 @@ import org.openapitools.model.ModelApiResponse; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -31,7 +32,7 @@ public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterStringSerialize(OuterString body,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 24f30f2cba83..cd927cdd8374 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -10,6 +10,7 @@ import org.openapitools.model.ModelApiResponse; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -47,7 +48,7 @@ public Response fakeOuterNumberSerialize(BigDecimal body, SecurityContext securi return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterStringSerialize(String body, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterStringSerialize(OuterString body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index 41f61c36de94..ffaf7567a627 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -19,6 +19,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -151,9 +152,9 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") OuterString outerString,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterStringSerialize(body, securityContext); + return delegate.fakeOuterStringSerialize(outerString, securityContext); } @javax.ws.rs.POST @Path("/property/enum-int") diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApiService.java index 9748874e33fc..f59b5214e48b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApiService.java @@ -17,6 +17,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -38,7 +39,7 @@ public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterStringSerialize(OuterString outerString,SecurityContext securityContext) throws NotFoundException; public abstract Response fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty,SecurityContext securityContext) throws NotFoundException; public abstract Response testAdditionalPropertiesReference(Map requestBody,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithBinary(File body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs-jersey/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs-jersey/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 59051dc69351..cbf4659a631f 100644 --- a/samples/server/petstore/jaxrs-jersey/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs-jersey/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -14,6 +14,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -62,7 +63,7 @@ public Response fakeOuterNumberSerialize(BigDecimal body, SecurityContext securi return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterStringSerialize(String body, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterStringSerialize(OuterString outerString, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java index a31cf286baf0..1c1fdbf9e759 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/api/FakeApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -103,7 +104,7 @@ public interface FakeApi { @ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - Response fakeOuterStringSerialize(@Valid String body); + Response fakeOuterStringSerialize(@Valid OuterString body); /** diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java index 011cf971fa54..b695ccf34551 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/FakeApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -103,7 +104,7 @@ public interface FakeApi { @ApiOperation(value = "", notes = "Test serialization of outer string types", tags={ "fake" }) @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - String fakeOuterStringSerialize(@Valid String body); + String fakeOuterStringSerialize(@Valid OuterString body); /** diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/api/FakeApi.java index 945e89c24265..da0e3e951d39 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/api/FakeApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -82,7 +83,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString body) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/FakeApi.java index 50dea2969e4f..4eaf730662fd 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/api/FakeApi.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -140,7 +141,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="*/*", schema = @org.eclipse.microprofile.openapi.annotations.media.Schema(implementation = String.class)) }) }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString body) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FakeApi.java index 86e6d0b5ca61..ced97ae8a617 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/api/FakeApi.java @@ -14,6 +14,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -187,7 +188,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @org.eclipse.microprofile.openapi.annotations.media.Content(mediaType="*/*", schema = @org.eclipse.microprofile.openapi.annotations.media.Schema(implementation = String.class)) }) }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString outerString) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec-swagger-annotations/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-annotations/src/gen/java/org/openapitools/api/FakeApi.java index ba98d6a77189..15fbd05b06b4 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-annotations/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-annotations/src/gen/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -118,7 +119,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString outerString) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java index dbc121f4fbec..1028d3b88b80 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations-jakarta/src/gen/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -118,7 +119,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Output string") }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString outerString) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java index 1859eee64c03..0926d6bf4e74 100644 --- a/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-swagger-v3-annotations/src/gen/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -118,7 +119,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @ApiResponses(value = { @ApiResponse(responseCode = "200", description = "Output string") }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString outerString) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec-withxml/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec-withxml/src/gen/java/org/openapitools/api/FakeApi.java index b25c0d7146c6..511f035233ce 100644 --- a/samples/server/petstore/jaxrs-spec-withxml/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec-withxml/src/gen/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -118,7 +119,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString outerString) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java index ba98d6a77189..15fbd05b06b4 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -118,7 +119,7 @@ public Response fakeOuterNumberSerialize(@Valid BigDecimal body) { @ApiResponses(value = { @ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@Valid String body) { + public Response fakeOuterStringSerialize(@Valid OuterString outerString) { return Response.ok().entity("magic!").build(); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index f6bcae3e2686..dc556d0c27d0 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -13,6 +13,7 @@ import org.openapitools.model.FileSchemaTestClass; import java.util.Map; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -118,7 +119,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") OuterString body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java index 6c30a3e55bd9..398b268e4e4f 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApiService.java @@ -11,6 +11,7 @@ import org.openapitools.model.FileSchemaTestClass; import java.util.Map; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -29,7 +30,7 @@ public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterStringSerialize(OuterString body,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index e6016e8a27e2..92501b6c12ca 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -8,6 +8,7 @@ import org.openapitools.model.FileSchemaTestClass; import java.util.Map; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -45,7 +46,7 @@ public Response fakeOuterNumberSerialize(BigDecimal body, SecurityContext securi return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterStringSerialize(String body, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterStringSerialize(OuterString body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index 3f85128ec481..90b2d03aaaab 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -14,6 +14,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -119,7 +120,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) }) - public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") OuterString body,@Context SecurityContext securityContext) throws NotFoundException { return delegate.fakeOuterStringSerialize(body, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java index 007c0ff7c52e..0c589edc995a 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApiService.java @@ -12,6 +12,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -30,7 +31,7 @@ public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterCompositeSerialize(OuterComposite body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterStringSerialize(OuterString body,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithFileSchema(FileSchemaTestClass body,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithQueryParams( @NotNull String query,User body,SecurityContext securityContext) throws NotFoundException; public abstract Response testClientModel(Client body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 65c0937369bc..a4f8e06f3ffa 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -9,6 +9,7 @@ import java.util.Map; import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -46,7 +47,7 @@ public Response fakeOuterNumberSerialize(BigDecimal body, SecurityContext securi return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterStringSerialize(String body, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterStringSerialize(OuterString body, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java index 91dc80a4f465..4da97e4cac4e 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java @@ -24,6 +24,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -160,9 +161,9 @@ public Response fakeOuterNumberSerialize(@Schema(description = "Input number as @ApiResponse(responseCode = "200", description = "Output string", content = @Content(schema = @Schema(implementation = String.class))), }, tags={ "fake", }) - public Response fakeOuterStringSerialize(@Schema(description = "Input string as post body") String body,@Context SecurityContext securityContext) + public Response fakeOuterStringSerialize(@Schema(description = "Input string as post body") OuterString outerString,@Context SecurityContext securityContext) throws NotFoundException { - return delegate.fakeOuterStringSerialize(body, securityContext); + return delegate.fakeOuterStringSerialize(outerString, securityContext); } @jakarta.ws.rs.POST diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApiService.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApiService.java index 843d06cfde7e..e9300e525947 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApiService.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApiService.java @@ -17,6 +17,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -38,7 +39,7 @@ public abstract class FakeApiService { public abstract Response fakeOuterBooleanSerialize(Boolean body,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterCompositeSerialize(OuterComposite outerComposite,SecurityContext securityContext) throws NotFoundException; public abstract Response fakeOuterNumberSerialize(BigDecimal body,SecurityContext securityContext) throws NotFoundException; - public abstract Response fakeOuterStringSerialize(String body,SecurityContext securityContext) throws NotFoundException; + public abstract Response fakeOuterStringSerialize(OuterString outerString,SecurityContext securityContext) throws NotFoundException; public abstract Response fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty,SecurityContext securityContext) throws NotFoundException; public abstract Response testAdditionalPropertiesReference(Map requestBody,SecurityContext securityContext) throws NotFoundException; public abstract Response testBodyWithBinary(File body,SecurityContext securityContext) throws NotFoundException; diff --git a/samples/server/petstore/jaxrs/jersey3/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey3/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java index 6f82bc47c0a7..51a2aa8575e9 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java +++ b/samples/server/petstore/jaxrs/jersey3/src/main/java/org/openapitools/api/impl/FakeApiServiceImpl.java @@ -14,6 +14,7 @@ import org.openapitools.model.ModelApiResponse; import org.openapitools.model.OuterComposite; import org.openapitools.model.OuterObjectWithEnumProperty; +import org.openapitools.model.OuterString; import org.openapitools.model.Pet; import org.openapitools.model.TestInlineFreeformAdditionalPropertiesRequest; import org.openapitools.model.User; @@ -62,7 +63,7 @@ public Response fakeOuterNumberSerialize(BigDecimal body, SecurityContext securi return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } @Override - public Response fakeOuterStringSerialize(String body, SecurityContext securityContext) throws NotFoundException { + public Response fakeOuterStringSerialize(OuterString outerString, SecurityContext securityContext) throws NotFoundException { // do some magic! return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build(); } diff --git a/samples/server/petstore/php-laravel/Api/FakeApiInterface.php b/samples/server/petstore/php-laravel/Api/FakeApiInterface.php index 0ba584fe917a..7f4bc56cd630 100644 --- a/samples/server/petstore/php-laravel/Api/FakeApiInterface.php +++ b/samples/server/petstore/php-laravel/Api/FakeApiInterface.php @@ -102,11 +102,11 @@ public function fakeOuterNumberSerialize( /** * Operation fakeOuterStringSerialize - * @param null | string $body + * @param null | \OpenAPI\Server\Model\OuterString $outerString * @return string */ public function fakeOuterStringSerialize( - ?string $body, + ?\OpenAPI\Server\Model\OuterString $outerString, ): string ; diff --git a/samples/server/petstore/php-laravel/Http/Controllers/FakeController.php b/samples/server/petstore/php-laravel/Http/Controllers/FakeController.php index ae433d8b5ec6..bde86b345f93 100644 --- a/samples/server/petstore/php-laravel/Http/Controllers/FakeController.php +++ b/samples/server/petstore/php-laravel/Http/Controllers/FakeController.php @@ -280,10 +280,11 @@ public function fakeOuterStringSerialize(Request $request): JsonResponse return response()->json(['error' => 'Invalid input'], 400); } - $body = $request->string('body')->value(); + $outerString = $request->string('outerString')->value(); + $outerString = $this->serde->deserialize($request->getContent(), from: 'json', to: \OpenAPI\Server\Model\OuterString::class); - $apiResult = $this->api->fakeOuterStringSerialize($body); + $apiResult = $this->api->fakeOuterStringSerialize($outerString); if ($apiResult instanceof string) { return response()->json($this->serde->serialize($apiResult, format: 'array'), 200); diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php index 984dd7ac20b9..bc4995c1a858 100644 --- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php +++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/FakeApi.php @@ -573,7 +573,7 @@ public function fakeOuterStringSerialize() //not path params validation - $body = $input['body']; + $outer_string = $input['outer_string']; return response('How about implementing fakeOuterStringSerialize as a post method ?'); diff --git a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md index 27c59de54b24..caa5ed480b36 100644 --- a/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md +++ b/samples/server/petstore/rust-server-deprecated/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md @@ -160,7 +160,7 @@ Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**string**](string.md)| Input string as post body | + **body** | [**OuterString**](OuterString.md)| Input string as post body | ### Return type diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md index 27c59de54b24..caa5ed480b36 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/docs/fake_api.md @@ -160,7 +160,7 @@ Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**string**](string.md)| Input string as post body | + **body** | [**OuterString**](OuterString.md)| Input string as post body | ### Return type diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java index 844bdb07a55f..3242665c5d0c 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -167,7 +168,7 @@ ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @Operation( @@ -187,7 +188,7 @@ ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @Parameter(name = "OuterString", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) throws Exception; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index f53da9e3636e..872996dfa85c 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -184,7 +185,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -204,7 +205,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index f53da9e3636e..872996dfa85c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -184,7 +185,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -204,7 +205,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java index 222e97e7dfb4..dc72fb880540 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -184,7 +185,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -204,7 +205,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index 38c9dcc5e096..17d78d5b55ae 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -167,7 +168,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -187,9 +188,9 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { - return getDelegate().fakeOuterStringSerialize(body); + return getDelegate().fakeOuterStringSerialize(outerString); } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index 46fcce25dd85..e18bcf4c5099 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -11,6 +11,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -103,11 +104,11 @@ default ResponseEntity fakeOuterNumberSerialize(BigDecimal body) { * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - default ResponseEntity fakeOuterStringSerialize(String body) { + default ResponseEntity fakeOuterStringSerialize(OuterString outerString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index 38c9dcc5e096..17d78d5b55ae 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -167,7 +168,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -187,9 +188,9 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { - return getDelegate().fakeOuterStringSerialize(body); + return getDelegate().fakeOuterStringSerialize(outerString); } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java index 46fcce25dd85..e18bcf4c5099 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -11,6 +11,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -103,11 +104,11 @@ default ResponseEntity fakeOuterNumberSerialize(BigDecimal body) { * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - default ResponseEntity fakeOuterStringSerialize(String body) { + default ResponseEntity fakeOuterStringSerialize(OuterString outerString) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index 9bdb48fa4b64..9f97073c0e95 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -184,7 +185,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -204,7 +205,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index ef4a3d8a5688..7b6ef01eea56 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -180,7 +181,7 @@ default Mono fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -201,10 +202,10 @@ default Mono fakeOuterNumberSerialize( ) @ResponseStatus(HttpStatus.OK) default Mono fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Mono body, + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Mono outerString, @ApiIgnore final ServerWebExchange exchange ) { - return getDelegate().fakeOuterStringSerialize(body, exchange); + return getDelegate().fakeOuterStringSerialize(outerString, exchange); } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java index 6d5054b109b2..b4ec6f6ca242 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -12,6 +12,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -117,15 +118,15 @@ default Mono fakeOuterNumberSerialize(Mono body, * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - default Mono fakeOuterStringSerialize(Mono body, + default Mono fakeOuterStringSerialize(Mono outerString, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); - return result.then(body).then(Mono.empty()); + return result.then(outerString).then(Mono.empty()); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index cfcf52235502..6ad2d2eafa71 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -17,6 +17,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -176,7 +177,7 @@ default Mono> fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -196,10 +197,10 @@ default Mono> fakeOuterNumberSerialize( consumes = { "application/json" } ) default Mono> fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Mono body, + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Mono outerString, @ApiIgnore final ServerWebExchange exchange ) { - return getDelegate().fakeOuterStringSerialize(body, exchange); + return getDelegate().fakeOuterStringSerialize(outerString, exchange); } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java index 64324a9d4432..75154212368e 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -12,6 +12,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -118,15 +119,15 @@ default Mono> fakeOuterNumberSerialize(Mono> fakeOuterStringSerialize(Mono body, + default Mono> fakeOuterStringSerialize(Mono outerString, ServerWebExchange exchange) { Mono result = Mono.empty(); exchange.getResponse().setStatusCode(HttpStatus.NOT_IMPLEMENTED); - return result.then(body).then(Mono.empty()); + return result.then(outerString).then(Mono.empty()); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 8085a585eb57..5aced8566723 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; @@ -181,7 +182,7 @@ default ResponseEntity fakeOuterNumberSerialize( produces = { "*/*" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString body ) { return getDelegate().fakeOuterStringSerialize(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java index b28f430d6cbe..6b41d844fe66 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -10,6 +10,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; @@ -105,7 +106,7 @@ default ResponseEntity fakeOuterNumberSerialize(BigDecimal body) { * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - default ResponseEntity fakeOuterStringSerialize(String body) { + default ResponseEntity fakeOuterStringSerialize(OuterString body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index 8085a585eb57..5aced8566723 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; @@ -181,7 +182,7 @@ default ResponseEntity fakeOuterNumberSerialize( produces = { "*/*" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString body ) { return getDelegate().fakeOuterStringSerialize(body); } diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java index b28f430d6cbe..6b41d844fe66 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApiDelegate.java @@ -10,6 +10,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import org.springframework.http.HttpStatus; @@ -105,7 +106,7 @@ default ResponseEntity fakeOuterNumberSerialize(BigDecimal body) { * @return Output string (status code 200) * @see FakeApi#fakeOuterStringSerialize */ - default ResponseEntity fakeOuterStringSerialize(String body) { + default ResponseEntity fakeOuterStringSerialize(OuterString body) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 3226514609b4..484cd5c0e0b3 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; @@ -198,7 +199,7 @@ default ResponseEntity fakeOuterNumberSerialize( produces = { "*/*" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index 3226514609b4..484cd5c0e0b3 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -15,6 +15,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.User; import org.openapitools.model.XmlItem; import io.swagger.annotations.*; @@ -198,7 +199,7 @@ default ResponseEntity fakeOuterNumberSerialize( produces = { "*/*" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString body ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index 6219afbbfd1b..4f5d7da5ec64 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterComposite; +import org.openapitools.model.OuterString; import org.openapitools.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.model.User; import org.openapitools.model.XmlItem; @@ -184,7 +185,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -204,7 +205,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Optional body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) Optional outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java index d0e732c003c0..69e5c228d6be 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.virtualan.model.OuterComposite; +import org.openapitools.virtualan.model.OuterString; import org.openapitools.virtualan.model.ResponseObjectWithDifferentFieldNames; import org.openapitools.virtualan.model.User; import org.openapitools.virtualan.model.XmlItem; @@ -202,7 +203,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerString Input string as post body (optional) * @return Output string (status code 200) */ @ApiVirtual @@ -223,7 +224,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @Parameter(name = "body", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @Parameter(name = "OuterString", description = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterString outerString ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 7f3d64f9f2c1..c54f1f0e229a 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -16,6 +16,7 @@ import org.springframework.lang.Nullable; import java.time.OffsetDateTime; import org.openapitools.model.OuterCompositeDto; +import org.openapitools.model.OuterStringDto; import org.openapitools.model.ResponseObjectWithDifferentFieldNamesDto; import org.openapitools.model.UserDto; import org.openapitools.model.XmlItemDto; @@ -184,7 +185,7 @@ default ResponseEntity fakeOuterNumberSerialize( * POST /fake/outer/string * Test serialization of outer string types * - * @param body Input string as post body (optional) + * @param outerStringDto Input string as post body (optional) * @return Output string (status code 200) */ @ApiOperation( @@ -204,7 +205,7 @@ default ResponseEntity fakeOuterNumberSerialize( consumes = { "application/json" } ) default ResponseEntity fakeOuterStringSerialize( - @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable String body + @ApiParam(value = "Input string as post body") @Valid @RequestBody(required = false) @Nullable OuterStringDto outerStringDto ) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);