mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 00:46:09 +00:00
fix #3215 and enum array issue in parameter check
This commit is contained in:
@@ -3,5 +3,7 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**map_property** | **Hash<String, String>** | | [optional]
|
||||
**map_of_map_property** | **Hash<String, Hash<String, String>>** | | [optional]
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
# Petstore::ArrayOfArrayOfNumberOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**array_array_number** | **Array<Array<Float>>** | | [optional]
|
||||
|
||||
|
||||
8
samples/client/petstore/ruby/docs/ArrayOfNumberOnly.md
Normal file
8
samples/client/petstore/ruby/docs/ArrayOfNumberOnly.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Petstore::ArrayOfNumberOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**array_number** | **Array<Float>** | | [optional]
|
||||
|
||||
|
||||
@@ -3,5 +3,9 @@
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**array_of_string** | **Array<String>** | | [optional]
|
||||
**array_array_of_integer** | **Array<Array<Integer>>** | | [optional]
|
||||
**array_array_of_model** | **Array<Array<ReadOnlyFirst>>** | | [optional]
|
||||
**array_of_enum** | **Array<String>** | | [optional]
|
||||
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ All URIs are relative to *http://petstore.swagger.io/v2*
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**test_endpoint_parameters**](FakeApi.md#test_endpoint_parameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
[**test_enum_query_parameters**](FakeApi.md#test_enum_query_parameters) | **GET** /fake | To test enum query parameters
|
||||
|
||||
|
||||
# **test_endpoint_parameters**
|
||||
@@ -80,3 +81,52 @@ No authorization required
|
||||
|
||||
|
||||
|
||||
# **test_enum_query_parameters**
|
||||
> test_enum_query_parameters(opts)
|
||||
|
||||
To test enum query parameters
|
||||
|
||||
### Example
|
||||
```ruby
|
||||
# load the gem
|
||||
require 'petstore'
|
||||
|
||||
api_instance = Petstore::FakeApi.new
|
||||
|
||||
opts = {
|
||||
enum_query_string: "-efg", # String | Query parameter enum test (string)
|
||||
enum_query_integer: 3.4, # Float | Query parameter enum test (double)
|
||||
enum_query_double: 1.2 # Float | Query parameter enum test (double)
|
||||
}
|
||||
|
||||
begin
|
||||
#To test enum query parameters
|
||||
api_instance.test_enum_query_parameters(opts)
|
||||
rescue Petstore::ApiError => e
|
||||
puts "Exception when calling FakeApi->test_enum_query_parameters: #{e}"
|
||||
end
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**enum_query_string** | **String**| Query parameter enum test (string) | [optional] [default to -efg]
|
||||
**enum_query_integer** | **Float**| Query parameter enum test (double) | [optional]
|
||||
**enum_query_double** | **Float**| Query parameter enum test (double) | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
nil (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
|
||||
|
||||
|
||||
|
||||
9
samples/client/petstore/ruby/docs/HasOnlyReadOnly.md
Normal file
9
samples/client/petstore/ruby/docs/HasOnlyReadOnly.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Petstore::HasOnlyReadOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**bar** | **String** | | [optional]
|
||||
**foo** | **String** | | [optional]
|
||||
|
||||
|
||||
10
samples/client/petstore/ruby/docs/MapTest.md
Normal file
10
samples/client/petstore/ruby/docs/MapTest.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Petstore::MapTest
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**map_map_of_string** | **Hash<String, Hash<String, String>>** | | [optional]
|
||||
**map_map_of_enum** | **Hash<String, Hash<String, String>>** | | [optional]
|
||||
**map_of_enum_string** | **Hash<String, String>** | | [optional]
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**uuid** | **String** | | [optional]
|
||||
**date_time** | **DateTime** | | [optional]
|
||||
**map** | [**Hash<String, Animal>**](Animal.md) | | [optional]
|
||||
|
||||
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **Integer** | | [optional]
|
||||
**_class** | **String** | | [optional]
|
||||
|
||||
|
||||
|
||||
8
samples/client/petstore/ruby/docs/NumberOnly.md
Normal file
8
samples/client/petstore/ruby/docs/NumberOnly.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Petstore::NumberOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**just_number** | **Float** | | [optional]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user