Skip to content

Commit b0ed309

Browse files
FIX #21407 - update code and docs samples
1 parent 29ecfd7 commit b0ed309

File tree

372 files changed

+2138
-1997
lines changed

Some content is hidden

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

372 files changed

+2138
-1997
lines changed

samples/client/echo_api/csharp/restsharp/net8/EchoApi/docs/BodyApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ No authorization required
740740

741741
<a id="testechobodystringenum"></a>
742742
# **TestEchoBodyStringEnum**
743-
> StringEnumRef TestEchoBodyStringEnum (string? body = null)
743+
> StringEnumRef TestEchoBodyStringEnum (StringEnumRef? stringEnumRef = null)
744744
745745
Test string enum response body
746746

@@ -763,12 +763,12 @@ namespace Example
763763
Configuration config = new Configuration();
764764
config.BasePath = "http://localhost:3000";
765765
var apiInstance = new BodyApi(config);
766-
var body = null; // string? | String enum (optional)
766+
var stringEnumRef = new StringEnumRef?(); // StringEnumRef? | String enum (optional)
767767
768768
try
769769
{
770770
// Test string enum response body
771-
StringEnumRef result = apiInstance.TestEchoBodyStringEnum(body);
771+
StringEnumRef result = apiInstance.TestEchoBodyStringEnum(stringEnumRef);
772772
Debug.WriteLine(result);
773773
}
774774
catch (ApiException e)
@@ -789,7 +789,7 @@ This returns an ApiResponse object which contains the response data, status code
789789
try
790790
{
791791
// Test string enum response body
792-
ApiResponse<StringEnumRef> response = apiInstance.TestEchoBodyStringEnumWithHttpInfo(body);
792+
ApiResponse<StringEnumRef> response = apiInstance.TestEchoBodyStringEnumWithHttpInfo(stringEnumRef);
793793
Debug.Write("Status Code: " + response.StatusCode);
794794
Debug.Write("Response Headers: " + response.Headers);
795795
Debug.Write("Response Body: " + response.Data);
@@ -806,7 +806,7 @@ catch (ApiException e)
806806

807807
| Name | Type | Description | Notes |
808808
|------|------|-------------|-------|
809-
| **body** | **string?** | String enum | [optional] |
809+
| **stringEnumRef** | [**StringEnumRef?**](StringEnumRef?.md) | String enum | [optional] |
810810

811811
### Return type
812812

samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Api/BodyApi.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ public interface IBodyApiSync : IApiAccessor
216216
/// Test string enum response body
217217
/// </remarks>
218218
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
219-
/// <param name="body">String enum (optional)</param>
219+
/// <param name="stringEnumRef">String enum (optional)</param>
220220
/// <param name="operationIndex">Index associated with the operation.</param>
221221
/// <returns>StringEnumRef</returns>
222-
StringEnumRef TestEchoBodyStringEnum(string? body = default, int operationIndex = 0);
222+
StringEnumRef TestEchoBodyStringEnum(StringEnumRef? stringEnumRef = default, int operationIndex = 0);
223223

224224
/// <summary>
225225
/// Test string enum response body
@@ -228,10 +228,10 @@ public interface IBodyApiSync : IApiAccessor
228228
/// Test string enum response body
229229
/// </remarks>
230230
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
231-
/// <param name="body">String enum (optional)</param>
231+
/// <param name="stringEnumRef">String enum (optional)</param>
232232
/// <param name="operationIndex">Index associated with the operation.</param>
233233
/// <returns>ApiResponse of StringEnumRef</returns>
234-
ApiResponse<StringEnumRef> TestEchoBodyStringEnumWithHttpInfo(string? body = default, int operationIndex = 0);
234+
ApiResponse<StringEnumRef> TestEchoBodyStringEnumWithHttpInfo(StringEnumRef? stringEnumRef = default, int operationIndex = 0);
235235
/// <summary>
236236
/// Test empty json (request body)
237237
/// </summary>
@@ -469,11 +469,11 @@ public interface IBodyApiAsync : IApiAccessor
469469
/// Test string enum response body
470470
/// </remarks>
471471
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
472-
/// <param name="body">String enum (optional)</param>
472+
/// <param name="stringEnumRef">String enum (optional)</param>
473473
/// <param name="operationIndex">Index associated with the operation.</param>
474474
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
475475
/// <returns>Task of StringEnumRef</returns>
476-
System.Threading.Tasks.Task<StringEnumRef> TestEchoBodyStringEnumAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
476+
System.Threading.Tasks.Task<StringEnumRef> TestEchoBodyStringEnumAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
477477

478478
/// <summary>
479479
/// Test string enum response body
@@ -482,11 +482,11 @@ public interface IBodyApiAsync : IApiAccessor
482482
/// Test string enum response body
483483
/// </remarks>
484484
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
485-
/// <param name="body">String enum (optional)</param>
485+
/// <param name="stringEnumRef">String enum (optional)</param>
486486
/// <param name="operationIndex">Index associated with the operation.</param>
487487
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
488488
/// <returns>Task of ApiResponse (StringEnumRef)</returns>
489-
System.Threading.Tasks.Task<ApiResponse<StringEnumRef>> TestEchoBodyStringEnumWithHttpInfoAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
489+
System.Threading.Tasks.Task<ApiResponse<StringEnumRef>> TestEchoBodyStringEnumWithHttpInfoAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default);
490490
/// <summary>
491491
/// Test empty json (request body)
492492
/// </summary>
@@ -1732,23 +1732,23 @@ public async System.Threading.Tasks.Task<string> TestEchoBodyPetResponseStringAs
17321732
/// Test string enum response body Test string enum response body
17331733
/// </summary>
17341734
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
1735-
/// <param name="body">String enum (optional)</param>
1735+
/// <param name="stringEnumRef">String enum (optional)</param>
17361736
/// <param name="operationIndex">Index associated with the operation.</param>
17371737
/// <returns>StringEnumRef</returns>
1738-
public StringEnumRef TestEchoBodyStringEnum(string? body = default, int operationIndex = 0)
1738+
public StringEnumRef TestEchoBodyStringEnum(StringEnumRef? stringEnumRef = default, int operationIndex = 0)
17391739
{
1740-
Org.OpenAPITools.Client.ApiResponse<StringEnumRef> localVarResponse = TestEchoBodyStringEnumWithHttpInfo(body);
1740+
Org.OpenAPITools.Client.ApiResponse<StringEnumRef> localVarResponse = TestEchoBodyStringEnumWithHttpInfo(stringEnumRef);
17411741
return localVarResponse.Data;
17421742
}
17431743

