[Ruby] Fix type mapping for Ruby (#2385) (#2386)

* maps 'boolean' to 'Boolean' in Ruby (#2385)

* update Ruby client samples (#2385)
This commit is contained in:
Akira Tanimura
2019-03-17 12:07:00 +09:00
committed by William Cheng
parent 94466d54b3
commit 40253a5b82
97 changed files with 156 additions and 157 deletions

View File

@@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**declawed** | **BOOLEAN** | | [optional]
**declawed** | **Boolean** | | [optional]
## Code Sample

View File

@@ -59,7 +59,7 @@ No authorization required
# **fake_outer_boolean_serialize**
> BOOLEAN fake_outer_boolean_serialize(opts)
> Boolean fake_outer_boolean_serialize(opts)
@@ -72,7 +72,7 @@ require 'petstore'
api_instance = Petstore::FakeApi.new
opts = {
body: true # BOOLEAN | Input boolean as post body
body: nil # Boolean | Input boolean as post body
}
begin
@@ -87,11 +87,11 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **BOOLEAN**| Input boolean as post body | [optional]
**body** | **Boolean**| Input boolean as post body | [optional]
### Return type
**BOOLEAN**
**Boolean**
### Authorization
@@ -531,11 +531,11 @@ end
api_instance = Petstore::FakeApi.new
required_string_group = 56 # Integer | Required String in group parameters
required_boolean_group = true # BOOLEAN | Required Boolean in group parameters
required_boolean_group = nil # Boolean | Required Boolean in group parameters
required_int64_group = 56 # Integer | Required Integer in group parameters
opts = {
string_group: 56, # Integer | String in group parameters
boolean_group: true, # BOOLEAN | Boolean in group parameters
boolean_group: nil, # Boolean | Boolean in group parameters
int64_group: 56 # Integer | Integer in group parameters
}
@@ -552,10 +552,10 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**required_string_group** | **Integer**| Required String in group parameters |
**required_boolean_group** | **BOOLEAN**| Required Boolean in group parameters |
**required_boolean_group** | **Boolean**| Required Boolean in group parameters |
**required_int64_group** | **Integer**| Required Integer in group parameters |
**string_group** | **Integer**| String in group parameters | [optional]
**boolean_group** | **BOOLEAN**| Boolean in group parameters | [optional]
**boolean_group** | **Boolean**| Boolean in group parameters | [optional]
**int64_group** | **Integer**| Integer in group parameters | [optional]
### Return type

View File

@@ -5,8 +5,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**map_map_of_string** | **Hash<String, Hash<String, String>>** | | [optional]
**map_of_enum_string** | **Hash<String, String>** | | [optional]
**direct_map** | **Hash<String, BOOLEAN>** | | [optional]
**indirect_map** | **Hash<String, BOOLEAN>** | | [optional]
**direct_map** | **Hash<String, Boolean>** | | [optional]
**indirect_map** | **Hash<String, Boolean>** | | [optional]
## Code Sample

View File

@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**quantity** | **Integer** | | [optional]
**ship_date** | **DateTime** | | [optional]
**status** | **String** | Order Status | [optional]
**complete** | **BOOLEAN** | | [optional] [default to false]
**complete** | **Boolean** | | [optional] [default to false]
## Code Sample

View File

@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**my_number** | **Float** | | [optional]
**my_string** | **String** | | [optional]
**my_boolean** | **BOOLEAN** | | [optional]
**my_boolean** | **Boolean** | | [optional]
## Code Sample