mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 10:27:07 +00:00
[python] Add tests and fix enum path parameters (#16769)
* test: Tests for enum params in path, query and header * fix: Get enum ref values correctly in path parameters Closes #16688 * fix java tests failure --------- Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user