17441744
/// <summary>
17451745
/// Test string enum response body Test string enum response body
17461746
/// </summary>
17471747
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
1748-
/// <param name="body">String enum (optional)</param>
1748+
/// <param name="stringEnumRef">String enum (optional)</param>
17491749
/// <param name="operationIndex">Index associated with the operation.</param>
17501750
/// <returns>ApiResponse of StringEnumRef</returns>
1751-
public Org.OpenAPITools.Client.ApiResponse<StringEnumRef> TestEchoBodyStringEnumWithHttpInfo(string? body = default, int operationIndex = 0)
1751+
public Org.OpenAPITools.Client.ApiResponse<StringEnumRef> TestEchoBodyStringEnumWithHttpInfo(StringEnumRef? stringEnumRef = default, int operationIndex = 0)
17521752
{
17531753
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
17541754

@@ -1774,7 +1774,7 @@ public Org.OpenAPITools.Client.ApiResponse<StringEnumRef> TestEchoBodyStringEnum
17741774
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
17751775
}
17761776

1777-
localVarRequestOptions.Data = body;
1777+
localVarRequestOptions.Data = stringEnumRef;
17781778

17791779
localVarRequestOptions.Operation = "BodyApi.TestEchoBodyStringEnum";
17801780
localVarRequestOptions.OperationIndex = operationIndex;
@@ -1798,25 +1798,25 @@ public Org.OpenAPITools.Client.ApiResponse<StringEnumRef> TestEchoBodyStringEnum
17981798
/// Test string enum response body Test string enum response body
17991799
/// </summary>
18001800
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
1801-
/// <param name="body">String enum (optional)</param>
1801+
/// <param name="stringEnumRef">String enum (optional)</param>
18021802
/// <param name="operationIndex">Index associated with the operation.</param>
18031803
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
18041804
/// <returns>Task of StringEnumRef</returns>
1805-
public async System.Threading.Tasks.Task<StringEnumRef> TestEchoBodyStringEnumAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
1805+
public async System.Threading.Tasks.Task<StringEnumRef> TestEchoBodyStringEnumAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
18061806
{
1807-
Org.OpenAPITools.Client.ApiResponse<StringEnumRef> localVarResponse = await TestEchoBodyStringEnumWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false);
1807+
Org.OpenAPITools.Client.ApiResponse<StringEnumRef> localVarResponse = await TestEchoBodyStringEnumWithHttpInfoAsync(stringEnumRef, operationIndex, cancellationToken).ConfigureAwait(false);
18081808
return localVarResponse.Data;
18091809
}
18101810

