testEnumRefStringWithHttpInfo(@Param("enumNonrefStringQuery") String enumNonrefStringQuery, @Param("enumRefStringQuery") StringEnumRef enumRefStringQuery);
/**
@@ -59,11 +61,12 @@ public interface QueryApi extends ApiClient.Api {
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
+ * - enumNonrefStringQuery - (optional)
* - enumRefStringQuery - (optional)
*
* @return String
*/
- @RequestLine("GET /query/enum_ref_string?enum_ref_string_query={enumRefStringQuery}")
+ @RequestLine("GET /query/enum_ref_string?enum_nonref_string_query={enumNonrefStringQuery}&enum_ref_string_query={enumRefStringQuery}")
@Headers({
"Accept: text/plain",
})
@@ -77,11 +80,12 @@ public interface QueryApi extends ApiClient.Api {
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
+ * - enumNonrefStringQuery - (optional)
* - enumRefStringQuery - (optional)
*
* @return String
*/
- @RequestLine("GET /query/enum_ref_string?enum_ref_string_query={enumRefStringQuery}")
+ @RequestLine("GET /query/enum_ref_string?enum_nonref_string_query={enumNonrefStringQuery}&enum_ref_string_query={enumRefStringQuery}")
@Headers({
"Accept: text/plain",
})
@@ -93,6 +97,10 @@ public interface QueryApi extends ApiClient.Api {
* testEnumRefString
method in a fluent style.
*/
public static class TestEnumRefStringQueryParams extends HashMap {
+ public TestEnumRefStringQueryParams enumNonrefStringQuery(final String value) {
+ put("enum_nonref_string_query", EncodingUtils.encode(value));
+ return this;
+ }
public TestEnumRefStringQueryParams enumRefStringQuery(final StringEnumRef value) {
put("enum_ref_string_query", EncodingUtils.encode(value));
return this;
diff --git a/samples/client/echo_api/java/native/README.md b/samples/client/echo_api/java/native/README.md
index 9a5ce3e476cf..6caea3a23da1 100644
--- a/samples/client/echo_api/java/native/README.md
+++ b/samples/client/echo_api/java/native/README.md
@@ -124,10 +124,10 @@ Class | Method | HTTP request | Description
*FormApi* | [**testFormIntegerBooleanStringWithHttpInfo**](docs/FormApi.md#testFormIntegerBooleanStringWithHttpInfo) | **POST** /form/integer/boolean/string | Test form parameter(s)
*FormApi* | [**testFormOneof**](docs/FormApi.md#testFormOneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
*FormApi* | [**testFormOneofWithHttpInfo**](docs/FormApi.md#testFormOneofWithHttpInfo) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*HeaderApi* | [**testHeaderIntegerBooleanString**](docs/HeaderApi.md#testHeaderIntegerBooleanString) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*HeaderApi* | [**testHeaderIntegerBooleanStringWithHttpInfo**](docs/HeaderApi.md#testHeaderIntegerBooleanStringWithHttpInfo) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*PathApi* | [**testsPathStringPathStringIntegerPathInteger**](docs/PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
-*PathApi* | [**testsPathStringPathStringIntegerPathIntegerWithHttpInfo**](docs/PathApi.md#testsPathStringPathStringIntegerPathIntegerWithHttpInfo) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*HeaderApi* | [**testHeaderIntegerBooleanStringEnums**](docs/HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*HeaderApi* | [**testHeaderIntegerBooleanStringEnumsWithHttpInfo**](docs/HeaderApi.md#testHeaderIntegerBooleanStringEnumsWithHttpInfo) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](docs/PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
+*PathApi* | [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo**](docs/PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*QueryApi* | [**testEnumRefString**](docs/QueryApi.md#testEnumRefString) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**testEnumRefStringWithHttpInfo**](docs/QueryApi.md#testEnumRefStringWithHttpInfo) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**testQueryDatetimeDateString**](docs/QueryApi.md#testQueryDatetimeDateString) | **GET** /query/datetime/date/string | Test query parameter(s)
diff --git a/samples/client/echo_api/java/native/api/openapi.yaml b/samples/client/echo_api/java/native/api/openapi.yaml
index 36261c0bd777..de47c7b5e355 100644
--- a/samples/client/echo_api/java/native/api/openapi.yaml
+++ b/samples/client/echo_api/java/native/api/openapi.yaml
@@ -11,10 +11,10 @@ info:
servers:
- url: http://localhost:3000/
paths:
- /path/string/{path_string}/integer/{path_integer}:
+ /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}:
get:
description: Test path parameter(s)
- operationId: "tests/path/string/{path_string}/integer/{path_integer}"
+ operationId: "tests/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}"
parameters:
- explode: false
in: path
@@ -30,6 +30,24 @@ paths:
schema:
type: integer
style: simple
+ - explode: false
+ in: path
+ name: enum_nonref_string_path
+ required: true
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: simple
+ - explode: false
+ in: path
+ name: enum_ref_string_path
+ required: true
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
+ style: simple
responses:
"200":
content:
@@ -83,10 +101,10 @@ paths:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
- /header/integer/boolean/string:
+ /header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
- operationId: test/header/integer/boolean/string
+ operationId: test/header/integer/boolean/string/enums
parameters:
- explode: true
in: header
@@ -109,6 +127,24 @@ paths:
schema:
type: string
style: form
+ - explode: true
+ in: header
+ name: enum_nonref_string_header
+ required: false
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: form
+ - explode: true
+ in: header
+ name: enum_ref_string_header
+ required: false
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
+ style: form
responses:
"200":
content:
@@ -125,6 +161,17 @@ paths:
description: Test query parameter(s)
operationId: test/enum_ref_string
parameters:
+ - explode: true
+ in: query
+ name: enum_nonref_string_query
+ required: false
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: form
- explode: true
in: query
name: enum_ref_string_query
diff --git a/samples/client/echo_api/java/native/docs/HeaderApi.md b/samples/client/echo_api/java/native/docs/HeaderApi.md
index 72b299d1c095..13693883d3d8 100644
--- a/samples/client/echo_api/java/native/docs/HeaderApi.md
+++ b/samples/client/echo_api/java/native/docs/HeaderApi.md
@@ -4,14 +4,14 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**testHeaderIntegerBooleanString**](HeaderApi.md#testHeaderIntegerBooleanString) | **GET** /header/integer/boolean/string | Test header parameter(s) |
-| [**testHeaderIntegerBooleanStringWithHttpInfo**](HeaderApi.md#testHeaderIntegerBooleanStringWithHttpInfo) | **GET** /header/integer/boolean/string | Test header parameter(s) |
+| [**testHeaderIntegerBooleanStringEnums**](HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
+| [**testHeaderIntegerBooleanStringEnumsWithHttpInfo**](HeaderApi.md#testHeaderIntegerBooleanStringEnumsWithHttpInfo) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
-## testHeaderIntegerBooleanString
+## testHeaderIntegerBooleanStringEnums
-> String testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader)
+> String testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
Test header parameter(s)
@@ -36,11 +36,13 @@ public class Example {
Integer integerHeader = 56; // Integer |
Boolean booleanHeader = true; // Boolean |
String stringHeader = "stringHeader_example"; // String |
+ String enumNonrefStringHeader = "success"; // String |
+ StringEnumRef enumRefStringHeader = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- String result = apiInstance.testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader);
+ String result = apiInstance.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanString");
+ System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanStringEnums");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -58,6 +60,8 @@ public class Example {
| **integerHeader** | **Integer**| | [optional] |
| **booleanHeader** | **Boolean**| | [optional] |
| **stringHeader** | **String**| | [optional] |
+| **enumNonrefStringHeader** | **String**| | [optional] [enum: success, failure, unclassified] |
+| **enumRefStringHeader** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
@@ -78,9 +82,9 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Successful operation | - |
-## testHeaderIntegerBooleanStringWithHttpInfo
+## testHeaderIntegerBooleanStringEnumsWithHttpInfo
-> ApiResponse testHeaderIntegerBooleanString testHeaderIntegerBooleanStringWithHttpInfo(integerHeader, booleanHeader, stringHeader)
+> ApiResponse testHeaderIntegerBooleanStringEnums testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
Test header parameter(s)
@@ -106,13 +110,15 @@ public class Example {
Integer integerHeader = 56; // Integer |
Boolean booleanHeader = true; // Boolean |
String stringHeader = "stringHeader_example"; // String |
+ String enumNonrefStringHeader = "success"; // String |
+ StringEnumRef enumRefStringHeader = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- ApiResponse response = apiInstance.testHeaderIntegerBooleanStringWithHttpInfo(integerHeader, booleanHeader, stringHeader);
+ ApiResponse response = apiInstance.testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
- System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanString");
+ System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanStringEnums");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
@@ -130,6 +136,8 @@ public class Example {
| **integerHeader** | **Integer**| | [optional] |
| **booleanHeader** | **Boolean**| | [optional] |
| **stringHeader** | **String**| | [optional] |
+| **enumNonrefStringHeader** | **String**| | [optional] [enum: success, failure, unclassified] |
+| **enumRefStringHeader** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
diff --git a/samples/client/echo_api/java/native/docs/PathApi.md b/samples/client/echo_api/java/native/docs/PathApi.md
index de5e2f72e6c5..6539295ad50a 100644
--- a/samples/client/echo_api/java/native/docs/PathApi.md
+++ b/samples/client/echo_api/java/native/docs/PathApi.md
@@ -4,14 +4,14 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**testsPathStringPathStringIntegerPathInteger**](PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
-| [**testsPathStringPathStringIntegerPathIntegerWithHttpInfo**](PathApi.md#testsPathStringPathStringIntegerPathIntegerWithHttpInfo) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
+| [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
+| [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
-## testsPathStringPathStringIntegerPathInteger
+## testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
-> String testsPathStringPathStringIntegerPathInteger(pathString, pathInteger)
+> String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
Test path parameter(s)
@@ -35,11 +35,13 @@ public class Example {
PathApi apiInstance = new PathApi(defaultClient);
String pathString = "pathString_example"; // String |
Integer pathInteger = 56; // Integer |
+ String enumNonrefStringPath = "success"; // String |
+ StringEnumRef enumRefStringPath = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- String result = apiInstance.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
+ String result = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathInteger");
+ System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -56,6 +58,8 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **pathString** | **String**| | |
| **pathInteger** | **Integer**| | |
+| **enumNonrefStringPath** | **String**| | [enum: success, failure, unclassified] |
+| **enumRefStringPath** | [**StringEnumRef**](.md)| | [enum: success, failure, unclassified] |
### Return type
@@ -76,9 +80,9 @@ No authorization required
|-------------|-------------|------------------|
| **200** | Successful operation | - |
-## testsPathStringPathStringIntegerPathIntegerWithHttpInfo
+## testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo
-> ApiResponse testsPathStringPathStringIntegerPathInteger testsPathStringPathStringIntegerPathIntegerWithHttpInfo(pathString, pathInteger)
+> ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
Test path parameter(s)
@@ -103,13 +107,15 @@ public class Example {
PathApi apiInstance = new PathApi(defaultClient);
String pathString = "pathString_example"; // String |
Integer pathInteger = 56; // Integer |
+ String enumNonrefStringPath = "success"; // String |
+ StringEnumRef enumRefStringPath = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- ApiResponse response = apiInstance.testsPathStringPathStringIntegerPathIntegerWithHttpInfo(pathString, pathInteger);
+ ApiResponse response = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
- System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathInteger");
+ System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
@@ -126,6 +132,8 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **pathString** | **String**| | |
| **pathInteger** | **Integer**| | |
+| **enumNonrefStringPath** | **String**| | [enum: success, failure, unclassified] |
+| **enumRefStringPath** | [**StringEnumRef**](.md)| | [enum: success, failure, unclassified] |
### Return type
diff --git a/samples/client/echo_api/java/native/docs/QueryApi.md b/samples/client/echo_api/java/native/docs/QueryApi.md
index a41f24fd7627..136a1b045768 100644
--- a/samples/client/echo_api/java/native/docs/QueryApi.md
+++ b/samples/client/echo_api/java/native/docs/QueryApi.md
@@ -25,7 +25,7 @@ All URIs are relative to *http://localhost:3000*
## testEnumRefString
-> String testEnumRefString(enumRefStringQuery)
+> String testEnumRefString(enumNonrefStringQuery, enumRefStringQuery)
Test query parameter(s)
@@ -47,9 +47,10 @@ public class Example {
defaultClient.setBasePath("http://localhost:3000");
QueryApi apiInstance = new QueryApi(defaultClient);
+ String enumNonrefStringQuery = "success"; // String |
StringEnumRef enumRefStringQuery = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- String result = apiInstance.testEnumRefString(enumRefStringQuery);
+ String result = apiInstance.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueryApi#testEnumRefString");
@@ -67,6 +68,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
+| **enumNonrefStringQuery** | **String**| | [optional] [enum: success, failure, unclassified] |
| **enumRefStringQuery** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
@@ -90,7 +92,7 @@ No authorization required
## testEnumRefStringWithHttpInfo
-> ApiResponse testEnumRefString testEnumRefStringWithHttpInfo(enumRefStringQuery)
+> ApiResponse testEnumRefString testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery)
Test query parameter(s)
@@ -113,9 +115,10 @@ public class Example {
defaultClient.setBasePath("http://localhost:3000");
QueryApi apiInstance = new QueryApi(defaultClient);
+ String enumNonrefStringQuery = "success"; // String |
StringEnumRef enumRefStringQuery = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- ApiResponse response = apiInstance.testEnumRefStringWithHttpInfo(enumRefStringQuery);
+ ApiResponse response = apiInstance.testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
@@ -135,6 +138,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
+| **enumNonrefStringQuery** | **String**| | [optional] [enum: success, failure, unclassified] |
| **enumRefStringQuery** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java
index 41489410a41c..71db5ab4a3db 100644
--- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java
+++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/HeaderApi.java
@@ -17,6 +17,7 @@
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Pair;
+import org.openapitools.client.model.StringEnumRef;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -92,11 +93,13 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* @param integerHeader (optional)
* @param booleanHeader (optional)
* @param stringHeader (optional)
+ * @param enumNonrefStringHeader (optional)
+ * @param enumRefStringHeader (optional)
* @return String
* @throws ApiException if fails to make API call
*/
- public String testHeaderIntegerBooleanString(Integer integerHeader, Boolean booleanHeader, String stringHeader) throws ApiException {
- ApiResponse localVarResponse = testHeaderIntegerBooleanStringWithHttpInfo(integerHeader, booleanHeader, stringHeader);
+ public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException {
+ ApiResponse localVarResponse = testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
return localVarResponse.getData();
}
@@ -106,11 +109,13 @@ public String testHeaderIntegerBooleanString(Integer integerHeader, Boolean bool
* @param integerHeader (optional)
* @param booleanHeader (optional)
* @param stringHeader (optional)
+ * @param enumNonrefStringHeader (optional)
+ * @param enumRefStringHeader (optional)
* @return ApiResponse<String>
* @throws ApiException if fails to make API call
*/
- public ApiResponse testHeaderIntegerBooleanStringWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = testHeaderIntegerBooleanStringRequestBuilder(integerHeader, booleanHeader, stringHeader);
+ public ApiResponse testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = testHeaderIntegerBooleanStringEnumsRequestBuilder(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -120,7 +125,7 @@ public ApiResponse testHeaderIntegerBooleanStringWithHttpInfo(Integer in
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
- throw getApiException("testHeaderIntegerBooleanString", localVarResponse);
+ throw getApiException("testHeaderIntegerBooleanStringEnums", localVarResponse);
}
// for plain text response
if (localVarResponse.headers().map().containsKey("Content-Type") &&
@@ -146,11 +151,11 @@ public ApiResponse testHeaderIntegerBooleanStringWithHttpInfo(Integer in
}
}
- private HttpRequest.Builder testHeaderIntegerBooleanStringRequestBuilder(Integer integerHeader, Boolean booleanHeader, String stringHeader) throws ApiException {
+ private HttpRequest.Builder testHeaderIntegerBooleanStringEnumsRequestBuilder(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
- String localVarPath = "/header/integer/boolean/string";
+ String localVarPath = "/header/integer/boolean/string/enums";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
@@ -163,6 +168,12 @@ private HttpRequest.Builder testHeaderIntegerBooleanStringRequestBuilder(Integer
if (stringHeader != null) {
localVarRequestBuilder.header("string_header", stringHeader.toString());
}
+ if (enumNonrefStringHeader != null) {
+ localVarRequestBuilder.header("enum_nonref_string_header", enumNonrefStringHeader.toString());
+ }
+ if (enumRefStringHeader != null) {
+ localVarRequestBuilder.header("enum_ref_string_header", enumRefStringHeader.toString());
+ }
localVarRequestBuilder.header("Accept", "text/plain");
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java
index 8e5db91279da..e0becb2b4faa 100644
--- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java
+++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/PathApi.java
@@ -17,6 +17,7 @@
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Pair;
+import org.openapitools.client.model.StringEnumRef;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -91,11 +92,13 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Test path parameter(s)
* @param pathString (required)
* @param pathInteger (required)
+ * @param enumNonrefStringPath (required)
+ * @param enumRefStringPath (required)
* @return String
* @throws ApiException if fails to make API call
*/
- public String testsPathStringPathStringIntegerPathInteger(String pathString, Integer pathInteger) throws ApiException {
- ApiResponse localVarResponse = testsPathStringPathStringIntegerPathIntegerWithHttpInfo(pathString, pathInteger);
+ public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException {
+ ApiResponse localVarResponse = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
return localVarResponse.getData();
}
@@ -104,11 +107,13 @@ public String testsPathStringPathStringIntegerPathInteger(String pathString, Int
* Test path parameter(s)
* @param pathString (required)
* @param pathInteger (required)
+ * @param enumNonrefStringPath (required)
+ * @param enumRefStringPath (required)
* @return ApiResponse<String>
* @throws ApiException if fails to make API call
*/
- public ApiResponse testsPathStringPathStringIntegerPathIntegerWithHttpInfo(String pathString, Integer pathInteger) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = testsPathStringPathStringIntegerPathIntegerRequestBuilder(pathString, pathInteger);
+ public ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestBuilder(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -118,7 +123,7 @@ public ApiResponse testsPathStringPathStringIntegerPathIntegerWithHttpIn
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
- throw getApiException("testsPathStringPathStringIntegerPathInteger", localVarResponse);
+ throw getApiException("testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath", localVarResponse);
}
// for plain text response
if (localVarResponse.headers().map().containsKey("Content-Type") &&
@@ -144,21 +149,31 @@ public ApiResponse testsPathStringPathStringIntegerPathIntegerWithHttpIn
}
}
- private HttpRequest.Builder testsPathStringPathStringIntegerPathIntegerRequestBuilder(String pathString, Integer pathInteger) throws ApiException {
+ private HttpRequest.Builder testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequestBuilder(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException {
// verify the required parameter 'pathString' is set
if (pathString == null) {
- throw new ApiException(400, "Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathInteger");
+ throw new ApiException(400, "Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
}
// verify the required parameter 'pathInteger' is set
if (pathInteger == null) {
- throw new ApiException(400, "Missing the required parameter 'pathInteger' when calling testsPathStringPathStringIntegerPathInteger");
+ throw new ApiException(400, "Missing the required parameter 'pathInteger' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
+ }
+ // verify the required parameter 'enumNonrefStringPath' is set
+ if (enumNonrefStringPath == null) {
+ throw new ApiException(400, "Missing the required parameter 'enumNonrefStringPath' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
+ }
+ // verify the required parameter 'enumRefStringPath' is set
+ if (enumRefStringPath == null) {
+ throw new ApiException(400, "Missing the required parameter 'enumRefStringPath' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
- String localVarPath = "/path/string/{path_string}/integer/{path_integer}"
+ String localVarPath = "/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}"
.replace("{path_string}", ApiClient.urlEncode(pathString.toString()))
- .replace("{path_integer}", ApiClient.urlEncode(pathInteger.toString()));
+ .replace("{path_integer}", ApiClient.urlEncode(pathInteger.toString()))
+ .replace("{enum_nonref_string_path}", ApiClient.urlEncode(enumNonrefStringPath.toString()))
+ .replace("{enum_ref_string_path}", ApiClient.urlEncode(enumRefStringPath.toString()));
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java
index de2a4a86e2da..9e54d9377e90 100644
--- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java
+++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/api/QueryApi.java
@@ -96,24 +96,26 @@ private String formatExceptionMessage(String operationId, int statusCode, String
/**
* Test query parameter(s)
* Test query parameter(s)
+ * @param enumNonrefStringQuery (optional)
* @param enumRefStringQuery (optional)
* @return String
* @throws ApiException if fails to make API call
*/
- public String testEnumRefString(StringEnumRef enumRefStringQuery) throws ApiException {
- ApiResponse localVarResponse = testEnumRefStringWithHttpInfo(enumRefStringQuery);
+ public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException {
+ ApiResponse localVarResponse = testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery);
return localVarResponse.getData();
}
/**
* Test query parameter(s)
* Test query parameter(s)
+ * @param enumNonrefStringQuery (optional)
* @param enumRefStringQuery (optional)
* @return ApiResponse<String>
* @throws ApiException if fails to make API call
*/
- public ApiResponse testEnumRefStringWithHttpInfo(StringEnumRef enumRefStringQuery) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = testEnumRefStringRequestBuilder(enumRefStringQuery);
+ public ApiResponse testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = testEnumRefStringRequestBuilder(enumNonrefStringQuery, enumRefStringQuery);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -149,7 +151,7 @@ public ApiResponse testEnumRefStringWithHttpInfo(StringEnumRef enumRefSt
}
}
- private HttpRequest.Builder testEnumRefStringRequestBuilder(StringEnumRef enumRefStringQuery) throws ApiException {
+ private HttpRequest.Builder testEnumRefStringRequestBuilder(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -158,6 +160,8 @@ private HttpRequest.Builder testEnumRefStringRequestBuilder(StringEnumRef enumRe
List localVarQueryParams = new ArrayList<>();
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
+ localVarQueryParameterBaseName = "enum_nonref_string_query";
+ localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_nonref_string_query", enumNonrefStringQuery));
localVarQueryParameterBaseName = "enum_ref_string_query";
localVarQueryParams.addAll(ApiClient.parameterToPairs("enum_ref_string_query", enumRefStringQuery));
diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java
index 5405d11e1d8a..61b3dc5c0a7f 100644
--- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java
+++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/HeaderApiTest.java
@@ -14,6 +14,7 @@
package org.openapitools.client.api;
import org.openapitools.client.ApiException;
+import org.openapitools.client.model.StringEnumRef;
import org.junit.Test;
import org.junit.Ignore;
@@ -42,12 +43,14 @@ public class HeaderApiTest {
* if the Api call fails
*/
@Test
- public void testHeaderIntegerBooleanStringTest() throws ApiException {
+ public void testHeaderIntegerBooleanStringEnumsTest() throws ApiException {
Integer integerHeader = null;
Boolean booleanHeader = null;
String stringHeader = null;
+ String enumNonrefStringHeader = null;
+ StringEnumRef enumRefStringHeader = null;
String response =
- api.testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader);
+ api.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
// TODO: test validations
}
diff --git a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java
index c08a2f286a49..1b71c16a2c41 100644
--- a/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java
+++ b/samples/client/echo_api/java/native/src/test/java/org/openapitools/client/api/PathApiTest.java
@@ -14,6 +14,7 @@
package org.openapitools.client.api;
import org.openapitools.client.ApiException;
+import org.openapitools.client.model.StringEnumRef;
import org.junit.Test;
import org.junit.Ignore;
@@ -42,11 +43,13 @@ public class PathApiTest {
* if the Api call fails
*/
@Test
- public void testsPathStringPathStringIntegerPathIntegerTest() throws ApiException {
+ public void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() throws ApiException {
String pathString = null;
Integer pathInteger = null;
+ String enumNonrefStringPath = null;
+ StringEnumRef enumRefStringPath = null;
String response =
- api.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
+ api.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
// TODO: test validations
}
diff --git a/samples/client/echo_api/java/okhttp-gson/README.md b/samples/client/echo_api/java/okhttp-gson/README.md
index bde938288616..155878f2f8ca 100644
--- a/samples/client/echo_api/java/okhttp-gson/README.md
+++ b/samples/client/echo_api/java/okhttp-gson/README.md
@@ -128,8 +128,8 @@ Class | Method | HTTP request | Description
*BodyApi* | [**testEchoBodyTagResponseString**](docs/BodyApi.md#testEchoBodyTagResponseString) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
*FormApi* | [**testFormIntegerBooleanString**](docs/FormApi.md#testFormIntegerBooleanString) | **POST** /form/integer/boolean/string | Test form parameter(s)
*FormApi* | [**testFormOneof**](docs/FormApi.md#testFormOneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*HeaderApi* | [**testHeaderIntegerBooleanString**](docs/HeaderApi.md#testHeaderIntegerBooleanString) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*PathApi* | [**testsPathStringPathStringIntegerPathInteger**](docs/PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*HeaderApi* | [**testHeaderIntegerBooleanStringEnums**](docs/HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](docs/PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*QueryApi* | [**testEnumRefString**](docs/QueryApi.md#testEnumRefString) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**testQueryDatetimeDateString**](docs/QueryApi.md#testQueryDatetimeDateString) | **GET** /query/datetime/date/string | Test query parameter(s)
*QueryApi* | [**testQueryIntegerBooleanString**](docs/QueryApi.md#testQueryIntegerBooleanString) | **GET** /query/integer/boolean/string | Test query parameter(s)
diff --git a/samples/client/echo_api/java/okhttp-gson/api/openapi.yaml b/samples/client/echo_api/java/okhttp-gson/api/openapi.yaml
index 36261c0bd777..de47c7b5e355 100644
--- a/samples/client/echo_api/java/okhttp-gson/api/openapi.yaml
+++ b/samples/client/echo_api/java/okhttp-gson/api/openapi.yaml
@@ -11,10 +11,10 @@ info:
servers:
- url: http://localhost:3000/
paths:
- /path/string/{path_string}/integer/{path_integer}:
+ /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}:
get:
description: Test path parameter(s)
- operationId: "tests/path/string/{path_string}/integer/{path_integer}"
+ operationId: "tests/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}"
parameters:
- explode: false
in: path
@@ -30,6 +30,24 @@ paths:
schema:
type: integer
style: simple
+ - explode: false
+ in: path
+ name: enum_nonref_string_path
+ required: true
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: simple
+ - explode: false
+ in: path
+ name: enum_ref_string_path
+ required: true
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
+ style: simple
responses:
"200":
content:
@@ -83,10 +101,10 @@ paths:
- form
x-content-type: application/x-www-form-urlencoded
x-accepts: text/plain
- /header/integer/boolean/string:
+ /header/integer/boolean/string/enums:
get:
description: Test header parameter(s)
- operationId: test/header/integer/boolean/string
+ operationId: test/header/integer/boolean/string/enums
parameters:
- explode: true
in: header
@@ -109,6 +127,24 @@ paths:
schema:
type: string
style: form
+ - explode: true
+ in: header
+ name: enum_nonref_string_header
+ required: false
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: form
+ - explode: true
+ in: header
+ name: enum_ref_string_header
+ required: false
+ schema:
+ $ref: '#/components/schemas/StringEnumRef'
+ style: form
responses:
"200":
content:
@@ -125,6 +161,17 @@ paths:
description: Test query parameter(s)
operationId: test/enum_ref_string
parameters:
+ - explode: true
+ in: query
+ name: enum_nonref_string_query
+ required: false
+ schema:
+ enum:
+ - success
+ - failure
+ - unclassified
+ type: string
+ style: form
- explode: true
in: query
name: enum_ref_string_query
diff --git a/samples/client/echo_api/java/okhttp-gson/docs/HeaderApi.md b/samples/client/echo_api/java/okhttp-gson/docs/HeaderApi.md
index eb6d5d8f028c..8420eab45b60 100644
--- a/samples/client/echo_api/java/okhttp-gson/docs/HeaderApi.md
+++ b/samples/client/echo_api/java/okhttp-gson/docs/HeaderApi.md
@@ -4,12 +4,12 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**testHeaderIntegerBooleanString**](HeaderApi.md#testHeaderIntegerBooleanString) | **GET** /header/integer/boolean/string | Test header parameter(s) |
+| [**testHeaderIntegerBooleanStringEnums**](HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
-
-# **testHeaderIntegerBooleanString**
-> String testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader)
+
+# **testHeaderIntegerBooleanStringEnums**
+> String testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader)
Test header parameter(s)
@@ -33,11 +33,13 @@ public class Example {
Integer integerHeader = 56; // Integer |
Boolean booleanHeader = true; // Boolean |
String stringHeader = "stringHeader_example"; // String |
+ String enumNonrefStringHeader = "success"; // String |
+ StringEnumRef enumRefStringHeader = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- String result = apiInstance.testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader);
+ String result = apiInstance.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanString");
+ System.err.println("Exception when calling HeaderApi#testHeaderIntegerBooleanStringEnums");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -54,6 +56,8 @@ public class Example {
| **integerHeader** | **Integer**| | [optional] |
| **booleanHeader** | **Boolean**| | [optional] |
| **stringHeader** | **String**| | [optional] |
+| **enumNonrefStringHeader** | **String**| | [optional] [enum: success, failure, unclassified] |
+| **enumRefStringHeader** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
diff --git a/samples/client/echo_api/java/okhttp-gson/docs/PathApi.md b/samples/client/echo_api/java/okhttp-gson/docs/PathApi.md
index b67429194640..f7bae92568f0 100644
--- a/samples/client/echo_api/java/okhttp-gson/docs/PathApi.md
+++ b/samples/client/echo_api/java/okhttp-gson/docs/PathApi.md
@@ -4,12 +4,12 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**testsPathStringPathStringIntegerPathInteger**](PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
+| [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
-
-# **testsPathStringPathStringIntegerPathInteger**
-> String testsPathStringPathStringIntegerPathInteger(pathString, pathInteger)
+
+# **testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**
+> String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath)
Test path parameter(s)
@@ -32,11 +32,13 @@ public class Example {
PathApi apiInstance = new PathApi(defaultClient);
String pathString = "pathString_example"; // String |
Integer pathInteger = 56; // Integer |
+ String enumNonrefStringPath = "success"; // String |
+ StringEnumRef enumRefStringPath = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- String result = apiInstance.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
+ String result = apiInstance.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathInteger");
+ System.err.println("Exception when calling PathApi#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -52,6 +54,8 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **pathString** | **String**| | |
| **pathInteger** | **Integer**| | |
+| **enumNonrefStringPath** | **String**| | [enum: success, failure, unclassified] |
+| **enumRefStringPath** | [**StringEnumRef**](.md)| | [enum: success, failure, unclassified] |
### Return type
diff --git a/samples/client/echo_api/java/okhttp-gson/docs/QueryApi.md b/samples/client/echo_api/java/okhttp-gson/docs/QueryApi.md
index 250dcac4f1ee..feae225f1e62 100644
--- a/samples/client/echo_api/java/okhttp-gson/docs/QueryApi.md
+++ b/samples/client/echo_api/java/okhttp-gson/docs/QueryApi.md
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost:3000*
# **testEnumRefString**
-> String testEnumRefString(enumRefStringQuery)
+> String testEnumRefString(enumNonrefStringQuery, enumRefStringQuery)
Test query parameter(s)
@@ -37,9 +37,10 @@ public class Example {
defaultClient.setBasePath("http://localhost:3000");
QueryApi apiInstance = new QueryApi(defaultClient);
+ String enumNonrefStringQuery = "success"; // String |
StringEnumRef enumRefStringQuery = StringEnumRef.fromValue("success"); // StringEnumRef |
try {
- String result = apiInstance.testEnumRefString(enumRefStringQuery);
+ String result = apiInstance.testEnumRefString(enumNonrefStringQuery, enumRefStringQuery);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueryApi#testEnumRefString");
@@ -56,6 +57,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
+| **enumNonrefStringQuery** | **String**| | [optional] [enum: success, failure, unclassified] |
| **enumRefStringQuery** | [**StringEnumRef**](.md)| | [optional] [enum: success, failure, unclassified] |
### Return type
diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java
index 1f6ee2516259..f68a4d345229 100644
--- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java
+++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/HeaderApi.java
@@ -27,6 +27,7 @@
import java.io.IOException;
+import org.openapitools.client.model.StringEnumRef;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -72,10 +73,12 @@ public void setCustomBaseUrl(String customBaseUrl) {
}
/**
- * Build call for testHeaderIntegerBooleanString
+ * Build call for testHeaderIntegerBooleanStringEnums
* @param integerHeader (optional)
* @param booleanHeader (optional)
* @param stringHeader (optional)
+ * @param enumNonrefStringHeader (optional)
+ * @param enumRefStringHeader (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -85,7 +88,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
200 | Successful operation | - |
*/
- public okhttp3.Call testHeaderIntegerBooleanStringCall(Integer integerHeader, Boolean booleanHeader, String stringHeader, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call testHeaderIntegerBooleanStringEnumsCall(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -102,7 +105,7 @@ public okhttp3.Call testHeaderIntegerBooleanStringCall(Integer integerHeader, Bo
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/header/integer/boolean/string";
+ String localVarPath = "/header/integer/boolean/string/enums";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -122,6 +125,14 @@ public okhttp3.Call testHeaderIntegerBooleanStringCall(Integer integerHeader, Bo
localVarHeaderParams.put("string_header", localVarApiClient.parameterToString(stringHeader));
}
+ if (enumNonrefStringHeader != null) {
+ localVarHeaderParams.put("enum_nonref_string_header", localVarApiClient.parameterToString(enumNonrefStringHeader));
+ }
+
+ if (enumRefStringHeader != null) {
+ localVarHeaderParams.put("enum_ref_string_header", localVarApiClient.parameterToString(enumRefStringHeader));
+ }
+
final String[] localVarAccepts = {
"text/plain"
};
@@ -142,8 +153,8 @@ public okhttp3.Call testHeaderIntegerBooleanStringCall(Integer integerHeader, Bo
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call testHeaderIntegerBooleanStringValidateBeforeCall(Integer integerHeader, Boolean booleanHeader, String stringHeader, final ApiCallback _callback) throws ApiException {
- return testHeaderIntegerBooleanStringCall(integerHeader, booleanHeader, stringHeader, _callback);
+ private okhttp3.Call testHeaderIntegerBooleanStringEnumsValidateBeforeCall(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, final ApiCallback _callback) throws ApiException {
+ return testHeaderIntegerBooleanStringEnumsCall(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, _callback);
}
@@ -153,6 +164,8 @@ private okhttp3.Call testHeaderIntegerBooleanStringValidateBeforeCall(Integer in
* @param integerHeader (optional)
* @param booleanHeader (optional)
* @param stringHeader (optional)
+ * @param enumNonrefStringHeader (optional)
+ * @param enumRefStringHeader (optional)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -161,8 +174,8 @@ private okhttp3.Call testHeaderIntegerBooleanStringValidateBeforeCall(Integer in
200 | Successful operation | - |
*/
- public String testHeaderIntegerBooleanString(Integer integerHeader, Boolean booleanHeader, String stringHeader) throws ApiException {
- ApiResponse localVarResp = testHeaderIntegerBooleanStringWithHttpInfo(integerHeader, booleanHeader, stringHeader);
+ public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException {
+ ApiResponse localVarResp = testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
return localVarResp.getData();
}
@@ -172,6 +185,8 @@ public String testHeaderIntegerBooleanString(Integer integerHeader, Boolean bool
* @param integerHeader (optional)
* @param booleanHeader (optional)
* @param stringHeader (optional)
+ * @param enumNonrefStringHeader (optional)
+ * @param enumRefStringHeader (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
@@ -180,8 +195,8 @@ public String testHeaderIntegerBooleanString(Integer integerHeader, Boolean bool
200 | Successful operation | - |
*/
- public ApiResponse testHeaderIntegerBooleanStringWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader) throws ApiException {
- okhttp3.Call localVarCall = testHeaderIntegerBooleanStringValidateBeforeCall(integerHeader, booleanHeader, stringHeader, null);
+ public ApiResponse testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws ApiException {
+ okhttp3.Call localVarCall = testHeaderIntegerBooleanStringEnumsValidateBeforeCall(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -192,6 +207,8 @@ public ApiResponse testHeaderIntegerBooleanStringWithHttpInfo(Integer in
* @param integerHeader (optional)
* @param booleanHeader (optional)
* @param stringHeader (optional)
+ * @param enumNonrefStringHeader (optional)
+ * @param enumRefStringHeader (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
@@ -201,9 +218,9 @@ public ApiResponse testHeaderIntegerBooleanStringWithHttpInfo(Integer in
200 | Successful operation | - |
*/
- public okhttp3.Call testHeaderIntegerBooleanStringAsync(Integer integerHeader, Boolean booleanHeader, String stringHeader, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call testHeaderIntegerBooleanStringEnumsAsync(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = testHeaderIntegerBooleanStringValidateBeforeCall(integerHeader, booleanHeader, stringHeader, _callback);
+ okhttp3.Call localVarCall = testHeaderIntegerBooleanStringEnumsValidateBeforeCall(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java
index 615bcfa2bda6..f9392cccfa43 100644
--- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java
+++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/PathApi.java
@@ -27,6 +27,7 @@
import java.io.IOException;
+import org.openapitools.client.model.StringEnumRef;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -72,9 +73,11 @@ public void setCustomBaseUrl(String customBaseUrl) {
}
/**
- * Build call for testsPathStringPathStringIntegerPathInteger
+ * Build call for testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
* @param pathString (required)
* @param pathInteger (required)
+ * @param enumNonrefStringPath (required)
+ * @param enumRefStringPath (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -84,7 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
200 | Successful operation | - |
*/
- public okhttp3.Call testsPathStringPathStringIntegerPathIntegerCall(String pathString, Integer pathInteger, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathCall(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -101,9 +104,11 @@ public okhttp3.Call testsPathStringPathStringIntegerPathIntegerCall(String pathS
Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/path/string/{path_string}/integer/{path_integer}"
+ String localVarPath = "/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}"
.replace("{" + "path_string" + "}", localVarApiClient.escapeString(pathString.toString()))
- .replace("{" + "path_integer" + "}", localVarApiClient.escapeString(pathInteger.toString()));
+ .replace("{" + "path_integer" + "}", localVarApiClient.escapeString(pathInteger.toString()))
+ .replace("{" + "enum_nonref_string_path" + "}", localVarApiClient.escapeString(enumNonrefStringPath.toString()))
+ .replace("{" + "enum_ref_string_path" + "}", localVarApiClient.escapeString(enumRefStringPath.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
@@ -131,18 +136,28 @@ public okhttp3.Call testsPathStringPathStringIntegerPathIntegerCall(String pathS
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call testsPathStringPathStringIntegerPathIntegerValidateBeforeCall(String pathString, Integer pathInteger, final ApiCallback _callback) throws ApiException {
+ private okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'pathString' is set
if (pathString == null) {
- throw new ApiException("Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathInteger(Async)");
+ throw new ApiException("Missing the required parameter 'pathString' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(Async)");
}
// verify the required parameter 'pathInteger' is set
if (pathInteger == null) {
- throw new ApiException("Missing the required parameter 'pathInteger' when calling testsPathStringPathStringIntegerPathInteger(Async)");
+ throw new ApiException("Missing the required parameter 'pathInteger' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(Async)");
}
- return testsPathStringPathStringIntegerPathIntegerCall(pathString, pathInteger, _callback);
+ // verify the required parameter 'enumNonrefStringPath' is set
+ if (enumNonrefStringPath == null) {
+ throw new ApiException("Missing the required parameter 'enumNonrefStringPath' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(Async)");
+ }
+
+ // verify the required parameter 'enumRefStringPath' is set
+ if (enumRefStringPath == null) {
+ throw new ApiException("Missing the required parameter 'enumRefStringPath' when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(Async)");
+ }
+
+ return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathCall(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, _callback);
}
@@ -151,6 +166,8 @@ private okhttp3.Call testsPathStringPathStringIntegerPathIntegerValidateBeforeCa
* Test path parameter(s)
* @param pathString (required)
* @param pathInteger (required)
+ * @param enumNonrefStringPath (required)
+ * @param enumRefStringPath (required)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -159,8 +176,8 @@ private okhttp3.Call testsPathStringPathStringIntegerPathIntegerValidateBeforeCa
200 | Successful operation | - |
*/
- public String testsPathStringPathStringIntegerPathInteger(String pathString, Integer pathInteger) throws ApiException {
- ApiResponse localVarResp = testsPathStringPathStringIntegerPathIntegerWithHttpInfo(pathString, pathInteger);
+ public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException {
+ ApiResponse localVarResp = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
return localVarResp.getData();
}
@@ -169,6 +186,8 @@ public String testsPathStringPathStringIntegerPathInteger(String pathString, Int
* Test path parameter(s)
* @param pathString (required)
* @param pathInteger (required)
+ * @param enumNonrefStringPath (required)
+ * @param enumRefStringPath (required)
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -177,8 +196,8 @@ public String testsPathStringPathStringIntegerPathInteger(String pathString, Int
200 | Successful operation | - |
*/
- public ApiResponse testsPathStringPathStringIntegerPathIntegerWithHttpInfo(String pathString, Integer pathInteger) throws ApiException {
- okhttp3.Call localVarCall = testsPathStringPathStringIntegerPathIntegerValidateBeforeCall(pathString, pathInteger, null);
+ public ApiResponse testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws ApiException {
+ okhttp3.Call localVarCall = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -188,6 +207,8 @@ public ApiResponse testsPathStringPathStringIntegerPathIntegerWithHttpIn
* Test path parameter(s)
* @param pathString (required)
* @param pathInteger (required)
+ * @param enumNonrefStringPath (required)
+ * @param enumRefStringPath (required)
* @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
@@ -197,9 +218,9 @@ public ApiResponse testsPathStringPathStringIntegerPathIntegerWithHttpIn
200 | Successful operation | - |
*/
- public okhttp3.Call testsPathStringPathStringIntegerPathIntegerAsync(String pathString, Integer pathInteger, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = testsPathStringPathStringIntegerPathIntegerValidateBeforeCall(pathString, pathInteger, _callback);
+ okhttp3.Call localVarCall = testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathValidateBeforeCall(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java
index 9cd3464e9e32..0ade6b21bcd2 100644
--- a/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java
+++ b/samples/client/echo_api/java/okhttp-gson/src/main/java/org/openapitools/client/api/QueryApi.java
@@ -80,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
/**
* Build call for testEnumRefString
+ * @param enumNonrefStringQuery (optional)
* @param enumRefStringQuery (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
@@ -90,7 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
200 | Successful operation | - |
*/
- public okhttp3.Call testEnumRefStringCall(StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call testEnumRefStringCall(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
@@ -115,6 +116,10 @@ public okhttp3.Call testEnumRefStringCall(StringEnumRef enumRefStringQuery, fina
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
+ if (enumNonrefStringQuery != null) {
+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("enum_nonref_string_query", enumNonrefStringQuery));
+ }
+
if (enumRefStringQuery != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("enum_ref_string_query", enumRefStringQuery));
}
@@ -139,14 +144,15 @@ public okhttp3.Call testEnumRefStringCall(StringEnumRef enumRefStringQuery, fina
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call testEnumRefStringValidateBeforeCall(StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException {
- return testEnumRefStringCall(enumRefStringQuery, _callback);
+ private okhttp3.Call testEnumRefStringValidateBeforeCall(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException {
+ return testEnumRefStringCall(enumNonrefStringQuery, enumRefStringQuery, _callback);
}
/**
* Test query parameter(s)
* Test query parameter(s)
+ * @param enumNonrefStringQuery (optional)
* @param enumRefStringQuery (optional)
* @return String
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -156,14 +162,15 @@ private okhttp3.Call testEnumRefStringValidateBeforeCall(StringEnumRef enumRefSt
200 | Successful operation | - |
*/
- public String testEnumRefString(StringEnumRef enumRefStringQuery) throws ApiException {
- ApiResponse localVarResp = testEnumRefStringWithHttpInfo(enumRefStringQuery);
+ public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException {
+ ApiResponse localVarResp = testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery);
return localVarResp.getData();
}
/**
* Test query parameter(s)
* Test query parameter(s)
+ * @param enumNonrefStringQuery (optional)
* @param enumRefStringQuery (optional)
* @return ApiResponse<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -173,8 +180,8 @@ public String testEnumRefString(StringEnumRef enumRefStringQuery) throws ApiExce
200 | Successful operation | - |
*/
- public ApiResponse testEnumRefStringWithHttpInfo(StringEnumRef enumRefStringQuery) throws ApiException {
- okhttp3.Call localVarCall = testEnumRefStringValidateBeforeCall(enumRefStringQuery, null);
+ public ApiResponse testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws ApiException {
+ okhttp3.Call localVarCall = testEnumRefStringValidateBeforeCall(enumNonrefStringQuery, enumRefStringQuery, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
@@ -182,6 +189,7 @@ public ApiResponse testEnumRefStringWithHttpInfo(StringEnumRef enumRefSt
/**
* Test query parameter(s) (asynchronously)
* Test query parameter(s)
+ * @param enumNonrefStringQuery (optional)
* @param enumRefStringQuery (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
@@ -192,9 +200,9 @@ public ApiResponse testEnumRefStringWithHttpInfo(StringEnumRef enumRefSt
200 | Successful operation | - |
*/
- public okhttp3.Call testEnumRefStringAsync(StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException {
+ public okhttp3.Call testEnumRefStringAsync(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery, final ApiCallback _callback) throws ApiException {
- okhttp3.Call localVarCall = testEnumRefStringValidateBeforeCall(enumRefStringQuery, _callback);
+ okhttp3.Call localVarCall = testEnumRefStringValidateBeforeCall(enumNonrefStringQuery, enumRefStringQuery, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java
index 071ede0615e4..ecff2132d112 100644
--- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java
+++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/HeaderApiTest.java
@@ -14,6 +14,7 @@
package org.openapitools.client.api;
import org.openapitools.client.ApiException;
+import org.openapitools.client.model.StringEnumRef;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -38,11 +39,13 @@ public class HeaderApiTest {
* @throws ApiException if the Api call fails
*/
@Test
- public void testHeaderIntegerBooleanStringTest() throws ApiException {
+ public void testHeaderIntegerBooleanStringEnumsTest() throws ApiException {
Integer integerHeader = null;
Boolean booleanHeader = null;
String stringHeader = null;
- String response = api.testHeaderIntegerBooleanString(integerHeader, booleanHeader, stringHeader);
+ String enumNonrefStringHeader = null;
+ StringEnumRef enumRefStringHeader = null;
+ String response = api.testHeaderIntegerBooleanStringEnums(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader);
// TODO: test validations
}
diff --git a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/PathApiTest.java b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/PathApiTest.java
index d4e95d083976..96e5ff98794a 100644
--- a/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/PathApiTest.java
+++ b/samples/client/echo_api/java/okhttp-gson/src/test/java/org/openapitools/client/api/PathApiTest.java
@@ -14,6 +14,7 @@
package org.openapitools.client.api;
import org.openapitools.client.ApiException;
+import org.openapitools.client.model.StringEnumRef;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
@@ -38,10 +39,12 @@ public class PathApiTest {
* @throws ApiException if the Api call fails
*/
@Test
- public void testsPathStringPathStringIntegerPathIntegerTest() throws ApiException {
+ public void testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathTest() throws ApiException {
String pathString = null;
Integer pathInteger = null;
- String response = api.testsPathStringPathStringIntegerPathInteger(pathString, pathInteger);
+ String enumNonrefStringPath = null;
+ StringEnumRef enumRefStringPath = null;
+ String response = api.testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath);
// TODO: test validations
}
diff --git a/samples/client/echo_api/php-nextgen/README.md b/samples/client/echo_api/php-nextgen/README.md
index f73398ca1f40..03fa13c33a9a 100644
--- a/samples/client/echo_api/php-nextgen/README.md
+++ b/samples/client/echo_api/php-nextgen/README.md
@@ -86,8 +86,8 @@ Class | Method | HTTP request | Description
*BodyApi* | [**testEchoBodyTagResponseString**](docs/Api/BodyApi.md#testechobodytagresponsestring) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
*FormApi* | [**testFormIntegerBooleanString**](docs/Api/FormApi.md#testformintegerbooleanstring) | **POST** /form/integer/boolean/string | Test form parameter(s)
*FormApi* | [**testFormOneof**](docs/Api/FormApi.md#testformoneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*HeaderApi* | [**testHeaderIntegerBooleanString**](docs/Api/HeaderApi.md#testheaderintegerbooleanstring) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*PathApi* | [**testsPathStringPathStringIntegerPathInteger**](docs/Api/PathApi.md#testspathstringpathstringintegerpathinteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*HeaderApi* | [**testHeaderIntegerBooleanStringEnums**](docs/Api/HeaderApi.md#testheaderintegerbooleanstringenums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath**](docs/Api/PathApi.md#testspathstringpathstringintegerpathintegerenumnonrefstringpathenumrefstringpath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*QueryApi* | [**testEnumRefString**](docs/Api/QueryApi.md#testenumrefstring) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**testQueryDatetimeDateString**](docs/Api/QueryApi.md#testquerydatetimedatestring) | **GET** /query/datetime/date/string | Test query parameter(s)
*QueryApi* | [**testQueryIntegerBooleanString**](docs/Api/QueryApi.md#testqueryintegerbooleanstring) | **GET** /query/integer/boolean/string | Test query parameter(s)
diff --git a/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md b/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md
index 12146c4b4ba6..62de1378949d 100644
--- a/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md
+++ b/samples/client/echo_api/php-nextgen/docs/Api/HeaderApi.md
@@ -4,13 +4,13 @@ All URIs are relative to http://localhost:3000, except if the operation defines
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
-| [**testHeaderIntegerBooleanString()**](HeaderApi.md#testHeaderIntegerBooleanString) | **GET** /header/integer/boolean/string | Test header parameter(s) |
+| [**testHeaderIntegerBooleanStringEnums()**](HeaderApi.md#testHeaderIntegerBooleanStringEnums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
-## `testHeaderIntegerBooleanString()`
+## `testHeaderIntegerBooleanStringEnums()`
```php
-testHeaderIntegerBooleanString($integer_header, $boolean_header, $string_header): string
+testHeaderIntegerBooleanStringEnums($integer_header, $boolean_header, $string_header, $enum_nonref_string_header, $enum_ref_string_header): string
```
Test header parameter(s)
@@ -33,12 +33,14 @@ $apiInstance = new OpenAPI\Client\Api\HeaderApi(
$integer_header = 56; // int
$boolean_header = True; // bool
$string_header = 'string_header_example'; // string
+$enum_nonref_string_header = 'enum_nonref_string_header_example'; // string
+$enum_ref_string_header = new \OpenAPI\Client\Model\StringEnumRef(); // StringEnumRef
try {
- $result = $apiInstance->testHeaderIntegerBooleanString($integer_header, $boolean_header, $string_header);
+ $result = $apiInstance->testHeaderIntegerBooleanStringEnums($integer_header, $boolean_header, $string_header, $enum_nonref_string_header, $enum_ref_string_header);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling HeaderApi->testHeaderIntegerBooleanString: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling HeaderApi->testHeaderIntegerBooleanStringEnums: ', $e->getMessage(), PHP_EOL;
}
```
@@ -49,6 +51,8 @@ try {
| **integer_header** | **int**| | [optional] |
| **boolean_header** | **bool**| | [optional] |
| **string_header** | **string**| | [optional] |
+| **enum_nonref_string_header** | **string**| | [optional] |
+| **enum_ref_string_header** | [**StringEnumRef**](../Model/.md)| | [optional] |
### Return type
diff --git a/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md b/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md
index 7adda508e748..9d3001f01390 100644
--- a/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md
+++ b/samples/client/echo_api/php-nextgen/docs/Api/PathApi.md
@@ -4,13 +4,13 @@ All URIs are relative to http://localhost:3000, except if the operation defines
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
-| [**testsPathStringPathStringIntegerPathInteger()**](PathApi.md#testsPathStringPathStringIntegerPathInteger) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
+| [**testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath()**](PathApi.md#testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
-## `testsPathStringPathStringIntegerPathInteger()`
+## `testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath()`
```php
-testsPathStringPathStringIntegerPathInteger($path_string, $path_integer): string
+testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path): string
```
Test path parameter(s)
@@ -32,12 +32,14 @@ $apiInstance = new OpenAPI\Client\Api\PathApi(
);
$path_string = 'path_string_example'; // string
$path_integer = 56; // int
+$enum_nonref_string_path = 'enum_nonref_string_path_example'; // string
+$enum_ref_string_path = new \OpenAPI\Client\Model\StringEnumRef(); // StringEnumRef
try {
- $result = $apiInstance->testsPathStringPathStringIntegerPathInteger($path_string, $path_integer);
+ $result = $apiInstance->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling PathApi->testsPathStringPathStringIntegerPathInteger: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling PathApi->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath: ', $e->getMessage(), PHP_EOL;
}
```
@@ -47,6 +49,8 @@ try {
| ------------- | ------------- | ------------- | ------------- |
| **path_string** | **string**| | |
| **path_integer** | **int**| | |
+| **enum_nonref_string_path** | **string**| | |
+| **enum_ref_string_path** | [**StringEnumRef**](../Model/.md)| | |
### Return type
diff --git a/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md b/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md
index c7534bcbdc74..75b16e0b48ad 100644
--- a/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md
+++ b/samples/client/echo_api/php-nextgen/docs/Api/QueryApi.md
@@ -17,7 +17,7 @@ All URIs are relative to http://localhost:3000, except if the operation defines
## `testEnumRefString()`
```php
-testEnumRefString($enum_ref_string_query): string
+testEnumRefString($enum_nonref_string_query, $enum_ref_string_query): string
```
Test query parameter(s)
@@ -37,10 +37,11 @@ $apiInstance = new OpenAPI\Client\Api\QueryApi(
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
+$enum_nonref_string_query = 'enum_nonref_string_query_example'; // string
$enum_ref_string_query = new \OpenAPI\Client\Model\StringEnumRef(); // StringEnumRef
try {
- $result = $apiInstance->testEnumRefString($enum_ref_string_query);
+ $result = $apiInstance->testEnumRefString($enum_nonref_string_query, $enum_ref_string_query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QueryApi->testEnumRefString: ', $e->getMessage(), PHP_EOL;
@@ -51,6 +52,7 @@ try {
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
+| **enum_nonref_string_query** | **string**| | [optional] |
| **enum_ref_string_query** | [**StringEnumRef**](../Model/.md)| | [optional] |
### Return type
diff --git a/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php b/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php
index 1ce6cf32cc10..433596362ff8 100644
--- a/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php
+++ b/samples/client/echo_api/php-nextgen/src/Api/HeaderApi.php
@@ -74,7 +74,7 @@ class HeaderApi
/** @var string[] $contentTypes **/
public const contentTypes = [
- 'testHeaderIntegerBooleanString' => [
+ 'testHeaderIntegerBooleanStringEnums' => [
'application/json',
],
];
@@ -126,52 +126,60 @@ public function getConfig(): Configuration
}
/**
- * Operation testHeaderIntegerBooleanString
+ * Operation testHeaderIntegerBooleanStringEnums
*
* Test header parameter(s)
*
* @param int|null $integer_header integer_header (optional)
* @param bool|null $boolean_header boolean_header (optional)
* @param string|null $string_header string_header (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
+ * @param string|null $enum_nonref_string_header enum_nonref_string_header (optional)
+ * @param StringEnumRef|null $enum_ref_string_header enum_ref_string_header (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanStringEnums'] to see the possible values for this operation
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
* @return string
*/
- public function testHeaderIntegerBooleanString(
+ public function testHeaderIntegerBooleanStringEnums(
?int $integer_header = null,
?bool $boolean_header = null,
?string $string_header = null,
- string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
+ ?string $enum_nonref_string_header = null,
+ ?StringEnumRef $enum_ref_string_header = null,
+ string $contentType = self::contentTypes['testHeaderIntegerBooleanStringEnums'][0]
): string
{
- list($response) = $this->testHeaderIntegerBooleanStringWithHttpInfo($integer_header, $boolean_header, $string_header, $contentType);
+ list($response) = $this->testHeaderIntegerBooleanStringEnumsWithHttpInfo($integer_header, $boolean_header, $string_header, $enum_nonref_string_header, $enum_ref_string_header, $contentType);
return $response;
}
/**
- * Operation testHeaderIntegerBooleanStringWithHttpInfo
+ * Operation testHeaderIntegerBooleanStringEnumsWithHttpInfo
*
* Test header parameter(s)
*
* @param int|null $integer_header (optional)
* @param bool|null $boolean_header (optional)
* @param string|null $string_header (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
+ * @param string|null $enum_nonref_string_header (optional)
+ * @param StringEnumRef|null $enum_ref_string_header (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanStringEnums'] to see the possible values for this operation
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
* @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
- public function testHeaderIntegerBooleanStringWithHttpInfo(
+ public function testHeaderIntegerBooleanStringEnumsWithHttpInfo(
?int $integer_header = null,
?bool $boolean_header = null,
?string $string_header = null,
- string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
+ ?string $enum_nonref_string_header = null,
+ ?StringEnumRef $enum_ref_string_header = null,
+ string $contentType = self::contentTypes['testHeaderIntegerBooleanStringEnums'][0]
): array
{
- $request = $this->testHeaderIntegerBooleanStringRequest($integer_header, $boolean_header, $string_header, $contentType);
+ $request = $this->testHeaderIntegerBooleanStringEnumsRequest($integer_header, $boolean_header, $string_header, $enum_nonref_string_header, $enum_ref_string_header, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -258,26 +266,30 @@ public function testHeaderIntegerBooleanStringWithHttpInfo(
}
/**
- * Operation testHeaderIntegerBooleanStringAsync
+ * Operation testHeaderIntegerBooleanStringEnumsAsync
*
* Test header parameter(s)
*
* @param int|null $integer_header (optional)
* @param bool|null $boolean_header (optional)
* @param string|null $string_header (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
+ * @param string|null $enum_nonref_string_header (optional)
+ * @param StringEnumRef|null $enum_ref_string_header (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanStringEnums'] to see the possible values for this operation
*
* @throws InvalidArgumentException
* @return PromiseInterface
*/
- public function testHeaderIntegerBooleanStringAsync(
+ public function testHeaderIntegerBooleanStringEnumsAsync(
?int $integer_header = null,
?bool $boolean_header = null,
?string $string_header = null,
- string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
+ ?string $enum_nonref_string_header = null,
+ ?StringEnumRef $enum_ref_string_header = null,
+ string $contentType = self::contentTypes['testHeaderIntegerBooleanStringEnums'][0]
): PromiseInterface
{
- return $this->testHeaderIntegerBooleanStringAsyncWithHttpInfo($integer_header, $boolean_header, $string_header, $contentType)
+ return $this->testHeaderIntegerBooleanStringEnumsAsyncWithHttpInfo($integer_header, $boolean_header, $string_header, $enum_nonref_string_header, $enum_ref_string_header, $contentType)
->then(
function ($response) {
return $response[0];
@@ -286,27 +298,31 @@ function ($response) {
}
/**
- * Operation testHeaderIntegerBooleanStringAsyncWithHttpInfo
+ * Operation testHeaderIntegerBooleanStringEnumsAsyncWithHttpInfo
*
* Test header parameter(s)
*
* @param int|null $integer_header (optional)
* @param bool|null $boolean_header (optional)
* @param string|null $string_header (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
+ * @param string|null $enum_nonref_string_header (optional)
+ * @param StringEnumRef|null $enum_ref_string_header (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanStringEnums'] to see the possible values for this operation
*
* @throws InvalidArgumentException
* @return PromiseInterface
*/
- public function testHeaderIntegerBooleanStringAsyncWithHttpInfo(
+ public function testHeaderIntegerBooleanStringEnumsAsyncWithHttpInfo(
$integer_header = null,
$boolean_header = null,
$string_header = null,
- string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
+ $enum_nonref_string_header = null,
+ $enum_ref_string_header = null,
+ string $contentType = self::contentTypes['testHeaderIntegerBooleanStringEnums'][0]
): PromiseInterface
{
$returnType = 'string';
- $request = $this->testHeaderIntegerBooleanStringRequest($integer_header, $boolean_header, $string_header, $contentType);
+ $request = $this->testHeaderIntegerBooleanStringEnumsRequest($integer_header, $boolean_header, $string_header, $enum_nonref_string_header, $enum_ref_string_header, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -345,21 +361,25 @@ function ($exception) {
}
/**
- * Create request for operation 'testHeaderIntegerBooleanString'
+ * Create request for operation 'testHeaderIntegerBooleanStringEnums'
*
* @param int|null $integer_header (optional)
* @param bool|null $boolean_header (optional)
* @param string|null $string_header (optional)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanString'] to see the possible values for this operation
+ * @param string|null $enum_nonref_string_header (optional)
+ * @param StringEnumRef|null $enum_ref_string_header (optional)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testHeaderIntegerBooleanStringEnums'] to see the possible values for this operation
*
* @throws InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function testHeaderIntegerBooleanStringRequest(
+ public function testHeaderIntegerBooleanStringEnumsRequest(
$integer_header = null,
$boolean_header = null,
$string_header = null,
- string $contentType = self::contentTypes['testHeaderIntegerBooleanString'][0]
+ $enum_nonref_string_header = null,
+ $enum_ref_string_header = null,
+ string $contentType = self::contentTypes['testHeaderIntegerBooleanStringEnums'][0]
): Request
{
@@ -367,7 +387,9 @@ public function testHeaderIntegerBooleanStringRequest(
- $resourcePath = '/header/integer/boolean/string';
+
+
+ $resourcePath = '/header/integer/boolean/string/enums';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -387,6 +409,14 @@ public function testHeaderIntegerBooleanStringRequest(
if ($string_header !== null) {
$headerParams['string_header'] = ObjectSerializer::toHeaderValue($string_header);
}
+ // header params
+ if ($enum_nonref_string_header !== null) {
+ $headerParams['enum_nonref_string_header'] = ObjectSerializer::toHeaderValue($enum_nonref_string_header);
+ }
+ // header params
+ if ($enum_ref_string_header !== null) {
+ $headerParams['enum_ref_string_header'] = ObjectSerializer::toHeaderValue($enum_ref_string_header);
+ }
diff --git a/samples/client/echo_api/php-nextgen/src/Api/PathApi.php b/samples/client/echo_api/php-nextgen/src/Api/PathApi.php
index d0d9836bc7a1..81b058c4e09d 100644
--- a/samples/client/echo_api/php-nextgen/src/Api/PathApi.php
+++ b/samples/client/echo_api/php-nextgen/src/Api/PathApi.php
@@ -74,7 +74,7 @@ class PathApi
/** @var string[] $contentTypes **/
public const contentTypes = [
- 'testsPathStringPathStringIntegerPathInteger' => [
+ 'testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath' => [
'application/json',
],
];
@@ -126,48 +126,56 @@ public function getConfig(): Configuration
}
/**
- * Operation testsPathStringPathStringIntegerPathInteger
+ * Operation testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath
*
* Test path parameter(s)
*
* @param string $path_string path_string (required)
* @param int $path_integer path_integer (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
+ * @param string $enum_nonref_string_path enum_nonref_string_path (required)
+ * @param StringEnumRef $enum_ref_string_path enum_ref_string_path (required)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'] to see the possible values for this operation
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
* @return string
*/
- public function testsPathStringPathStringIntegerPathInteger(
+ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(
string $path_string,
int $path_integer,
- string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
+ string $enum_nonref_string_path,
+ StringEnumRef $enum_ref_string_path,
+ string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'][0]
): string
{
- list($response) = $this->testsPathStringPathStringIntegerPathIntegerWithHttpInfo($path_string, $path_integer, $contentType);
+ list($response) = $this->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path, $contentType);
return $response;
}
/**
- * Operation testsPathStringPathStringIntegerPathIntegerWithHttpInfo
+ * Operation testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo
*
* Test path parameter(s)
*
* @param string $path_string (required)
* @param int $path_integer (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
+ * @param string $enum_nonref_string_path (required)
+ * @param StringEnumRef $enum_ref_string_path (required)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'] to see the possible values for this operation
*
* @throws ApiException on non-2xx response
* @throws InvalidArgumentException
* @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
- public function testsPathStringPathStringIntegerPathIntegerWithHttpInfo(
+ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(
string $path_string,
int $path_integer,
- string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
+ string $enum_nonref_string_path,
+ StringEnumRef $enum_ref_string_path,
+ string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'][0]
): array
{
- $request = $this->testsPathStringPathStringIntegerPathIntegerRequest($path_string, $path_integer, $contentType);
+ $request = $this->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequest($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -254,24 +262,28 @@ public function testsPathStringPathStringIntegerPathIntegerWithHttpInfo(
}
/**
- * Operation testsPathStringPathStringIntegerPathIntegerAsync
+ * Operation testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync
*
* Test path parameter(s)
*
* @param string $path_string (required)
* @param int $path_integer (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
+ * @param string $enum_nonref_string_path (required)
+ * @param StringEnumRef $enum_ref_string_path (required)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'] to see the possible values for this operation
*
* @throws InvalidArgumentException
* @return PromiseInterface
*/
- public function testsPathStringPathStringIntegerPathIntegerAsync(
+ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(
string $path_string,
int $path_integer,
- string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
+ string $enum_nonref_string_path,
+ StringEnumRef $enum_ref_string_path,
+ string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'][0]
): PromiseInterface
{
- return $this->testsPathStringPathStringIntegerPathIntegerAsyncWithHttpInfo($path_string, $path_integer, $contentType)
+ return $this->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsyncWithHttpInfo($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path, $contentType)
->then(
function ($response) {
return $response[0];
@@ -280,25 +292,29 @@ function ($response) {
}
/**
- * Operation testsPathStringPathStringIntegerPathIntegerAsyncWithHttpInfo
+ * Operation testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsyncWithHttpInfo
*
* Test path parameter(s)
*
* @param string $path_string (required)
* @param int $path_integer (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
+ * @param string $enum_nonref_string_path (required)
+ * @param StringEnumRef $enum_ref_string_path (required)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'] to see the possible values for this operation
*
* @throws InvalidArgumentException
* @return PromiseInterface
*/
- public function testsPathStringPathStringIntegerPathIntegerAsyncWithHttpInfo(
+ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsyncWithHttpInfo(
$path_string,
$path_integer,
- string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
+ $enum_nonref_string_path,
+ $enum_ref_string_path,
+ string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'][0]
): PromiseInterface
{
$returnType = 'string';
- $request = $this->testsPathStringPathStringIntegerPathIntegerRequest($path_string, $path_integer, $contentType);
+ $request = $this->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequest($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -337,38 +353,56 @@ function ($exception) {
}
/**
- * Create request for operation 'testsPathStringPathStringIntegerPathInteger'
+ * Create request for operation 'testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'
*
* @param string $path_string (required)
* @param int $path_integer (required)
- * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathInteger'] to see the possible values for this operation
+ * @param string $enum_nonref_string_path (required)
+ * @param StringEnumRef $enum_ref_string_path (required)
+ * @param string $contentType The value for the Content-Type header. Check self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'] to see the possible values for this operation
*
* @throws InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
- public function testsPathStringPathStringIntegerPathIntegerRequest(
+ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathRequest(
$path_string,
$path_integer,
- string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathInteger'][0]
+ $enum_nonref_string_path,
+ $enum_ref_string_path,
+ string $contentType = self::contentTypes['testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'][0]
): Request
{
// verify the required parameter 'path_string' is set
if ($path_string === null || (is_array($path_string) && count($path_string) === 0)) {
throw new InvalidArgumentException(
- 'Missing the required parameter $path_string when calling testsPathStringPathStringIntegerPathInteger'
+ 'Missing the required parameter $path_string when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'
);
}
// verify the required parameter 'path_integer' is set
if ($path_integer === null || (is_array($path_integer) && count($path_integer) === 0)) {
throw new InvalidArgumentException(
- 'Missing the required parameter $path_integer when calling testsPathStringPathStringIntegerPathInteger'
+ 'Missing the required parameter $path_integer when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'
);
}
+ // verify the required parameter 'enum_nonref_string_path' is set
+ if ($enum_nonref_string_path === null || (is_array($enum_nonref_string_path) && count($enum_nonref_string_path) === 0)) {
+ throw new InvalidArgumentException(
+ 'Missing the required parameter $enum_nonref_string_path when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'
+ );
+ }
- $resourcePath = '/path/string/{path_string}/integer/{path_integer}';
+ // verify the required parameter 'enum_ref_string_path' is set
+ if ($enum_ref_string_path === null || (is_array($enum_ref_string_path) && count($enum_ref_string_path) === 0)) {
+ throw new InvalidArgumentException(
+ 'Missing the required parameter $enum_ref_string_path when calling testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath'
+ );
+ }
+
+
+ $resourcePath = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}';
$formParams = [];
$queryParams = [];
$headerParams = [];
@@ -393,6 +427,22 @@ public function testsPathStringPathStringIntegerPathIntegerRequest(
$resourcePath
);
}
+ // path params
+ if ($enum_nonref_string_path !== null) {
+ $resourcePath = str_replace(
+ '{' . 'enum_nonref_string_path' . '}',
+ ObjectSerializer::toPathValue($enum_nonref_string_path),
+ $resourcePath
+ );
+ }
+ // path params
+ if ($enum_ref_string_path !== null) {
+ $resourcePath = str_replace(
+ '{' . 'enum_ref_string_path' . '}',
+ ObjectSerializer::toPathValue($enum_ref_string_path),
+ $resourcePath
+ );
+ }
$headers = $this->headerSelector->selectHeaders(
diff --git a/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php b/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php
index 7fc0dbe391ef..75247d8e49d2 100644
--- a/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php
+++ b/samples/client/echo_api/php-nextgen/src/Api/QueryApi.php
@@ -151,6 +151,7 @@ public function getConfig(): Configuration
*
* Test query parameter(s)
*
+ * @param string|null $enum_nonref_string_query enum_nonref_string_query (optional)
* @param StringEnumRef|null $enum_ref_string_query enum_ref_string_query (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
*
@@ -159,11 +160,12 @@ public function getConfig(): Configuration
* @return string
*/
public function testEnumRefString(
+ ?string $enum_nonref_string_query = null,
?StringEnumRef $enum_ref_string_query = null,
string $contentType = self::contentTypes['testEnumRefString'][0]
): string
{
- list($response) = $this->testEnumRefStringWithHttpInfo($enum_ref_string_query, $contentType);
+ list($response) = $this->testEnumRefStringWithHttpInfo($enum_nonref_string_query, $enum_ref_string_query, $contentType);
return $response;
}
@@ -172,6 +174,7 @@ public function testEnumRefString(
*
* Test query parameter(s)
*
+ * @param string|null $enum_nonref_string_query (optional)
* @param StringEnumRef|null $enum_ref_string_query (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
*
@@ -180,11 +183,12 @@ public function testEnumRefString(
* @return array of string, HTTP status code, HTTP response headers (array of strings)
*/
public function testEnumRefStringWithHttpInfo(
+ ?string $enum_nonref_string_query = null,
?StringEnumRef $enum_ref_string_query = null,
string $contentType = self::contentTypes['testEnumRefString'][0]
): array
{
- $request = $this->testEnumRefStringRequest($enum_ref_string_query, $contentType);
+ $request = $this->testEnumRefStringRequest($enum_nonref_string_query, $enum_ref_string_query, $contentType);
try {
$options = $this->createHttpClientOption();
@@ -275,6 +279,7 @@ public function testEnumRefStringWithHttpInfo(
*
* Test query parameter(s)
*
+ * @param string|null $enum_nonref_string_query (optional)
* @param StringEnumRef|null $enum_ref_string_query (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
*
@@ -282,11 +287,12 @@ public function testEnumRefStringWithHttpInfo(
* @return PromiseInterface
*/
public function testEnumRefStringAsync(
+ ?string $enum_nonref_string_query = null,
?StringEnumRef $enum_ref_string_query = null,
string $contentType = self::contentTypes['testEnumRefString'][0]
): PromiseInterface
{
- return $this->testEnumRefStringAsyncWithHttpInfo($enum_ref_string_query, $contentType)
+ return $this->testEnumRefStringAsyncWithHttpInfo($enum_nonref_string_query, $enum_ref_string_query, $contentType)
->then(
function ($response) {
return $response[0];
@@ -299,6 +305,7 @@ function ($response) {
*
* Test query parameter(s)
*
+ * @param string|null $enum_nonref_string_query (optional)
* @param StringEnumRef|null $enum_ref_string_query (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
*
@@ -306,12 +313,13 @@ function ($response) {
* @return PromiseInterface
*/
public function testEnumRefStringAsyncWithHttpInfo(
+ $enum_nonref_string_query = null,
$enum_ref_string_query = null,
string $contentType = self::contentTypes['testEnumRefString'][0]
): PromiseInterface
{
$returnType = 'string';
- $request = $this->testEnumRefStringRequest($enum_ref_string_query, $contentType);
+ $request = $this->testEnumRefStringRequest($enum_nonref_string_query, $enum_ref_string_query, $contentType);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@@ -352,6 +360,7 @@ function ($exception) {
/**
* Create request for operation 'testEnumRefString'
*
+ * @param string|null $enum_nonref_string_query (optional)
* @param StringEnumRef|null $enum_ref_string_query (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['testEnumRefString'] to see the possible values for this operation
*
@@ -359,6 +368,7 @@ function ($exception) {
* @return \GuzzleHttp\Psr7\Request
*/
public function testEnumRefStringRequest(
+ $enum_nonref_string_query = null,
$enum_ref_string_query = null,
string $contentType = self::contentTypes['testEnumRefString'][0]
): Request
@@ -366,6 +376,7 @@ public function testEnumRefStringRequest(
+
$resourcePath = '/query/enum_ref_string';
$formParams = [];
$queryParams = [];
@@ -373,6 +384,15 @@ public function testEnumRefStringRequest(
$httpBody = '';
$multipart = false;
+ // query params
+ $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
+ $enum_nonref_string_query,
+ 'enum_nonref_string_query', // param base name
+ 'string', // openApiType
+ 'form', // style
+ true, // explode
+ false // required
+ ) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
$enum_ref_string_query,
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md
index d9de36cb6e2d..9096a78c85de 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/README.md
@@ -104,8 +104,8 @@ Class | Method | HTTP request | Description
*BodyApi* | [**test_echo_body_tag_response_string**](docs/BodyApi.md#test_echo_body_tag_response_string) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
*FormApi* | [**test_form_integer_boolean_string**](docs/FormApi.md#test_form_integer_boolean_string) | **POST** /form/integer/boolean/string | Test form parameter(s)
*FormApi* | [**test_form_oneof**](docs/FormApi.md#test_form_oneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*HeaderApi* | [**test_header_integer_boolean_string**](docs/HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*PathApi* | [**tests_path_string_path_string_integer_path_integer**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*HeaderApi* | [**test_header_integer_boolean_string_enums**](docs/HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*QueryApi* | [**test_enum_ref_string**](docs/QueryApi.md#test_enum_ref_string) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**test_query_datetime_date_string**](docs/QueryApi.md#test_query_datetime_date_string) | **GET** /query/datetime/date/string | Test query parameter(s)
*QueryApi* | [**test_query_integer_boolean_string**](docs/QueryApi.md#test_query_integer_boolean_string) | **GET** /query/integer/boolean/string | Test query parameter(s)
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/HeaderApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/HeaderApi.md
index 740eb1490748..7bf15b0037c0 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/HeaderApi.md
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/HeaderApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**test_header_integer_boolean_string**](HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
+[**test_header_integer_boolean_string_enums**](HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
-# **test_header_integer_boolean_string**
-> str test_header_integer_boolean_string(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header)
+# **test_header_integer_boolean_string_enums**
+> str test_header_integer_boolean_string_enums(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header, enum_nonref_string_header=enum_nonref_string_header, enum_ref_string_header=enum_ref_string_header)
Test header parameter(s)
@@ -20,6 +20,7 @@ Test header parameter(s)
import time
import os
import openapi_client
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException
from pprint import pprint
@@ -37,14 +38,16 @@ with openapi_client.ApiClient(configuration) as api_client:
integer_header = 56 # int | (optional)
boolean_header = True # bool | (optional)
string_header = 'string_header_example' # str | (optional)
+ enum_nonref_string_header = 'enum_nonref_string_header_example' # str | (optional)
+ enum_ref_string_header = openapi_client.StringEnumRef() # StringEnumRef | (optional)
try:
# Test header parameter(s)
- api_response = api_instance.test_header_integer_boolean_string(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header)
- print("The response of HeaderApi->test_header_integer_boolean_string:\n")
+ api_response = api_instance.test_header_integer_boolean_string_enums(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header, enum_nonref_string_header=enum_nonref_string_header, enum_ref_string_header=enum_ref_string_header)
+ print("The response of HeaderApi->test_header_integer_boolean_string_enums:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling HeaderApi->test_header_integer_boolean_string: %s\n" % e)
+ print("Exception when calling HeaderApi->test_header_integer_boolean_string_enums: %s\n" % e)
```
@@ -56,6 +59,8 @@ Name | Type | Description | Notes
**integer_header** | **int**| | [optional]
**boolean_header** | **bool**| | [optional]
**string_header** | **str**| | [optional]
+ **enum_nonref_string_header** | **str**| | [optional]
+ **enum_ref_string_header** | [**StringEnumRef**](.md)| | [optional]
### Return type
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/PathApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/PathApi.md
index 122a0c33c710..14e23b66b969 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/PathApi.md
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/PathApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**tests_path_string_path_string_integer_path_integer**](PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+[**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
-# **tests_path_string_path_string_integer_path_integer**
-> str tests_path_string_path_string_integer_path_integer(path_string, path_integer)
+# **tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**
+> str tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
Test path parameter(s)
@@ -20,6 +20,7 @@ Test path parameter(s)
import time
import os
import openapi_client
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException
from pprint import pprint
@@ -36,14 +37,16 @@ with openapi_client.ApiClient(configuration) as api_client:
api_instance = openapi_client.PathApi(api_client)
path_string = 'path_string_example' # str |
path_integer = 56 # int |
+ enum_nonref_string_path = 'enum_nonref_string_path_example' # str |
+ enum_ref_string_path = openapi_client.StringEnumRef() # StringEnumRef |
try:
# Test path parameter(s)
- api_response = api_instance.tests_path_string_path_string_integer_path_integer(path_string, path_integer)
- print("The response of PathApi->tests_path_string_path_string_integer_path_integer:\n")
+ api_response = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
+ print("The response of PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling PathApi->tests_path_string_path_string_integer_path_integer: %s\n" % e)
+ print("Exception when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path: %s\n" % e)
```
@@ -54,6 +57,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_string** | **str**| |
**path_integer** | **int**| |
+ **enum_nonref_string_path** | **str**| |
+ **enum_ref_string_path** | [**StringEnumRef**](.md)| |
### Return type
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/QueryApi.md b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/QueryApi.md
index 11c486b73820..d449cc3ea189 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/QueryApi.md
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/docs/QueryApi.md
@@ -15,7 +15,7 @@ Method | HTTP request | Description
# **test_enum_ref_string**
-> str test_enum_ref_string(enum_ref_string_query=enum_ref_string_query)
+> str test_enum_ref_string(enum_nonref_string_query=enum_nonref_string_query, enum_ref_string_query=enum_ref_string_query)
Test query parameter(s)
@@ -42,11 +42,12 @@ configuration = openapi_client.Configuration(
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.QueryApi(api_client)
+ enum_nonref_string_query = 'enum_nonref_string_query_example' # str | (optional)
enum_ref_string_query = openapi_client.StringEnumRef() # StringEnumRef | (optional)
try:
# Test query parameter(s)
- api_response = api_instance.test_enum_ref_string(enum_ref_string_query=enum_ref_string_query)
+ api_response = api_instance.test_enum_ref_string(enum_nonref_string_query=enum_nonref_string_query, enum_ref_string_query=enum_ref_string_query)
print("The response of QueryApi->test_enum_ref_string:\n")
pprint(api_response)
except Exception as e:
@@ -59,6 +60,7 @@ with openapi_client.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **enum_nonref_string_query** | **str**| | [optional]
**enum_ref_string_query** | [**StringEnumRef**](.md)| | [optional]
### Return type
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/header_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/header_api.py
index 68a9063e576b..1bdcd42cbd3b 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/header_api.py
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/header_api.py
@@ -20,10 +20,11 @@
from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
-from pydantic import StrictBool, StrictInt, StrictStr
+from pydantic import StrictBool, StrictInt, StrictStr, field_validator
from typing import Optional
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.api_client import ApiClient
from openapi_client.api_response import ApiResponse
@@ -46,14 +47,14 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, **kwargs) -> str: # noqa: E501
+ def test_header_integer_boolean_string_enums(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, enum_nonref_string_header : Optional[StrictStr] = None, enum_ref_string_header : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
"""Test header parameter(s) # noqa: E501
Test header parameter(s) # 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_header_integer_boolean_string(integer_header, boolean_header, string_header, async_req=True)
+ >>> thread = api.test_header_integer_boolean_string_enums(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, async_req=True)
>>> result = thread.get()
:param integer_header:
@@ -62,6 +63,10 @@ def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt
:type boolean_header: bool
:param string_header:
:type string_header: str
+ :param enum_nonref_string_header:
+ :type enum_nonref_string_header: str
+ :param enum_ref_string_header:
+ :type enum_ref_string_header: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request.
@@ -75,19 +80,19 @@ def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
- message = "Error! Please call the test_header_integer_boolean_string_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ message = "Error! Please call the test_header_integer_boolean_string_enums_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.test_header_integer_boolean_string_with_http_info(integer_header, boolean_header, string_header, **kwargs) # noqa: E501
+ return self.test_header_integer_boolean_string_enums_with_http_info(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, **kwargs) # noqa: E501
@validate_call
- def test_header_integer_boolean_string_with_http_info(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
+ def test_header_integer_boolean_string_enums_with_http_info(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, enum_nonref_string_header : Optional[StrictStr] = None, enum_ref_string_header : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Test header parameter(s) # noqa: E501
Test header parameter(s) # 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_header_integer_boolean_string_with_http_info(integer_header, boolean_header, string_header, async_req=True)
+ >>> thread = api.test_header_integer_boolean_string_enums_with_http_info(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, async_req=True)
>>> result = thread.get()
:param integer_header:
@@ -96,6 +101,10 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
:type boolean_header: bool
:param string_header:
:type string_header: str
+ :param enum_nonref_string_header:
+ :type enum_nonref_string_header: str
+ :param enum_ref_string_header:
+ :type enum_ref_string_header: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
@@ -126,7 +135,9 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
_all_params = [
'integer_header',
'boolean_header',
- 'string_header'
+ 'string_header',
+ 'enum_nonref_string_header',
+ 'enum_ref_string_header'
]
_all_params.extend(
[
@@ -145,7 +156,7 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method test_header_integer_boolean_string" % _key
+ " to method test_header_integer_boolean_string_enums" % _key
)
_params[_key] = _val
del _params['kwargs']
@@ -168,6 +179,12 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
if _params['string_header'] is not None:
_header_params['string_header'] = _params['string_header']
+ if _params['enum_nonref_string_header'] is not None:
+ _header_params['enum_nonref_string_header'] = _params['enum_nonref_string_header']
+
+ if _params['enum_ref_string_header'] is not None:
+ _header_params['enum_ref_string_header'] = _params['enum_ref_string_header']
+
# process the form parameters
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, str] = {}
@@ -185,7 +202,7 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
}
return self.api_client.call_api(
- '/header/integer/boolean/string', 'GET',
+ '/header/integer/boolean/string/enums', 'GET',
_path_params,
_query_params,
_header_params,
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/path_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/path_api.py
index 8e873c3e34c6..ab4f5ecb4d4a 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/path_api.py
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/path_api.py
@@ -20,8 +20,9 @@
from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
-from pydantic import StrictInt, StrictStr
+from pydantic import StrictInt, StrictStr, field_validator
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.api_client import ApiClient
from openapi_client.api_response import ApiResponse
@@ -44,20 +45,24 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def tests_path_string_path_string_integer_path_integer(self, path_string : StrictStr, path_integer : StrictInt, **kwargs) -> str: # noqa: E501
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self, path_string : StrictStr, path_integer : StrictInt, enum_nonref_string_path : StrictStr, enum_ref_string_path : StringEnumRef, **kwargs) -> str: # noqa: E501
"""Test path parameter(s) # noqa: E501
Test path parameter(s) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tests_path_string_path_string_integer_path_integer(path_string, path_integer, async_req=True)
+ >>> thread = api.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, async_req=True)
>>> result = thread.get()
:param path_string: (required)
:type path_string: str
:param path_integer: (required)
:type path_integer: int
+ :param enum_nonref_string_path: (required)
+ :type enum_nonref_string_path: str
+ :param enum_ref_string_path: (required)
+ :type enum_ref_string_path: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request.
@@ -71,25 +76,29 @@ def tests_path_string_path_string_integer_path_integer(self, path_string : Stric
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
- message = "Error! Please call the tests_path_string_path_string_integer_path_integer_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ message = "Error! Please call the tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, **kwargs) # noqa: E501
+ return self.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, **kwargs) # noqa: E501
@validate_call
- def tests_path_string_path_string_integer_path_integer_with_http_info(self, path_string : StrictStr, path_integer : StrictInt, **kwargs) -> ApiResponse: # noqa: E501
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(self, path_string : StrictStr, path_integer : StrictInt, enum_nonref_string_path : StrictStr, enum_ref_string_path : StringEnumRef, **kwargs) -> ApiResponse: # noqa: E501
"""Test path parameter(s) # noqa: E501
Test path parameter(s) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, async_req=True)
+ >>> thread = api.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, async_req=True)
>>> result = thread.get()
:param path_string: (required)
:type path_string: str
:param path_integer: (required)
:type path_integer: int
+ :param enum_nonref_string_path: (required)
+ :type enum_nonref_string_path: str
+ :param enum_ref_string_path: (required)
+ :type enum_ref_string_path: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
@@ -119,7 +128,9 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
_all_params = [
'path_string',
- 'path_integer'
+ 'path_integer',
+ 'enum_nonref_string_path',
+ 'enum_ref_string_path'
]
_all_params.extend(
[
@@ -138,7 +149,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method tests_path_string_path_string_integer_path_integer" % _key
+ " to method tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path" % _key
)
_params[_key] = _val
del _params['kwargs']
@@ -153,6 +164,12 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
if _params['path_integer'] is not None:
_path_params['path_integer'] = _params['path_integer']
+ if _params['enum_nonref_string_path'] is not None:
+ _path_params['enum_nonref_string_path'] = _params['enum_nonref_string_path']
+
+ if _params['enum_ref_string_path'] is not None:
+ _path_params['enum_ref_string_path'] = _params['enum_ref_string_path'].value
+
# process the query parameters
_query_params: List[Tuple[str, str]] = []
@@ -175,7 +192,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
}
return self.api_client.call_api(
- '/path/string/{path_string}/integer/{path_integer}', 'GET',
+ '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}', 'GET',
_path_params,
_query_params,
_header_params,
diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/query_api.py b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/query_api.py
index 741f0f7a81d2..123998aa92b9 100644
--- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/query_api.py
+++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent-true/openapi_client/api/query_api.py
@@ -22,7 +22,7 @@
from datetime import date, datetime
-from pydantic import StrictBool, StrictInt, StrictStr
+from pydantic import StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, Optional
@@ -51,16 +51,18 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def test_enum_ref_string(self, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
+ def test_enum_ref_string(self, enum_nonref_string_query : Optional[StrictStr] = None, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
"""Test query parameter(s) # noqa: E501
Test query parameter(s) # 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_enum_ref_string(enum_ref_string_query, async_req=True)
+ >>> thread = api.test_enum_ref_string(enum_nonref_string_query, enum_ref_string_query, async_req=True)
>>> result = thread.get()
+ :param enum_nonref_string_query:
+ :type enum_nonref_string_query: str
:param enum_ref_string_query:
:type enum_ref_string_query: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
@@ -78,19 +80,21 @@ def test_enum_ref_string(self, enum_ref_string_query : Optional[StringEnumRef] =
if '_preload_content' in kwargs:
message = "Error! Please call the test_enum_ref_string_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.test_enum_ref_string_with_http_info(enum_ref_string_query, **kwargs) # noqa: E501
+ return self.test_enum_ref_string_with_http_info(enum_nonref_string_query, enum_ref_string_query, **kwargs) # noqa: E501
@validate_call
- def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
+ def test_enum_ref_string_with_http_info(self, enum_nonref_string_query : Optional[StrictStr] = None, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Test query parameter(s) # noqa: E501
Test query parameter(s) # 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_enum_ref_string_with_http_info(enum_ref_string_query, async_req=True)
+ >>> thread = api.test_enum_ref_string_with_http_info(enum_nonref_string_query, enum_ref_string_query, async_req=True)
>>> result = thread.get()
+ :param enum_nonref_string_query:
+ :type enum_nonref_string_query: str
:param enum_ref_string_query:
:type enum_ref_string_query: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
@@ -121,6 +125,7 @@ def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[S
_params = locals()
_all_params = [
+ 'enum_nonref_string_query',
'enum_ref_string_query'
]
_all_params.extend(
@@ -152,6 +157,9 @@ def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[S
# process the query parameters
_query_params: List[Tuple[str, str]] = []
+ if _params.get('enum_nonref_string_query') is not None: # noqa: E501
+ _query_params.append(('enum_nonref_string_query', _params['enum_nonref_string_query']))
+
if _params.get('enum_ref_string_query') is not None: # noqa: E501
_query_params.append(('enum_ref_string_query', _params['enum_ref_string_query'].value))
diff --git a/samples/client/echo_api/python-pydantic-v1/README.md b/samples/client/echo_api/python-pydantic-v1/README.md
index 89af693938f6..65c5ff5e5437 100644
--- a/samples/client/echo_api/python-pydantic-v1/README.md
+++ b/samples/client/echo_api/python-pydantic-v1/README.md
@@ -104,8 +104,8 @@ Class | Method | HTTP request | Description
*BodyApi* | [**test_echo_body_tag_response_string**](docs/BodyApi.md#test_echo_body_tag_response_string) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
*FormApi* | [**test_form_integer_boolean_string**](docs/FormApi.md#test_form_integer_boolean_string) | **POST** /form/integer/boolean/string | Test form parameter(s)
*FormApi* | [**test_form_oneof**](docs/FormApi.md#test_form_oneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*HeaderApi* | [**test_header_integer_boolean_string**](docs/HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*PathApi* | [**tests_path_string_path_string_integer_path_integer**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*HeaderApi* | [**test_header_integer_boolean_string_enums**](docs/HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*QueryApi* | [**test_enum_ref_string**](docs/QueryApi.md#test_enum_ref_string) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**test_query_datetime_date_string**](docs/QueryApi.md#test_query_datetime_date_string) | **GET** /query/datetime/date/string | Test query parameter(s)
*QueryApi* | [**test_query_integer_boolean_string**](docs/QueryApi.md#test_query_integer_boolean_string) | **GET** /query/integer/boolean/string | Test query parameter(s)
diff --git a/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md b/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md
index 740eb1490748..7bf15b0037c0 100644
--- a/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md
+++ b/samples/client/echo_api/python-pydantic-v1/docs/HeaderApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**test_header_integer_boolean_string**](HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
+[**test_header_integer_boolean_string_enums**](HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
-# **test_header_integer_boolean_string**
-> str test_header_integer_boolean_string(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header)
+# **test_header_integer_boolean_string_enums**
+> str test_header_integer_boolean_string_enums(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header, enum_nonref_string_header=enum_nonref_string_header, enum_ref_string_header=enum_ref_string_header)
Test header parameter(s)
@@ -20,6 +20,7 @@ Test header parameter(s)
import time
import os
import openapi_client
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException
from pprint import pprint
@@ -37,14 +38,16 @@ with openapi_client.ApiClient(configuration) as api_client:
integer_header = 56 # int | (optional)
boolean_header = True # bool | (optional)
string_header = 'string_header_example' # str | (optional)
+ enum_nonref_string_header = 'enum_nonref_string_header_example' # str | (optional)
+ enum_ref_string_header = openapi_client.StringEnumRef() # StringEnumRef | (optional)
try:
# Test header parameter(s)
- api_response = api_instance.test_header_integer_boolean_string(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header)
- print("The response of HeaderApi->test_header_integer_boolean_string:\n")
+ api_response = api_instance.test_header_integer_boolean_string_enums(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header, enum_nonref_string_header=enum_nonref_string_header, enum_ref_string_header=enum_ref_string_header)
+ print("The response of HeaderApi->test_header_integer_boolean_string_enums:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling HeaderApi->test_header_integer_boolean_string: %s\n" % e)
+ print("Exception when calling HeaderApi->test_header_integer_boolean_string_enums: %s\n" % e)
```
@@ -56,6 +59,8 @@ Name | Type | Description | Notes
**integer_header** | **int**| | [optional]
**boolean_header** | **bool**| | [optional]
**string_header** | **str**| | [optional]
+ **enum_nonref_string_header** | **str**| | [optional]
+ **enum_ref_string_header** | [**StringEnumRef**](.md)| | [optional]
### Return type
diff --git a/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md b/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md
index 122a0c33c710..14e23b66b969 100644
--- a/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md
+++ b/samples/client/echo_api/python-pydantic-v1/docs/PathApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**tests_path_string_path_string_integer_path_integer**](PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+[**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
-# **tests_path_string_path_string_integer_path_integer**
-> str tests_path_string_path_string_integer_path_integer(path_string, path_integer)
+# **tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**
+> str tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
Test path parameter(s)
@@ -20,6 +20,7 @@ Test path parameter(s)
import time
import os
import openapi_client
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException
from pprint import pprint
@@ -36,14 +37,16 @@ with openapi_client.ApiClient(configuration) as api_client:
api_instance = openapi_client.PathApi(api_client)
path_string = 'path_string_example' # str |
path_integer = 56 # int |
+ enum_nonref_string_path = 'enum_nonref_string_path_example' # str |
+ enum_ref_string_path = openapi_client.StringEnumRef() # StringEnumRef |
try:
# Test path parameter(s)
- api_response = api_instance.tests_path_string_path_string_integer_path_integer(path_string, path_integer)
- print("The response of PathApi->tests_path_string_path_string_integer_path_integer:\n")
+ api_response = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
+ print("The response of PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling PathApi->tests_path_string_path_string_integer_path_integer: %s\n" % e)
+ print("Exception when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path: %s\n" % e)
```
@@ -54,6 +57,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_string** | **str**| |
**path_integer** | **int**| |
+ **enum_nonref_string_path** | **str**| |
+ **enum_ref_string_path** | [**StringEnumRef**](.md)| |
### Return type
diff --git a/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md b/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md
index 11c486b73820..d449cc3ea189 100644
--- a/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md
+++ b/samples/client/echo_api/python-pydantic-v1/docs/QueryApi.md
@@ -15,7 +15,7 @@ Method | HTTP request | Description
# **test_enum_ref_string**
-> str test_enum_ref_string(enum_ref_string_query=enum_ref_string_query)
+> str test_enum_ref_string(enum_nonref_string_query=enum_nonref_string_query, enum_ref_string_query=enum_ref_string_query)
Test query parameter(s)
@@ -42,11 +42,12 @@ configuration = openapi_client.Configuration(
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.QueryApi(api_client)
+ enum_nonref_string_query = 'enum_nonref_string_query_example' # str | (optional)
enum_ref_string_query = openapi_client.StringEnumRef() # StringEnumRef | (optional)
try:
# Test query parameter(s)
- api_response = api_instance.test_enum_ref_string(enum_ref_string_query=enum_ref_string_query)
+ api_response = api_instance.test_enum_ref_string(enum_nonref_string_query=enum_nonref_string_query, enum_ref_string_query=enum_ref_string_query)
print("The response of QueryApi->test_enum_ref_string:\n")
pprint(api_response)
except Exception as e:
@@ -59,6 +60,7 @@ with openapi_client.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **enum_nonref_string_query** | **str**| | [optional]
**enum_ref_string_query** | [**StringEnumRef**](.md)| | [optional]
### Return type
diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py
index e9ebc11e9cd9..fe24cff0b3bb 100644
--- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py
+++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/header_api.py
@@ -23,6 +23,7 @@
from typing import Optional
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.api_client import ApiClient
from openapi_client.api_response import ApiResponse
@@ -45,14 +46,14 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_arguments
- def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, **kwargs) -> str: # noqa: E501
+ def test_header_integer_boolean_string_enums(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, enum_nonref_string_header : Optional[StrictStr] = None, enum_ref_string_header : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
"""Test header parameter(s) # noqa: E501
Test header parameter(s) # 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_header_integer_boolean_string(integer_header, boolean_header, string_header, async_req=True)
+ >>> thread = api.test_header_integer_boolean_string_enums(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, async_req=True)
>>> result = thread.get()
:param integer_header:
@@ -61,6 +62,10 @@ def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt
:type boolean_header: bool
:param string_header:
:type string_header: str
+ :param enum_nonref_string_header:
+ :type enum_nonref_string_header: str
+ :param enum_ref_string_header:
+ :type enum_ref_string_header: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request.
@@ -74,19 +79,19 @@ def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
- message = "Error! Please call the test_header_integer_boolean_string_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ message = "Error! Please call the test_header_integer_boolean_string_enums_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.test_header_integer_boolean_string_with_http_info(integer_header, boolean_header, string_header, **kwargs) # noqa: E501
+ return self.test_header_integer_boolean_string_enums_with_http_info(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, **kwargs) # noqa: E501
@validate_arguments
- def test_header_integer_boolean_string_with_http_info(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
+ def test_header_integer_boolean_string_enums_with_http_info(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, enum_nonref_string_header : Optional[StrictStr] = None, enum_ref_string_header : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Test header parameter(s) # noqa: E501
Test header parameter(s) # 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_header_integer_boolean_string_with_http_info(integer_header, boolean_header, string_header, async_req=True)
+ >>> thread = api.test_header_integer_boolean_string_enums_with_http_info(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, async_req=True)
>>> result = thread.get()
:param integer_header:
@@ -95,6 +100,10 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
:type boolean_header: bool
:param string_header:
:type string_header: str
+ :param enum_nonref_string_header:
+ :type enum_nonref_string_header: str
+ :param enum_ref_string_header:
+ :type enum_ref_string_header: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
@@ -125,7 +134,9 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
_all_params = [
'integer_header',
'boolean_header',
- 'string_header'
+ 'string_header',
+ 'enum_nonref_string_header',
+ 'enum_ref_string_header'
]
_all_params.extend(
[
@@ -144,7 +155,7 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method test_header_integer_boolean_string" % _key
+ " to method test_header_integer_boolean_string_enums" % _key
)
_params[_key] = _val
del _params['kwargs']
@@ -167,6 +178,12 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
if _params['string_header'] is not None:
_header_params['string_header'] = _params['string_header']
+ if _params['enum_nonref_string_header'] is not None:
+ _header_params['enum_nonref_string_header'] = _params['enum_nonref_string_header']
+
+ if _params['enum_ref_string_header'] is not None:
+ _header_params['enum_ref_string_header'] = _params['enum_ref_string_header']
+
# process the form parameters
_form_params = []
_files = {}
@@ -184,7 +201,7 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
}
return self.api_client.call_api(
- '/header/integer/boolean/string', 'GET',
+ '/header/integer/boolean/string/enums', 'GET',
_path_params,
_query_params,
_header_params,
diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py
index a2798c4d604a..9660feaad571 100644
--- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py
+++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/path_api.py
@@ -21,6 +21,7 @@
from pydantic import StrictInt, StrictStr
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.api_client import ApiClient
from openapi_client.api_response import ApiResponse
@@ -43,20 +44,24 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_arguments
- def tests_path_string_path_string_integer_path_integer(self, path_string : StrictStr, path_integer : StrictInt, **kwargs) -> str: # noqa: E501
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self, path_string : StrictStr, path_integer : StrictInt, enum_nonref_string_path : StrictStr, enum_ref_string_path : StringEnumRef, **kwargs) -> str: # noqa: E501
"""Test path parameter(s) # noqa: E501
Test path parameter(s) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tests_path_string_path_string_integer_path_integer(path_string, path_integer, async_req=True)
+ >>> thread = api.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, async_req=True)
>>> result = thread.get()
:param path_string: (required)
:type path_string: str
:param path_integer: (required)
:type path_integer: int
+ :param enum_nonref_string_path: (required)
+ :type enum_nonref_string_path: str
+ :param enum_ref_string_path: (required)
+ :type enum_ref_string_path: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request.
@@ -70,25 +75,29 @@ def tests_path_string_path_string_integer_path_integer(self, path_string : Stric
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
- message = "Error! Please call the tests_path_string_path_string_integer_path_integer_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ message = "Error! Please call the tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, **kwargs) # noqa: E501
+ return self.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, **kwargs) # noqa: E501
@validate_arguments
- def tests_path_string_path_string_integer_path_integer_with_http_info(self, path_string : StrictStr, path_integer : StrictInt, **kwargs) -> ApiResponse: # noqa: E501
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(self, path_string : StrictStr, path_integer : StrictInt, enum_nonref_string_path : StrictStr, enum_ref_string_path : StringEnumRef, **kwargs) -> ApiResponse: # noqa: E501
"""Test path parameter(s) # noqa: E501
Test path parameter(s) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, async_req=True)
+ >>> thread = api.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, async_req=True)
>>> result = thread.get()
:param path_string: (required)
:type path_string: str
:param path_integer: (required)
:type path_integer: int
+ :param enum_nonref_string_path: (required)
+ :type enum_nonref_string_path: str
+ :param enum_ref_string_path: (required)
+ :type enum_ref_string_path: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
@@ -118,7 +127,9 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
_all_params = [
'path_string',
- 'path_integer'
+ 'path_integer',
+ 'enum_nonref_string_path',
+ 'enum_ref_string_path'
]
_all_params.extend(
[
@@ -137,7 +148,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method tests_path_string_path_string_integer_path_integer" % _key
+ " to method tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path" % _key
)
_params[_key] = _val
del _params['kwargs']
@@ -152,6 +163,12 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
if _params['path_integer'] is not None:
_path_params['path_integer'] = _params['path_integer']
+ if _params['enum_nonref_string_path'] is not None:
+ _path_params['enum_nonref_string_path'] = _params['enum_nonref_string_path']
+
+ if _params['enum_ref_string_path'] is not None:
+ _path_params['enum_ref_string_path'] = _params['enum_ref_string_path']
+
# process the query parameters
_query_params = []
@@ -174,7 +191,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
}
return self.api_client.call_api(
- '/path/string/{path_string}/integer/{path_integer}', 'GET',
+ '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}', 'GET',
_path_params,
_query_params,
_header_params,
diff --git a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py
index 09d55efd2f56..bdd6a0f843af 100644
--- a/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py
+++ b/samples/client/echo_api/python-pydantic-v1/openapi_client/api/query_api.py
@@ -50,16 +50,18 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_arguments
- def test_enum_ref_string(self, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
+ def test_enum_ref_string(self, enum_nonref_string_query : Optional[StrictStr] = None, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
"""Test query parameter(s) # noqa: E501
Test query parameter(s) # 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_enum_ref_string(enum_ref_string_query, async_req=True)
+ >>> thread = api.test_enum_ref_string(enum_nonref_string_query, enum_ref_string_query, async_req=True)
>>> result = thread.get()
+ :param enum_nonref_string_query:
+ :type enum_nonref_string_query: str
:param enum_ref_string_query:
:type enum_ref_string_query: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
@@ -77,19 +79,21 @@ def test_enum_ref_string(self, enum_ref_string_query : Optional[StringEnumRef] =
if '_preload_content' in kwargs:
message = "Error! Please call the test_enum_ref_string_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.test_enum_ref_string_with_http_info(enum_ref_string_query, **kwargs) # noqa: E501
+ return self.test_enum_ref_string_with_http_info(enum_nonref_string_query, enum_ref_string_query, **kwargs) # noqa: E501
@validate_arguments
- def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
+ def test_enum_ref_string_with_http_info(self, enum_nonref_string_query : Optional[StrictStr] = None, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Test query parameter(s) # noqa: E501
Test query parameter(s) # 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_enum_ref_string_with_http_info(enum_ref_string_query, async_req=True)
+ >>> thread = api.test_enum_ref_string_with_http_info(enum_nonref_string_query, enum_ref_string_query, async_req=True)
>>> result = thread.get()
+ :param enum_nonref_string_query:
+ :type enum_nonref_string_query: str
:param enum_ref_string_query:
:type enum_ref_string_query: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
@@ -120,6 +124,7 @@ def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[S
_params = locals()
_all_params = [
+ 'enum_nonref_string_query',
'enum_ref_string_query'
]
_all_params.extend(
@@ -151,6 +156,9 @@ def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[S
# process the query parameters
_query_params = []
+ if _params.get('enum_nonref_string_query') is not None: # noqa: E501
+ _query_params.append(('enum_nonref_string_query', _params['enum_nonref_string_query']))
+
if _params.get('enum_ref_string_query') is not None: # noqa: E501
_query_params.append(('enum_ref_string_query', _params['enum_ref_string_query'].value))
diff --git a/samples/client/echo_api/python/README.md b/samples/client/echo_api/python/README.md
index d9de36cb6e2d..9096a78c85de 100644
--- a/samples/client/echo_api/python/README.md
+++ b/samples/client/echo_api/python/README.md
@@ -104,8 +104,8 @@ Class | Method | HTTP request | Description
*BodyApi* | [**test_echo_body_tag_response_string**](docs/BodyApi.md#test_echo_body_tag_response_string) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
*FormApi* | [**test_form_integer_boolean_string**](docs/FormApi.md#test_form_integer_boolean_string) | **POST** /form/integer/boolean/string | Test form parameter(s)
*FormApi* | [**test_form_oneof**](docs/FormApi.md#test_form_oneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*HeaderApi* | [**test_header_integer_boolean_string**](docs/HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*PathApi* | [**tests_path_string_path_string_integer_path_integer**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*HeaderApi* | [**test_header_integer_boolean_string_enums**](docs/HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*PathApi* | [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*QueryApi* | [**test_enum_ref_string**](docs/QueryApi.md#test_enum_ref_string) | **GET** /query/enum_ref_string | Test query parameter(s)
*QueryApi* | [**test_query_datetime_date_string**](docs/QueryApi.md#test_query_datetime_date_string) | **GET** /query/datetime/date/string | Test query parameter(s)
*QueryApi* | [**test_query_integer_boolean_string**](docs/QueryApi.md#test_query_integer_boolean_string) | **GET** /query/integer/boolean/string | Test query parameter(s)
diff --git a/samples/client/echo_api/python/docs/HeaderApi.md b/samples/client/echo_api/python/docs/HeaderApi.md
index 740eb1490748..7bf15b0037c0 100644
--- a/samples/client/echo_api/python/docs/HeaderApi.md
+++ b/samples/client/echo_api/python/docs/HeaderApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**test_header_integer_boolean_string**](HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
+[**test_header_integer_boolean_string_enums**](HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
-# **test_header_integer_boolean_string**
-> str test_header_integer_boolean_string(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header)
+# **test_header_integer_boolean_string_enums**
+> str test_header_integer_boolean_string_enums(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header, enum_nonref_string_header=enum_nonref_string_header, enum_ref_string_header=enum_ref_string_header)
Test header parameter(s)
@@ -20,6 +20,7 @@ Test header parameter(s)
import time
import os
import openapi_client
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException
from pprint import pprint
@@ -37,14 +38,16 @@ with openapi_client.ApiClient(configuration) as api_client:
integer_header = 56 # int | (optional)
boolean_header = True # bool | (optional)
string_header = 'string_header_example' # str | (optional)
+ enum_nonref_string_header = 'enum_nonref_string_header_example' # str | (optional)
+ enum_ref_string_header = openapi_client.StringEnumRef() # StringEnumRef | (optional)
try:
# Test header parameter(s)
- api_response = api_instance.test_header_integer_boolean_string(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header)
- print("The response of HeaderApi->test_header_integer_boolean_string:\n")
+ api_response = api_instance.test_header_integer_boolean_string_enums(integer_header=integer_header, boolean_header=boolean_header, string_header=string_header, enum_nonref_string_header=enum_nonref_string_header, enum_ref_string_header=enum_ref_string_header)
+ print("The response of HeaderApi->test_header_integer_boolean_string_enums:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling HeaderApi->test_header_integer_boolean_string: %s\n" % e)
+ print("Exception when calling HeaderApi->test_header_integer_boolean_string_enums: %s\n" % e)
```
@@ -56,6 +59,8 @@ Name | Type | Description | Notes
**integer_header** | **int**| | [optional]
**boolean_header** | **bool**| | [optional]
**string_header** | **str**| | [optional]
+ **enum_nonref_string_header** | **str**| | [optional]
+ **enum_ref_string_header** | [**StringEnumRef**](.md)| | [optional]
### Return type
diff --git a/samples/client/echo_api/python/docs/PathApi.md b/samples/client/echo_api/python/docs/PathApi.md
index 122a0c33c710..14e23b66b969 100644
--- a/samples/client/echo_api/python/docs/PathApi.md
+++ b/samples/client/echo_api/python/docs/PathApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *http://localhost:3000*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**tests_path_string_path_string_integer_path_integer**](PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+[**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
-# **tests_path_string_path_string_integer_path_integer**
-> str tests_path_string_path_string_integer_path_integer(path_string, path_integer)
+# **tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**
+> str tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
Test path parameter(s)
@@ -20,6 +20,7 @@ Test path parameter(s)
import time
import os
import openapi_client
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.rest import ApiException
from pprint import pprint
@@ -36,14 +37,16 @@ with openapi_client.ApiClient(configuration) as api_client:
api_instance = openapi_client.PathApi(api_client)
path_string = 'path_string_example' # str |
path_integer = 56 # int |
+ enum_nonref_string_path = 'enum_nonref_string_path_example' # str |
+ enum_ref_string_path = openapi_client.StringEnumRef() # StringEnumRef |
try:
# Test path parameter(s)
- api_response = api_instance.tests_path_string_path_string_integer_path_integer(path_string, path_integer)
- print("The response of PathApi->tests_path_string_path_string_integer_path_integer:\n")
+ api_response = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
+ print("The response of PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling PathApi->tests_path_string_path_string_integer_path_integer: %s\n" % e)
+ print("Exception when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path: %s\n" % e)
```
@@ -54,6 +57,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**path_string** | **str**| |
**path_integer** | **int**| |
+ **enum_nonref_string_path** | **str**| |
+ **enum_ref_string_path** | [**StringEnumRef**](.md)| |
### Return type
diff --git a/samples/client/echo_api/python/docs/QueryApi.md b/samples/client/echo_api/python/docs/QueryApi.md
index 11c486b73820..d449cc3ea189 100644
--- a/samples/client/echo_api/python/docs/QueryApi.md
+++ b/samples/client/echo_api/python/docs/QueryApi.md
@@ -15,7 +15,7 @@ Method | HTTP request | Description
# **test_enum_ref_string**
-> str test_enum_ref_string(enum_ref_string_query=enum_ref_string_query)
+> str test_enum_ref_string(enum_nonref_string_query=enum_nonref_string_query, enum_ref_string_query=enum_ref_string_query)
Test query parameter(s)
@@ -42,11 +42,12 @@ configuration = openapi_client.Configuration(
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.QueryApi(api_client)
+ enum_nonref_string_query = 'enum_nonref_string_query_example' # str | (optional)
enum_ref_string_query = openapi_client.StringEnumRef() # StringEnumRef | (optional)
try:
# Test query parameter(s)
- api_response = api_instance.test_enum_ref_string(enum_ref_string_query=enum_ref_string_query)
+ api_response = api_instance.test_enum_ref_string(enum_nonref_string_query=enum_nonref_string_query, enum_ref_string_query=enum_ref_string_query)
print("The response of QueryApi->test_enum_ref_string:\n")
pprint(api_response)
except Exception as e:
@@ -59,6 +60,7 @@ with openapi_client.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **enum_nonref_string_query** | **str**| | [optional]
**enum_ref_string_query** | [**StringEnumRef**](.md)| | [optional]
### Return type
diff --git a/samples/client/echo_api/python/openapi_client/api/header_api.py b/samples/client/echo_api/python/openapi_client/api/header_api.py
index 68a9063e576b..1bdcd42cbd3b 100644
--- a/samples/client/echo_api/python/openapi_client/api/header_api.py
+++ b/samples/client/echo_api/python/openapi_client/api/header_api.py
@@ -20,10 +20,11 @@
from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
-from pydantic import StrictBool, StrictInt, StrictStr
+from pydantic import StrictBool, StrictInt, StrictStr, field_validator
from typing import Optional
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.api_client import ApiClient
from openapi_client.api_response import ApiResponse
@@ -46,14 +47,14 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, **kwargs) -> str: # noqa: E501
+ def test_header_integer_boolean_string_enums(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, enum_nonref_string_header : Optional[StrictStr] = None, enum_ref_string_header : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
"""Test header parameter(s) # noqa: E501
Test header parameter(s) # 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_header_integer_boolean_string(integer_header, boolean_header, string_header, async_req=True)
+ >>> thread = api.test_header_integer_boolean_string_enums(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, async_req=True)
>>> result = thread.get()
:param integer_header:
@@ -62,6 +63,10 @@ def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt
:type boolean_header: bool
:param string_header:
:type string_header: str
+ :param enum_nonref_string_header:
+ :type enum_nonref_string_header: str
+ :param enum_ref_string_header:
+ :type enum_ref_string_header: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request.
@@ -75,19 +80,19 @@ def test_header_integer_boolean_string(self, integer_header : Optional[StrictInt
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
- message = "Error! Please call the test_header_integer_boolean_string_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ message = "Error! Please call the test_header_integer_boolean_string_enums_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.test_header_integer_boolean_string_with_http_info(integer_header, boolean_header, string_header, **kwargs) # noqa: E501
+ return self.test_header_integer_boolean_string_enums_with_http_info(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, **kwargs) # noqa: E501
@validate_call
- def test_header_integer_boolean_string_with_http_info(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, **kwargs) -> ApiResponse: # noqa: E501
+ def test_header_integer_boolean_string_enums_with_http_info(self, integer_header : Optional[StrictInt] = None, boolean_header : Optional[StrictBool] = None, string_header : Optional[StrictStr] = None, enum_nonref_string_header : Optional[StrictStr] = None, enum_ref_string_header : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Test header parameter(s) # noqa: E501
Test header parameter(s) # 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_header_integer_boolean_string_with_http_info(integer_header, boolean_header, string_header, async_req=True)
+ >>> thread = api.test_header_integer_boolean_string_enums_with_http_info(integer_header, boolean_header, string_header, enum_nonref_string_header, enum_ref_string_header, async_req=True)
>>> result = thread.get()
:param integer_header:
@@ -96,6 +101,10 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
:type boolean_header: bool
:param string_header:
:type string_header: str
+ :param enum_nonref_string_header:
+ :type enum_nonref_string_header: str
+ :param enum_ref_string_header:
+ :type enum_ref_string_header: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
@@ -126,7 +135,9 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
_all_params = [
'integer_header',
'boolean_header',
- 'string_header'
+ 'string_header',
+ 'enum_nonref_string_header',
+ 'enum_ref_string_header'
]
_all_params.extend(
[
@@ -145,7 +156,7 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method test_header_integer_boolean_string" % _key
+ " to method test_header_integer_boolean_string_enums" % _key
)
_params[_key] = _val
del _params['kwargs']
@@ -168,6 +179,12 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
if _params['string_header'] is not None:
_header_params['string_header'] = _params['string_header']
+ if _params['enum_nonref_string_header'] is not None:
+ _header_params['enum_nonref_string_header'] = _params['enum_nonref_string_header']
+
+ if _params['enum_ref_string_header'] is not None:
+ _header_params['enum_ref_string_header'] = _params['enum_ref_string_header']
+
# process the form parameters
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, str] = {}
@@ -185,7 +202,7 @@ def test_header_integer_boolean_string_with_http_info(self, integer_header : Opt
}
return self.api_client.call_api(
- '/header/integer/boolean/string', 'GET',
+ '/header/integer/boolean/string/enums', 'GET',
_path_params,
_query_params,
_header_params,
diff --git a/samples/client/echo_api/python/openapi_client/api/path_api.py b/samples/client/echo_api/python/openapi_client/api/path_api.py
index 8e873c3e34c6..ab4f5ecb4d4a 100644
--- a/samples/client/echo_api/python/openapi_client/api/path_api.py
+++ b/samples/client/echo_api/python/openapi_client/api/path_api.py
@@ -20,8 +20,9 @@
from pydantic import validate_call, ValidationError
from typing import Dict, List, Optional, Tuple
-from pydantic import StrictInt, StrictStr
+from pydantic import StrictInt, StrictStr, field_validator
+from openapi_client.models.string_enum_ref import StringEnumRef
from openapi_client.api_client import ApiClient
from openapi_client.api_response import ApiResponse
@@ -44,20 +45,24 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def tests_path_string_path_string_integer_path_integer(self, path_string : StrictStr, path_integer : StrictInt, **kwargs) -> str: # noqa: E501
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(self, path_string : StrictStr, path_integer : StrictInt, enum_nonref_string_path : StrictStr, enum_ref_string_path : StringEnumRef, **kwargs) -> str: # noqa: E501
"""Test path parameter(s) # noqa: E501
Test path parameter(s) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tests_path_string_path_string_integer_path_integer(path_string, path_integer, async_req=True)
+ >>> thread = api.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, async_req=True)
>>> result = thread.get()
:param path_string: (required)
:type path_string: str
:param path_integer: (required)
:type path_integer: int
+ :param enum_nonref_string_path: (required)
+ :type enum_nonref_string_path: str
+ :param enum_ref_string_path: (required)
+ :type enum_ref_string_path: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request.
@@ -71,25 +76,29 @@ def tests_path_string_path_string_integer_path_integer(self, path_string : Stric
"""
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
- message = "Error! Please call the tests_path_string_path_string_integer_path_integer_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
+ message = "Error! Please call the tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, **kwargs) # noqa: E501
+ return self.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, **kwargs) # noqa: E501
@validate_call
- def tests_path_string_path_string_integer_path_integer_with_http_info(self, path_string : StrictStr, path_integer : StrictInt, **kwargs) -> ApiResponse: # noqa: E501
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(self, path_string : StrictStr, path_integer : StrictInt, enum_nonref_string_path : StrictStr, enum_ref_string_path : StringEnumRef, **kwargs) -> ApiResponse: # noqa: E501
"""Test path parameter(s) # noqa: E501
Test path parameter(s) # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, async_req=True)
+ >>> thread = api.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, async_req=True)
>>> result = thread.get()
:param path_string: (required)
:type path_string: str
:param path_integer: (required)
:type path_integer: int
+ :param enum_nonref_string_path: (required)
+ :type enum_nonref_string_path: str
+ :param enum_ref_string_path: (required)
+ :type enum_ref_string_path: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
@@ -119,7 +128,9 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
_all_params = [
'path_string',
- 'path_integer'
+ 'path_integer',
+ 'enum_nonref_string_path',
+ 'enum_ref_string_path'
]
_all_params.extend(
[
@@ -138,7 +149,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
if _key not in _all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method tests_path_string_path_string_integer_path_integer" % _key
+ " to method tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path" % _key
)
_params[_key] = _val
del _params['kwargs']
@@ -153,6 +164,12 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
if _params['path_integer'] is not None:
_path_params['path_integer'] = _params['path_integer']
+ if _params['enum_nonref_string_path'] is not None:
+ _path_params['enum_nonref_string_path'] = _params['enum_nonref_string_path']
+
+ if _params['enum_ref_string_path'] is not None:
+ _path_params['enum_ref_string_path'] = _params['enum_ref_string_path'].value
+
# process the query parameters
_query_params: List[Tuple[str, str]] = []
@@ -175,7 +192,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(self, path
}
return self.api_client.call_api(
- '/path/string/{path_string}/integer/{path_integer}', 'GET',
+ '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}', 'GET',
_path_params,
_query_params,
_header_params,
diff --git a/samples/client/echo_api/python/openapi_client/api/query_api.py b/samples/client/echo_api/python/openapi_client/api/query_api.py
index 741f0f7a81d2..123998aa92b9 100644
--- a/samples/client/echo_api/python/openapi_client/api/query_api.py
+++ b/samples/client/echo_api/python/openapi_client/api/query_api.py
@@ -22,7 +22,7 @@
from datetime import date, datetime
-from pydantic import StrictBool, StrictInt, StrictStr
+from pydantic import StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, Optional
@@ -51,16 +51,18 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
@validate_call
- def test_enum_ref_string(self, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
+ def test_enum_ref_string(self, enum_nonref_string_query : Optional[StrictStr] = None, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> str: # noqa: E501
"""Test query parameter(s) # noqa: E501
Test query parameter(s) # 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_enum_ref_string(enum_ref_string_query, async_req=True)
+ >>> thread = api.test_enum_ref_string(enum_nonref_string_query, enum_ref_string_query, async_req=True)
>>> result = thread.get()
+ :param enum_nonref_string_query:
+ :type enum_nonref_string_query: str
:param enum_ref_string_query:
:type enum_ref_string_query: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
@@ -78,19 +80,21 @@ def test_enum_ref_string(self, enum_ref_string_query : Optional[StringEnumRef] =
if '_preload_content' in kwargs:
message = "Error! Please call the test_enum_ref_string_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
raise ValueError(message)
- return self.test_enum_ref_string_with_http_info(enum_ref_string_query, **kwargs) # noqa: E501
+ return self.test_enum_ref_string_with_http_info(enum_nonref_string_query, enum_ref_string_query, **kwargs) # noqa: E501
@validate_call
- def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
+ def test_enum_ref_string_with_http_info(self, enum_nonref_string_query : Optional[StrictStr] = None, enum_ref_string_query : Optional[StringEnumRef] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Test query parameter(s) # noqa: E501
Test query parameter(s) # 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_enum_ref_string_with_http_info(enum_ref_string_query, async_req=True)
+ >>> thread = api.test_enum_ref_string_with_http_info(enum_nonref_string_query, enum_ref_string_query, async_req=True)
>>> result = thread.get()
+ :param enum_nonref_string_query:
+ :type enum_nonref_string_query: str
:param enum_ref_string_query:
:type enum_ref_string_query: StringEnumRef
:param async_req: Whether to execute the request asynchronously.
@@ -121,6 +125,7 @@ def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[S
_params = locals()
_all_params = [
+ 'enum_nonref_string_query',
'enum_ref_string_query'
]
_all_params.extend(
@@ -152,6 +157,9 @@ def test_enum_ref_string_with_http_info(self, enum_ref_string_query : Optional[S
# process the query parameters
_query_params: List[Tuple[str, str]] = []
+ if _params.get('enum_nonref_string_query') is not None: # noqa: E501
+ _query_params.append(('enum_nonref_string_query', _params['enum_nonref_string_query']))
+
if _params.get('enum_ref_string_query') is not None: # noqa: E501
_query_params.append(('enum_ref_string_query', _params['enum_ref_string_query'].value))
diff --git a/samples/client/echo_api/python/test/test_manual.py b/samples/client/echo_api/python/test/test_manual.py
index 878253e023b6..60199244ed2d 100644
--- a/samples/client/echo_api/python/test/test_manual.py
+++ b/samples/client/echo_api/python/test/test_manual.py
@@ -37,14 +37,47 @@ def setUp(self):
def tearDown(self):
pass
- def testEnumRefString(self):
+ def testPathParameters(self):
+ api_instance = openapi_client.PathApi()
+ api_response = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(
+ path_string="string_value",
+ path_integer=123,
+ enum_nonref_string_path="success",
+ enum_ref_string_path=openapi_client.StringEnumRef.FAILURE,
+ )
+ e = EchoServerResponseParser(api_response)
+ self.assertEqual(e.path, "/path/string/string_value/integer/123/success/failure")
+
+ def testHeaderParameters(self):
+ api_instance = openapi_client.HeaderApi()
+ api_response = api_instance.test_header_integer_boolean_string_enums(
+ integer_header=123,
+ boolean_header=True,
+ string_header="string_value",
+ enum_nonref_string_header="success",
+ enum_ref_string_header=openapi_client.StringEnumRef.FAILURE,
+ )
+ e = EchoServerResponseParser(api_response)
+ expected_header = dict(
+ integer_header="123",
+ boolean_header="True",
+ string_header="string_value",
+ enum_nonref_string_header="success",
+ enum_ref_string_header="failure",
+ )
+ self.assertDictContainsSubset(expected_header, e.headers)
+
+ def testEnumQueryParameters(self):
api_instance = openapi_client.QueryApi()
- q = openapi_client.StringEnumRef("unclassified")
-
- # Test query parameter(s)
- api_response = api_instance.test_enum_ref_string(enum_ref_string_query=q)
+ api_response = api_instance.test_enum_ref_string(
+ enum_nonref_string_query="success",
+ enum_ref_string_query=openapi_client.StringEnumRef("unclassified"),
+ )
e = EchoServerResponseParser(api_response)
- self.assertEqual(e.path, "/query/enum_ref_string?enum_ref_string_query=unclassified")
+ self.assertEqual(
+ e.path,
+ "/query/enum_ref_string?enum_nonref_string_query=success&enum_ref_string_query=unclassified",
+ )
def testDateTimeQueryWithDateTimeFormat(self):
diff --git a/samples/client/echo_api/ruby-httpx/README.md b/samples/client/echo_api/ruby-httpx/README.md
index 1fcc844b792e..b5f01671a665 100644
--- a/samples/client/echo_api/ruby-httpx/README.md
+++ b/samples/client/echo_api/ruby-httpx/README.md
@@ -93,8 +93,8 @@ Class | Method | HTTP request | Description
*OpenapiClient::BodyApi* | [**test_echo_body_tag_response_string**](docs/BodyApi.md#test_echo_body_tag_response_string) | **POST** /echo/body/Tag/response_string | Test empty json (request body)
*OpenapiClient::FormApi* | [**test_form_integer_boolean_string**](docs/FormApi.md#test_form_integer_boolean_string) | **POST** /form/integer/boolean/string | Test form parameter(s)
*OpenapiClient::FormApi* | [**test_form_oneof**](docs/FormApi.md#test_form_oneof) | **POST** /form/oneof | Test form parameter(s) for oneOf schema
-*OpenapiClient::HeaderApi* | [**test_header_integer_boolean_string**](docs/HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s)
-*OpenapiClient::PathApi* | [**tests_path_string_path_string_integer_path_integer**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s)
+*OpenapiClient::HeaderApi* | [**test_header_integer_boolean_string_enums**](docs/HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s)
+*OpenapiClient::PathApi* | [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](docs/PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s)
*OpenapiClient::QueryApi* | [**test_enum_ref_string**](docs/QueryApi.md#test_enum_ref_string) | **GET** /query/enum_ref_string | Test query parameter(s)
*OpenapiClient::QueryApi* | [**test_query_datetime_date_string**](docs/QueryApi.md#test_query_datetime_date_string) | **GET** /query/datetime/date/string | Test query parameter(s)
*OpenapiClient::QueryApi* | [**test_query_integer_boolean_string**](docs/QueryApi.md#test_query_integer_boolean_string) | **GET** /query/integer/boolean/string | Test query parameter(s)
diff --git a/samples/client/echo_api/ruby-httpx/docs/HeaderApi.md b/samples/client/echo_api/ruby-httpx/docs/HeaderApi.md
index 2bc9b97b5991..cb350e92a9c8 100644
--- a/samples/client/echo_api/ruby-httpx/docs/HeaderApi.md
+++ b/samples/client/echo_api/ruby-httpx/docs/HeaderApi.md
@@ -4,12 +4,12 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
-| [**test_header_integer_boolean_string**](HeaderApi.md#test_header_integer_boolean_string) | **GET** /header/integer/boolean/string | Test header parameter(s) |
+| [**test_header_integer_boolean_string_enums**](HeaderApi.md#test_header_integer_boolean_string_enums) | **GET** /header/integer/boolean/string/enums | Test header parameter(s) |
-## test_header_integer_boolean_string
+## test_header_integer_boolean_string_enums
-> String test_header_integer_boolean_string(opts)
+> String test_header_integer_boolean_string_enums(opts)
Test header parameter(s)
@@ -25,33 +25,35 @@ api_instance = OpenapiClient::HeaderApi.new
opts = {
integer_header: 56, # Integer |
boolean_header: true, # Boolean |
- string_header: 'string_header_example' # String |
+ string_header: 'string_header_example', # String |
+ enum_nonref_string_header: 'success', # String |
+ enum_ref_string_header: OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef |
}
begin
# Test header parameter(s)
- result = api_instance.test_header_integer_boolean_string(opts)
+ result = api_instance.test_header_integer_boolean_string_enums(opts)
p result
rescue OpenapiClient::ApiError => e
- puts "Error when calling HeaderApi->test_header_integer_boolean_string: #{e}"
+ puts "Error when calling HeaderApi->test_header_integer_boolean_string_enums: #{e}"
end
```
-#### Using the test_header_integer_boolean_string_with_http_info variant
+#### Using the test_header_integer_boolean_string_enums_with_http_info variant
This returns an Array which contains the response data, status code and headers.
-> test_header_integer_boolean_string_with_http_info(opts)
+> test_header_integer_boolean_string_enums_with_http_info(opts)
```ruby
begin
# Test header parameter(s)
- data, status_code, headers = api_instance.test_header_integer_boolean_string_with_http_info(opts)
+ data, status_code, headers = api_instance.test_header_integer_boolean_string_enums_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => String
rescue OpenapiClient::ApiError => e
- puts "Error when calling HeaderApi->test_header_integer_boolean_string_with_http_info: #{e}"
+ puts "Error when calling HeaderApi->test_header_integer_boolean_string_enums_with_http_info: #{e}"
end
```
@@ -62,6 +64,8 @@ end
| **integer_header** | **Integer** | | [optional] |
| **boolean_header** | **Boolean** | | [optional] |
| **string_header** | **String** | | [optional] |
+| **enum_nonref_string_header** | **String** | | [optional] |
+| **enum_ref_string_header** | [**StringEnumRef**](.md) | | [optional] |
### Return type
diff --git a/samples/client/echo_api/ruby-httpx/docs/PathApi.md b/samples/client/echo_api/ruby-httpx/docs/PathApi.md
index 8dd631156ba7..fdaf80f85704 100644
--- a/samples/client/echo_api/ruby-httpx/docs/PathApi.md
+++ b/samples/client/echo_api/ruby-httpx/docs/PathApi.md
@@ -4,12 +4,12 @@ All URIs are relative to *http://localhost:3000*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
-| [**tests_path_string_path_string_integer_path_integer**](PathApi.md#tests_path_string_path_string_integer_path_integer) | **GET** /path/string/{path_string}/integer/{path_integer} | Test path parameter(s) |
+| [**tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path**](PathApi.md#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path) | **GET** /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
-## tests_path_string_path_string_integer_path_integer
+## tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path
-> String tests_path_string_path_string_integer_path_integer(path_string, path_integer)
+> String tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
Test path parameter(s)
@@ -24,31 +24,33 @@ require 'openapi_client'
api_instance = OpenapiClient::PathApi.new
path_string = 'path_string_example' # String |
path_integer = 56 # Integer |
+enum_nonref_string_path = 'success' # String |
+enum_ref_string_path = OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef |
begin
# Test path parameter(s)
- result = api_instance.tests_path_string_path_string_integer_path_integer(path_string, path_integer)
+ result = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
p result
rescue OpenapiClient::ApiError => e
- puts "Error when calling PathApi->tests_path_string_path_string_integer_path_integer: #{e}"
+ puts "Error when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path: #{e}"
end
```
-#### Using the tests_path_string_path_string_integer_path_integer_with_http_info variant
+#### Using the tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info variant
This returns an Array which contains the response data, status code and headers.
-> tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer)
+> tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
```ruby
begin
# Test path parameter(s)
- data, status_code, headers = api_instance.tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer)
+ data, status_code, headers = api_instance.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path)
p status_code # => 2xx
p headers # => { ... }
p data # => String
rescue OpenapiClient::ApiError => e
- puts "Error when calling PathApi->tests_path_string_path_string_integer_path_integer_with_http_info: #{e}"
+ puts "Error when calling PathApi->tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info: #{e}"
end
```
@@ -58,6 +60,8 @@ end
| ---- | ---- | ----------- | ----- |
| **path_string** | **String** | | |
| **path_integer** | **Integer** | | |
+| **enum_nonref_string_path** | **String** | | |
+| **enum_ref_string_path** | [**StringEnumRef**](.md) | | |
### Return type
diff --git a/samples/client/echo_api/ruby-httpx/docs/QueryApi.md b/samples/client/echo_api/ruby-httpx/docs/QueryApi.md
index 469c66a9047d..2dd28c34060b 100644
--- a/samples/client/echo_api/ruby-httpx/docs/QueryApi.md
+++ b/samples/client/echo_api/ruby-httpx/docs/QueryApi.md
@@ -30,6 +30,7 @@ require 'openapi_client'
api_instance = OpenapiClient::QueryApi.new
opts = {
+ enum_nonref_string_query: 'success', # String |
enum_ref_string_query: OpenapiClient::StringEnumRef::SUCCESS # StringEnumRef |
}
@@ -64,6 +65,7 @@ end
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
+| **enum_nonref_string_query** | **String** | | [optional] |
| **enum_ref_string_query** | [**StringEnumRef**](.md) | | [optional] |
### Return type
diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb
index ef44f1aa9c6a..3bf3cd501f7d 100644
--- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb
+++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/header_api.rb
@@ -25,9 +25,11 @@ def initialize(api_client = ApiClient.default)
# @option opts [Integer] :integer_header
# @option opts [Boolean] :boolean_header
# @option opts [String] :string_header
+ # @option opts [String] :enum_nonref_string_header
+ # @option opts [StringEnumRef] :enum_ref_string_header
# @return [String]
- def test_header_integer_boolean_string(opts = {})
- data, _status_code, _headers = test_header_integer_boolean_string_with_http_info(opts)
+ def test_header_integer_boolean_string_enums(opts = {})
+ data, _status_code, _headers = test_header_integer_boolean_string_enums_with_http_info(opts)
data
end
@@ -37,13 +39,19 @@ def test_header_integer_boolean_string(opts = {})
# @option opts [Integer] :integer_header
# @option opts [Boolean] :boolean_header
# @option opts [String] :string_header
+ # @option opts [String] :enum_nonref_string_header
+ # @option opts [StringEnumRef] :enum_ref_string_header
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
- def test_header_integer_boolean_string_with_http_info(opts = {})
+ def test_header_integer_boolean_string_enums_with_http_info(opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug 'Calling API: HeaderApi.test_header_integer_boolean_string ...'
+ @api_client.config.logger.debug 'Calling API: HeaderApi.test_header_integer_boolean_string_enums ...'
+ end
+ allowable_values = ["success", "failure", "unclassified"]
+ if @api_client.config.client_side_validation && opts[:'enum_nonref_string_header'] && !allowable_values.include?(opts[:'enum_nonref_string_header'])
+ fail ArgumentError, "invalid value for \"enum_nonref_string_header\", must be one of #{allowable_values}"
end
# resource path
- local_var_path = '/header/integer/boolean/string'
+ local_var_path = '/header/integer/boolean/string/enums'
# query parameters
query_params = opts[:query_params] || {}
@@ -55,6 +63,8 @@ def test_header_integer_boolean_string_with_http_info(opts = {})
header_params['integer_header'] = opts[:'integer_header'] if !opts[:'integer_header'].nil?
header_params['boolean_header'] = opts[:'boolean_header'] if !opts[:'boolean_header'].nil?
header_params['string_header'] = opts[:'string_header'] if !opts[:'string_header'].nil?
+ header_params['enum_nonref_string_header'] = opts[:'enum_nonref_string_header'] if !opts[:'enum_nonref_string_header'].nil?
+ header_params['enum_ref_string_header'] = opts[:'enum_ref_string_header'] if !opts[:'enum_ref_string_header'].nil?
# form parameters
form_params = opts[:form_params] || {}
@@ -69,7 +79,7 @@ def test_header_integer_boolean_string_with_http_info(opts = {})
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
- :operation => :"HeaderApi.test_header_integer_boolean_string",
+ :operation => :"HeaderApi.test_header_integer_boolean_string_enums",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -80,7 +90,7 @@ def test_header_integer_boolean_string_with_http_info(opts = {})
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: HeaderApi#test_header_integer_boolean_string\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: HeaderApi#test_header_integer_boolean_string_enums\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb
index 5d24f154ae66..76ec07a10843 100644
--- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb
+++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/path_api.rb
@@ -23,10 +23,12 @@ def initialize(api_client = ApiClient.default)
# Test path parameter(s)
# @param path_string [String]
# @param path_integer [Integer]
+ # @param enum_nonref_string_path [String]
+ # @param enum_ref_string_path [StringEnumRef]
# @param [Hash] opts the optional parameters
# @return [String]
- def tests_path_string_path_string_integer_path_integer(path_string, path_integer, opts = {})
- data, _status_code, _headers = tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, opts)
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts = {})
+ data, _status_code, _headers = tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts)
data
end
@@ -34,22 +36,37 @@ def tests_path_string_path_string_integer_path_integer(path_string, path_integer
# Test path parameter(s)
# @param path_string [String]
# @param path_integer [Integer]
+ # @param enum_nonref_string_path [String]
+ # @param enum_ref_string_path [StringEnumRef]
# @param [Hash] opts the optional parameters
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
- def tests_path_string_path_string_integer_path_integer_with_http_info(path_string, path_integer, opts = {})
+ def tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path_with_http_info(path_string, path_integer, enum_nonref_string_path, enum_ref_string_path, opts = {})
if @api_client.config.debugging
- @api_client.config.logger.debug 'Calling API: PathApi.tests_path_string_path_string_integer_path_integer ...'
+ @api_client.config.logger.debug 'Calling API: PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path ...'
end
# verify the required parameter 'path_string' is set
if @api_client.config.client_side_validation && path_string.nil?
- fail ArgumentError, "Missing the required parameter 'path_string' when calling PathApi.tests_path_string_path_string_integer_path_integer"
+ fail ArgumentError, "Missing the required parameter 'path_string' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
end
# verify the required parameter 'path_integer' is set
if @api_client.config.client_side_validation && path_integer.nil?
- fail ArgumentError, "Missing the required parameter 'path_integer' when calling PathApi.tests_path_string_path_string_integer_path_integer"
+ fail ArgumentError, "Missing the required parameter 'path_integer' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
+ end
+ # verify the required parameter 'enum_nonref_string_path' is set
+ if @api_client.config.client_side_validation && enum_nonref_string_path.nil?
+ fail ArgumentError, "Missing the required parameter 'enum_nonref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
+ end
+ # verify enum value
+ allowable_values = ["success", "failure", "unclassified"]
+ if @api_client.config.client_side_validation && !allowable_values.include?(enum_nonref_string_path)
+ fail ArgumentError, "invalid value for \"enum_nonref_string_path\", must be one of #{allowable_values}"
+ end
+ # verify the required parameter 'enum_ref_string_path' is set
+ if @api_client.config.client_side_validation && enum_ref_string_path.nil?
+ fail ArgumentError, "Missing the required parameter 'enum_ref_string_path' when calling PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path"
end
# resource path
- local_var_path = '/path/string/{path_string}/integer/{path_integer}'.sub('{' + 'path_string' + '}', CGI.escape(path_string.to_s)).sub('{' + 'path_integer' + '}', CGI.escape(path_integer.to_s))
+ local_var_path = '/path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}'.sub('{' + 'path_string' + '}', CGI.escape(path_string.to_s)).sub('{' + 'path_integer' + '}', CGI.escape(path_integer.to_s)).sub('{' + 'enum_nonref_string_path' + '}', CGI.escape(enum_nonref_string_path.to_s)).sub('{' + 'enum_ref_string_path' + '}', CGI.escape(enum_ref_string_path.to_s))
# query parameters
query_params = opts[:query_params] || {}
@@ -72,7 +89,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(path_strin
auth_names = opts[:debug_auth_names] || []
new_options = opts.merge(
- :operation => :"PathApi.tests_path_string_path_string_integer_path_integer",
+ :operation => :"PathApi.tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
@@ -83,7 +100,7 @@ def tests_path_string_path_string_integer_path_integer_with_http_info(path_strin
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
if @api_client.config.debugging
- @api_client.config.logger.debug "API called: PathApi#tests_path_string_path_string_integer_path_integer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ @api_client.config.logger.debug "API called: PathApi#tests_path_string_path_string_integer_path_integer_enum_nonref_string_path_enum_ref_string_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
diff --git a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb
index a40ab4977200..d40034e46e00 100644
--- a/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb
+++ b/samples/client/echo_api/ruby-httpx/lib/openapi_client/api/query_api.rb
@@ -22,6 +22,7 @@ def initialize(api_client = ApiClient.default)
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
+ # @option opts [String] :enum_nonref_string_query
# @option opts [StringEnumRef] :enum_ref_string_query
# @return [String]
def test_enum_ref_string(opts = {})
@@ -32,17 +33,23 @@ def test_enum_ref_string(opts = {})
# Test query parameter(s)
# Test query parameter(s)
# @param [Hash] opts the optional parameters
+ # @option opts [String] :enum_nonref_string_query
# @option opts [StringEnumRef] :enum_ref_string_query
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
def test_enum_ref_string_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: QueryApi.test_enum_ref_string ...'
end
+ allowable_values = ["success", "failure", "unclassified"]
+ if @api_client.config.client_side_validation && opts[:'enum_nonref_string_query'] && !allowable_values.include?(opts[:'enum_nonref_string_query'])
+ fail ArgumentError, "invalid value for \"enum_nonref_string_query\", must be one of #{allowable_values}"
+ end
# resource path
local_var_path = '/query/enum_ref_string'
# query parameters
query_params = opts[:query_params] || {}
+ query_params[:'enum_nonref_string_query'] = opts[:'enum_nonref_string_query'] if !opts[:'enum_nonref_string_query'].nil?
query_params[:'enum_ref_string_query'] = opts[:'enum_ref_string_query'] if !opts[:'enum_ref_string_query'].nil?
# header parameters