18111811
/// <summary>
18121812
/// Test string enum response body Test string enum response body
18131813
/// </summary>
18141814
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
1815-
/// <param name="body">String enum (optional)</param>
1815+
/// <param name="stringEnumRef">String enum (optional)</param>
18161816
/// <param name="operationIndex">Index associated with the operation.</param>
18171817
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
18181818
/// <returns>Task of ApiResponse (StringEnumRef)</returns>
1819-
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<StringEnumRef>> TestEchoBodyStringEnumWithHttpInfoAsync(string? body = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
1819+
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<StringEnumRef>> TestEchoBodyStringEnumWithHttpInfoAsync(StringEnumRef? stringEnumRef = default, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default)
18201820
{
18211821

18221822
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
@@ -1842,7 +1842,7 @@ public async System.Threading.Tasks.Task<StringEnumRef> TestEchoBodyStringEnumAs
18421842
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
18431843
}
18441844

1845-
localVarRequestOptions.Data = body;
1845+
localVarRequestOptions.Data = stringEnumRef;
18461846

18471847
localVarRequestOptions.Operation = "BodyApi.TestEchoBodyStringEnum";
18481848
localVarRequestOptions.OperationIndex = operationIndex;

samples/client/echo_api/go/api_body.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/client/echo_api/go/docs/BodyAPI.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ No authorization required
542542

543543
## TestEchoBodyStringEnum
544544

545-
> StringEnumRef TestEchoBodyStringEnum(ctx).Body(body).Execute()
545+
> StringEnumRef TestEchoBodyStringEnum(ctx).StringEnumRef(stringEnumRef).Execute()
546546
547547
Test string enum response body
548548

@@ -561,11 +561,11 @@ import (
561561
)
562562

563563
func main() {
564-
body := string(987) // string | String enum (optional)
564+
stringEnumRef := openapiclient.StringEnumRef("success") // StringEnumRef | String enum (optional)
565565

566566
configuration := openapiclient.NewConfiguration()
567567
apiClient := openapiclient.NewAPIClient(configuration)
568-
resp, r, err := apiClient.BodyAPI.TestEchoBodyStringEnum(context.Background()).Body(body).Execute()
568+
resp, r, err := apiClient.BodyAPI.TestEchoBodyStringEnum(context.Background()).StringEnumRef(stringEnumRef).Execute()
569569
if err != nil {
570570
fmt.Fprintf(os.Stderr, "Error when calling `BodyAPI.TestEchoBodyStringEnum``: %v\n", err)
571571
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -586,7 +586,7 @@ Other parameters are passed through a pointer to a apiTestEchoBodyStringEnumRequ
586586

587587
Name | Type | Description | Notes
588588
------------- | ------------- | ------------- | -------------
589-
**body** | **string** | String enum |
589+
**stringEnumRef** | [**StringEnumRef**](StringEnumRef.md) | String enum |
590590

591591
### Return type
592592

samples/client/echo_api/java/apache-httpclient/docs/BodyApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ No authorization required
543543

544544
## testEchoBodyStringEnum
545545

546-
> StringEnumRef testEchoBodyStringEnum(body)
546+
> StringEnumRef testEchoBodyStringEnum(stringEnumRef)
547547
548548
Test string enum response body
549549

@@ -565,9 +565,9 @@ public class Example {
565565
defaultClient.setBasePath("http://localhost:3000");
566566

567567
BodyApi apiInstance = new BodyApi(defaultClient);
568-
String body = "body_example"; // String | String enum
568+
StringEnumRef stringEnumRef = new StringEnumRef(); // StringEnumRef | String enum
569569
try {
570-
StringEnumRef result = apiInstance.testEchoBodyStringEnum(body);
570+
StringEnumRef result = apiInstance.testEchoBodyStringEnum(stringEnumRef);
571571
System.out.println(result);
572572
} catch (ApiException e) {
573573
System.err.println("Exception when calling BodyApi#testEchoBodyStringEnum");
@@ -585,7 +585,7 @@ public class Example {
585585

586586
| Name | Type | Description | Notes |
587587
|------------- | ------------- | ------------- | -------------|
588-
| **body** | **String**| String enum | [optional] |
588+
| **stringEnumRef** | [**StringEnumRef**](StringEnumRef.md)| String enum | [optional] |
589589

590590
### Return type
591591

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/api/BodyApi.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -607,25 +607,25 @@ public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet,
607607
/**
608608
* Test string enum response body
609609
* Test string enum response body
610-
* @param body String enum (optional)
610+
* @param stringEnumRef String enum (optional)
611611
* @return StringEnumRef
612612
* @throws ApiException if fails to make API call
613613
*/
614-
public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws ApiException {
615-
return this.testEchoBodyStringEnum(body, Collections.emptyMap());
614+
public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef) throws ApiException {
615+
return this.testEchoBodyStringEnum(stringEnumRef, Collections.emptyMap());
616616
}
617617

618618

619619
/**
620620
* Test string enum response body
621621
* Test string enum response body
622-
* @param body String enum (optional)
622+
* @param stringEnumRef String enum (optional)
623623
* @param additionalHeaders additionalHeaders for this call
624624
* @return StringEnumRef
625625
* @throws ApiException if fails to make API call
626626
*/
627-
public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body, Map<String, String> additionalHeaders) throws ApiException {
628-
Object localVarPostBody = body;
627+
public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef, Map<String, String> additionalHeaders) throws ApiException {
628+
Object localVarPostBody = stringEnumRef;
629629

630630
// create path and map variables
631631
String localVarPath = "/echo/body/string_enum";

samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/api/BodyApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,29 +250,29 @@ public interface BodyApi extends ApiClient.Api {
250250
/**
251251
* Test string enum response body
252252
* Test string enum response body
253-
* @param body String enum (optional)
253+
* @param stringEnumRef String enum (optional)
254254
* @return StringEnumRef
255255
*/
256256
@RequestLine("POST /echo/body/string_enum")
257257
@Headers({
258258
"Content-Type: application/json",
259259
"Accept: application/json",
260260
})
261-
StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body);
261+
StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable StringEnumRef stringEnumRef);
262262

263263
/**
264264
* Test string enum response body
265265
* Similar to <code>testEchoBodyStringEnum</code> but it also returns the http response headers .
266266
* Test string enum response body
267-
* @param body String enum (optional)
267+
* @param stringEnumRef String enum (optional)
268268
* @return A ApiResponse that wraps the response boyd and the http headers.
269269
*/
270270
@RequestLine("POST /echo/body/string_enum")
271271
@Headers({
272272
"Content-Type: application/json",
273273
"Accept: application/json",
274274
})
275-
ApiResponse<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body);
275+
ApiResponse<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable StringEnumRef stringEnumRef);
276276

277277

278278

0 commit comments

Comments
 (0)