[ruby] fix oneOf handling (#5706)

* [ruby] fix oneOf handling

* use previous ruby configs due to issue #4690

* check for oneOf model in base_object

* validate the attributes in partial_oneof_module
This commit is contained in:
Julien Feltesse
2020-11-23 23:43:34 +09:00
committed by GitHub
parent 6f6822a1b7
commit 522faf835a
221 changed files with 2719 additions and 1732 deletions

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**map_property** | **Hash<String, String>** | | [optional]
**map_of_map_property** | **Hash<String, Hash<String, String>>** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **map_property** | **Hash<String, String>** | | [optional] |
| **map_of_map_property** | **Hash<String, Hash<String, String>>** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::AdditionalPropertiesClass.new(map_property: null,
map_of_map_property: null)
instance = Petstore::AdditionalPropertiesClass.new(
map_property: null,
map_of_map_property: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**class_name** | **String** | |
**color** | **String** | | [optional] [default to 'red']
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **class_name** | **String** | | |
| **color** | **String** | | [optional][default to 'red'] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Animal.new(class_name: null,
color: null)
instance = Petstore::Animal.new(
class_name: null,
color: null
)
```

View File

@@ -2,10 +2,9 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**call_123_test_special_tags**](AnotherFakeApi.md#call_123_test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**call_123_test_special_tags**](AnotherFakeApi.md#call_123_test_special_tags) | **PATCH** /another-fake/dummy | To test special tags |
## call_123_test_special_tags
@@ -36,10 +35,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **client** | [**Client**](Client.md) | client model | |
### Return type

View File

@@ -2,20 +2,21 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **Integer** | | [optional]
**type** | **String** | | [optional]
**message** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **code** | **Integer** | | [optional] |
| **type** | **String** | | [optional] |
| **message** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ApiResponse.new(code: null,
type: null,
message: null)
instance = Petstore::ApiResponse.new(
code: null,
type: null,
message: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**array_array_number** | **Array<Array<Float>>** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **array_array_number** | **Array<Array<Float>>** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ArrayOfArrayOfNumberOnly.new(array_array_number: null)
instance = Petstore::ArrayOfArrayOfNumberOnly.new(
array_array_number: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**array_number** | **Array<Float>** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **array_number** | **Array<Float>** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ArrayOfNumberOnly.new(array_number: null)
instance = Petstore::ArrayOfNumberOnly.new(
array_number: null
)
```

View File

@@ -2,20 +2,21 @@
## 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]
| 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] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ArrayTest.new(array_of_string: null,
array_array_of_integer: null,
array_array_of_model: null)
instance = Petstore::ArrayTest.new(
array_of_string: null,
array_array_of_integer: null,
array_array_of_model: null
)
```

View File

@@ -2,26 +2,27 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**small_camel** | **String** | | [optional]
**capital_camel** | **String** | | [optional]
**small_snake** | **String** | | [optional]
**capital_snake** | **String** | | [optional]
**sca_eth_flow_points** | **String** | | [optional]
**att_name** | **String** | Name of the pet | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **small_camel** | **String** | | [optional] |
| **capital_camel** | **String** | | [optional] |
| **small_snake** | **String** | | [optional] |
| **capital_snake** | **String** | | [optional] |
| **sca_eth_flow_points** | **String** | | [optional] |
| **att_name** | **String** | Name of the pet | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Capitalization.new(small_camel: null,
capital_camel: null,
small_snake: null,
capital_snake: null,
sca_eth_flow_points: null,
att_name: null)
instance = Petstore::Capitalization.new(
small_camel: null,
capital_camel: null,
small_snake: null,
capital_snake: null,
sca_eth_flow_points: null,
att_name: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**declawed** | **Boolean** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **declawed** | **Boolean** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Cat.new(declawed: null)
instance = Petstore::Cat.new(
declawed: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**declawed** | **Boolean** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **declawed** | **Boolean** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::CatAllOf.new(declawed: null)
instance = Petstore::CatAllOf.new(
declawed: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Integer** | | [optional]
**name** | **String** | | [default to 'default-name']
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | | [optional] |
| **name** | **String** | | [default to 'default-name'] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Category.new(id: null,
name: null)
instance = Petstore::Category.new(
id: null,
name: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_class** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **_class** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ClassModel.new(_class: null)
instance = Petstore::ClassModel.new(
_class: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**client** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **client** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Client.new(client: null)
instance = Petstore::Client.new(
client: null
)
```

View File

@@ -2,10 +2,9 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**foo_get**](DefaultApi.md#foo_get) | **GET** /foo |
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**foo_get**](DefaultApi.md#foo_get) | **GET** /foo | |
## foo_get

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**breed** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **breed** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Dog.new(breed: null)
instance = Petstore::Dog.new(
breed: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**breed** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **breed** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::DogAllOf.new(breed: null)
instance = Petstore::DogAllOf.new(
breed: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**just_symbol** | **String** | | [optional]
**array_enum** | **Array<String>** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **just_symbol** | **String** | | [optional] |
| **array_enum** | **Array<String>** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::EnumArrays.new(just_symbol: null,
array_enum: null)
instance = Petstore::EnumArrays.new(
just_symbol: null,
array_enum: null
)
```

View File

@@ -2,15 +2,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::EnumClass.new()
```

View File

@@ -2,30 +2,31 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enum_string** | **String** | | [optional]
**enum_string_required** | **String** | |
**enum_integer** | **Integer** | | [optional]
**enum_number** | **Float** | | [optional]
**outer_enum** | [**OuterEnum**](OuterEnum.md) | | [optional]
**outer_enum_integer** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
**outer_enum_default_value** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional] [default to 'placed']
**outer_enum_integer_default_value** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] [default to OuterEnumIntegerDefaultValue::N0]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **enum_string** | **String** | | [optional] |
| **enum_string_required** | **String** | | |
| **enum_integer** | **Integer** | | [optional] |
| **enum_number** | **Float** | | [optional] |
| **outer_enum** | [**OuterEnum**](OuterEnum.md) | | [optional] |
| **outer_enum_integer** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional] |
| **outer_enum_default_value** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional][default to 'placed'] |
| **outer_enum_integer_default_value** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional][default to OuterEnumIntegerDefaultValue::N0] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::EnumTest.new(enum_string: null,
enum_string_required: null,
enum_integer: null,
enum_number: null,
outer_enum: null,
outer_enum_integer: null,
outer_enum_default_value: null,
outer_enum_integer_default_value: null)
instance = Petstore::EnumTest.new(
enum_string: null,
enum_string_required: null,
enum_integer: null,
enum_number: null,
outer_enum: null,
outer_enum_integer: null,
outer_enum_default_value: null,
outer_enum_integer_default_value: null
)
```

View File

@@ -2,24 +2,23 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**fake_health_get**](FakeApi.md#fake_health_get) | **GET** /fake/health | Health check endpoint
[**fake_http_signature_test**](FakeApi.md#fake_http_signature_test) | **GET** /fake/http-signature-test | test http signature authentication
[**fake_outer_boolean_serialize**](FakeApi.md#fake_outer_boolean_serialize) | **POST** /fake/outer/boolean |
[**fake_outer_composite_serialize**](FakeApi.md#fake_outer_composite_serialize) | **POST** /fake/outer/composite |
[**fake_outer_number_serialize**](FakeApi.md#fake_outer_number_serialize) | **POST** /fake/outer/number |
[**fake_outer_string_serialize**](FakeApi.md#fake_outer_string_serialize) | **POST** /fake/outer/string |
[**test_body_with_file_schema**](FakeApi.md#test_body_with_file_schema) | **PUT** /fake/body-with-file-schema |
[**test_body_with_query_params**](FakeApi.md#test_body_with_query_params) | **PUT** /fake/body-with-query-params |
[**test_client_model**](FakeApi.md#test_client_model) | **PATCH** /fake | To test \"client\" model
[**test_endpoint_parameters**](FakeApi.md#test_endpoint_parameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**test_enum_parameters**](FakeApi.md#test_enum_parameters) | **GET** /fake | To test enum parameters
[**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
[**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
[**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data
[**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters |
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**fake_health_get**](FakeApi.md#fake_health_get) | **GET** /fake/health | Health check endpoint |
| [**fake_http_signature_test**](FakeApi.md#fake_http_signature_test) | **GET** /fake/http-signature-test | test http signature authentication |
| [**fake_outer_boolean_serialize**](FakeApi.md#fake_outer_boolean_serialize) | **POST** /fake/outer/boolean | |
| [**fake_outer_composite_serialize**](FakeApi.md#fake_outer_composite_serialize) | **POST** /fake/outer/composite | |
| [**fake_outer_number_serialize**](FakeApi.md#fake_outer_number_serialize) | **POST** /fake/outer/number | |
| [**fake_outer_string_serialize**](FakeApi.md#fake_outer_string_serialize) | **POST** /fake/outer/string | |
| [**test_body_with_file_schema**](FakeApi.md#test_body_with_file_schema) | **PUT** /fake/body-with-file-schema | |
| [**test_body_with_query_params**](FakeApi.md#test_body_with_query_params) | **PUT** /fake/body-with-query-params | |
| [**test_client_model**](FakeApi.md#test_client_model) | **PATCH** /fake | To test \"client\" model |
| [**test_endpoint_parameters**](FakeApi.md#test_endpoint_parameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
| [**test_enum_parameters**](FakeApi.md#test_enum_parameters) | **GET** /fake | To test enum parameters |
| [**test_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) |
| [**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties |
| [**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data |
| [**test_query_parameter_collection_format**](FakeApi.md#test_query_parameter_collection_format) | **PUT** /fake/test-query-paramters | |
## fake_health_get
@@ -95,12 +94,11 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
**query_1** | **String**| query parameter | [optional]
**header_1** | **String**| header parameter | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | |
| **query_1** | **String** | query parameter | [optional] |
| **header_1** | **String** | header parameter | [optional] |
### Return type
@@ -145,10 +143,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **Boolean**| Input boolean as post body | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **body** | **Boolean** | Input boolean as post body | [optional] |
### Return type
@@ -193,10 +190,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**outer_composite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **outer_composite** | [**OuterComposite**](OuterComposite.md) | Input composite as post body | [optional] |
### Return type
@@ -241,10 +237,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **Float**| Input number as post body | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **body** | **Float** | Input number as post body | [optional] |
### Return type
@@ -289,10 +284,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | **String**| Input string as post body | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **body** | **String** | Input string as post body | [optional] |
### Return type
@@ -334,10 +328,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file_schema_test_class** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **file_schema_test_class** | [**FileSchemaTestClass**](FileSchemaTestClass.md) | | |
### Return type
@@ -378,11 +371,10 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **String**| |
**user** | [**User**](User.md)| |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **query** | **String** | | |
| **user** | [**User**](User.md) | | |
### Return type
@@ -426,10 +418,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **client** | [**Client**](Client.md) | client model | |
### Return type
@@ -493,23 +484,22 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**number** | **Float**| None |
**double** | **Float**| None |
**pattern_without_delimiter** | **String**| None |
**byte** | **String**| None |
**integer** | **Integer**| None | [optional]
**int32** | **Integer**| None | [optional]
**int64** | **Integer**| None | [optional]
**float** | **Float**| None | [optional]
**string** | **String**| None | [optional]
**binary** | **File**| None | [optional]
**date** | **Date**| None | [optional]
**date_time** | **Time**| None | [optional]
**password** | **String**| None | [optional]
**callback** | **String**| None | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **number** | **Float** | None | |
| **double** | **Float** | None | |
| **pattern_without_delimiter** | **String** | None | |
| **byte** | **String** | None | |
| **integer** | **Integer** | None | [optional] |
| **int32** | **Integer** | None | [optional] |
| **int64** | **Integer** | None | [optional] |
| **float** | **Float** | None | [optional] |
| **string** | **String** | None | [optional] |
| **binary** | **File** | None | [optional] |
| **date** | **Date** | None | [optional] |
| **date_time** | **Time** | None | [optional] |
| **password** | **String** | None | [optional] |
| **callback** | **String** | None | [optional] |
### Return type
@@ -561,17 +551,16 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**enum_header_string_array** | [**Array<String>**](String.md)| Header parameter enum test (string array) | [optional]
**enum_header_string** | **String**| Header parameter enum test (string) | [optional] [default to '-efg']
**enum_query_string_array** | [**Array<String>**](String.md)| Query parameter enum test (string array) | [optional]
**enum_query_string** | **String**| Query parameter enum test (string) | [optional] [default to '-efg']
**enum_query_integer** | **Integer**| Query parameter enum test (double) | [optional]
**enum_query_double** | **Float**| Query parameter enum test (double) | [optional]
**enum_form_string_array** | [**Array<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to '$']
**enum_form_string** | **String**| Form parameter enum test (string) | [optional] [default to '-efg']
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **enum_header_string_array** | [**Array<String>**](String.md) | Header parameter enum test (string array) | [optional] |
| **enum_header_string** | **String** | Header parameter enum test (string) | [optional][default to '-efg'] |
| **enum_query_string_array** | [**Array<String>**](String.md) | Query parameter enum test (string array) | [optional] |
| **enum_query_string** | **String** | Query parameter enum test (string) | [optional][default to '-efg'] |
| **enum_query_integer** | **Integer** | Query parameter enum test (double) | [optional] |
| **enum_query_double** | **Float** | Query parameter enum test (double) | [optional] |
| **enum_form_string_array** | [**Array<String>**](String.md) | Form parameter enum test (string array) | [optional][default to '$'] |
| **enum_form_string** | **String** | Form parameter enum test (string) | [optional][default to '-efg'] |
### Return type
@@ -626,15 +615,14 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**required_string_group** | **Integer**| Required String 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]
**int64_group** | **Integer**| Integer in group parameters | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **required_string_group** | **Integer** | Required String 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] |
| **int64_group** | **Integer** | Integer in group parameters | [optional] |
### Return type
@@ -675,10 +663,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**request_body** | [**Hash<String, String>**](String.md)| request body |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **request_body** | [**Hash<String, String>**](String.md) | request body | |
### Return type
@@ -720,11 +707,10 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**param** | **String**| field1 |
**param2** | **String**| field2 |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **param** | **String** | field1 | |
| **param2** | **String** | field2 | |
### Return type
@@ -770,14 +756,13 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pipe** | [**Array<String>**](String.md)| |
**ioutil** | [**Array<String>**](String.md)| |
**http** | [**Array<String>**](String.md)| |
**url** | [**Array<String>**](String.md)| |
**context** | [**Array<String>**](String.md)| |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pipe** | [**Array<String>**](String.md) | | |
| **ioutil** | [**Array<String>**](String.md) | | |
| **http** | [**Array<String>**](String.md) | | |
| **url** | [**Array<String>**](String.md) | | |
| **context** | [**Array<String>**](String.md) | | |
### Return type

View File

@@ -2,10 +2,9 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**test_classname**](FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**test_classname**](FakeClassnameTags123Api.md#test_classname) | **PATCH** /fake_classname_test | To test class name in snake case |
## test_classname
@@ -43,10 +42,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **client** | [**Client**](Client.md) | client model | |
### Return type

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_uri** | **String** | Test capitalization | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **source_uri** | **String** | Test capitalization | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::File.new(source_uri: null)
instance = Petstore::File.new(
source_uri: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**file** | **File** | | [optional]
**files** | **Array<File>** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **file** | **File** | | [optional] |
| **files** | **Array<File>** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::FileSchemaTestClass.new(file: null,
files: null)
instance = Petstore::FileSchemaTestClass.new(
file: null,
files: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bar** | **String** | | [optional] [default to 'bar']
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **bar** | **String** | | [optional][default to 'bar'] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Foo.new(bar: null)
instance = Petstore::Foo.new(
bar: null
)
```

View File

@@ -2,46 +2,47 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer** | **Integer** | | [optional]
**int32** | **Integer** | | [optional]
**int64** | **Integer** | | [optional]
**number** | **Float** | |
**float** | **Float** | | [optional]
**double** | **Float** | | [optional]
**decimal** | [**Decimal**](Decimal.md) | | [optional]
**string** | **String** | | [optional]
**byte** | **String** | |
**binary** | **File** | | [optional]
**date** | **Date** | |
**date_time** | **Time** | | [optional]
**uuid** | **String** | | [optional]
**password** | **String** | |
**pattern_with_digits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional]
**pattern_with_digits_and_delimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **integer** | **Integer** | | [optional] |
| **int32** | **Integer** | | [optional] |
| **int64** | **Integer** | | [optional] |
| **number** | **Float** | | |
| **float** | **Float** | | [optional] |
| **double** | **Float** | | [optional] |
| **decimal** | [**Decimal**](Decimal.md) | | [optional] |
| **string** | **String** | | [optional] |
| **byte** | **String** | | |
| **binary** | **File** | | [optional] |
| **date** | **Date** | | |
| **date_time** | **Time** | | [optional] |
| **uuid** | **String** | | [optional] |
| **password** | **String** | | |
| **pattern_with_digits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] |
| **pattern_with_digits_and_delimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::FormatTest.new(integer: null,
int32: null,
int64: null,
number: null,
float: null,
double: null,
decimal: null,
string: null,
byte: null,
binary: null,
date: null,
date_time: null,
uuid: 72f98069-206d-4f12-9f12-3d1e525a8e84,
password: null,
pattern_with_digits: null,
pattern_with_digits_and_delimiter: null)
instance = Petstore::FormatTest.new(
integer: null,
int32: null,
int64: null,
number: null,
float: null,
double: null,
decimal: null,
string: null,
byte: null,
binary: null,
date: null,
date_time: null,
uuid: 72f98069-206d-4f12-9f12-3d1e525a8e84,
password: null,
pattern_with_digits: null,
pattern_with_digits_and_delimiter: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bar** | **String** | | [optional] [readonly]
**foo** | **String** | | [optional] [readonly]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **bar** | **String** | | [optional][readonly] |
| **foo** | **String** | | [optional][readonly] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::HasOnlyReadOnly.new(bar: null,
foo: null)
instance = Petstore::HasOnlyReadOnly.new(
bar: null,
foo: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**nullable_message** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **nullable_message** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::HealthCheckResult.new(nullable_message: null)
instance = Petstore::HealthCheckResult.new(
nullable_message: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Updated name of the pet | [optional]
**status** | **String** | Updated status of the pet | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **name** | **String** | Updated name of the pet | [optional] |
| **status** | **String** | Updated status of the pet | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineObject.new(name: null,
status: null)
instance = Petstore::InlineObject.new(
name: null,
status: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additional_metadata** | **String** | Additional data to pass to server | [optional]
**file** | **File** | file to upload | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **additional_metadata** | **String** | Additional data to pass to server | [optional] |
| **file** | **File** | file to upload | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineObject1.new(additional_metadata: null,
file: null)
instance = Petstore::InlineObject1.new(
additional_metadata: null,
file: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enum_form_string_array** | **Array<String>** | Form parameter enum test (string array) | [optional]
**enum_form_string** | **String** | Form parameter enum test (string) | [optional] [default to '-efg']
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **enum_form_string_array** | **Array<String>** | Form parameter enum test (string array) | [optional] |
| **enum_form_string** | **String** | Form parameter enum test (string) | [optional][default to '-efg'] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineObject2.new(enum_form_string_array: null,
enum_form_string: null)
instance = Petstore::InlineObject2.new(
enum_form_string_array: null,
enum_form_string: null
)
```

View File

@@ -2,42 +2,43 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer** | **Integer** | None | [optional]
**int32** | **Integer** | None | [optional]
**int64** | **Integer** | None | [optional]
**number** | **Float** | None |
**float** | **Float** | None | [optional]
**double** | **Float** | None |
**string** | **String** | None | [optional]
**pattern_without_delimiter** | **String** | None |
**byte** | **String** | None |
**binary** | **File** | None | [optional]
**date** | **Date** | None | [optional]
**date_time** | **Time** | None | [optional]
**password** | **String** | None | [optional]
**callback** | **String** | None | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **integer** | **Integer** | None | [optional] |
| **int32** | **Integer** | None | [optional] |
| **int64** | **Integer** | None | [optional] |
| **number** | **Float** | None | |
| **float** | **Float** | None | [optional] |
| **double** | **Float** | None | |
| **string** | **String** | None | [optional] |
| **pattern_without_delimiter** | **String** | None | |
| **byte** | **String** | None | |
| **binary** | **File** | None | [optional] |
| **date** | **Date** | None | [optional] |
| **date_time** | **Time** | None | [optional] |
| **password** | **String** | None | [optional] |
| **callback** | **String** | None | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineObject3.new(integer: null,
int32: null,
int64: null,
number: null,
float: null,
double: null,
string: null,
pattern_without_delimiter: null,
byte: null,
binary: null,
date: null,
date_time: null,
password: null,
callback: null)
instance = Petstore::InlineObject3.new(
integer: null,
int32: null,
int64: null,
number: null,
float: null,
double: null,
string: null,
pattern_without_delimiter: null,
byte: null,
binary: null,
date: null,
date_time: null,
password: null,
callback: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**param** | **String** | field1 |
**param2** | **String** | field2 |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **param** | **String** | field1 | |
| **param2** | **String** | field2 | |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineObject4.new(param: null,
param2: null)
instance = Petstore::InlineObject4.new(
param: null,
param2: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additional_metadata** | **String** | Additional data to pass to server | [optional]
**required_file** | **File** | file to upload |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **additional_metadata** | **String** | Additional data to pass to server | [optional] |
| **required_file** | **File** | file to upload | |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineObject5.new(additional_metadata: null,
required_file: null)
instance = Petstore::InlineObject5.new(
additional_metadata: null,
required_file: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string** | [**Foo**](Foo.md) | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **string** | [**Foo**](Foo.md) | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::InlineResponseDefault.new(string: null)
instance = Petstore::InlineResponseDefault.new(
string: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_123_list** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **_123_list** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::List.new(_123_list: null)
instance = Petstore::List.new(
_123_list: null
)
```

View File

@@ -2,22 +2,23 @@
## Properties
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]
| 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] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::MapTest.new(map_map_of_string: null,
map_of_enum_string: null,
direct_map: null,
indirect_map: null)
instance = Petstore::MapTest.new(
map_map_of_string: null,
map_of_enum_string: null,
direct_map: null,
indirect_map: null
)
```

View File

@@ -2,20 +2,21 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**uuid** | **String** | | [optional]
**date_time** | **Time** | | [optional]
**map** | [**Hash<String, Animal>**](Animal.md) | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **uuid** | **String** | | [optional] |
| **date_time** | **Time** | | [optional] |
| **map** | [**Hash<String, Animal>**](Animal.md) | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new(uuid: null,
date_time: null,
map: null)
instance = Petstore::MixedPropertiesAndAdditionalPropertiesClass.new(
uuid: null,
date_time: null,
map: null
)
```

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **Integer** | | [optional]
**_class** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **name** | **Integer** | | [optional] |
| **_class** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Model200Response.new(name: null,
_class: null)
instance = Petstore::Model200Response.new(
name: null,
_class: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_return** | **Integer** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **_return** | **Integer** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ModelReturn.new(_return: null)
instance = Petstore::ModelReturn.new(
_return: null
)
```

View File

@@ -2,22 +2,23 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **Integer** | |
**snake_case** | **Integer** | | [optional] [readonly]
**property** | **String** | | [optional]
**_123_number** | **Integer** | | [optional] [readonly]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **name** | **Integer** | | |
| **snake_case** | **Integer** | | [optional][readonly] |
| **property** | **String** | | [optional] |
| **_123_number** | **Integer** | | [optional][readonly] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Name.new(name: null,
snake_case: null,
property: null,
_123_number: null)
instance = Petstore::Name.new(
name: null,
snake_case: null,
property: null,
_123_number: null
)
```

View File

@@ -2,38 +2,39 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer_prop** | **Integer** | | [optional]
**number_prop** | **Float** | | [optional]
**boolean_prop** | **Boolean** | | [optional]
**string_prop** | **String** | | [optional]
**date_prop** | **Date** | | [optional]
**datetime_prop** | **Time** | | [optional]
**array_nullable_prop** | **Array<Object>** | | [optional]
**array_and_items_nullable_prop** | **Array<Object>** | | [optional]
**array_items_nullable** | **Array<Object>** | | [optional]
**object_nullable_prop** | **Hash<String, Object>** | | [optional]
**object_and_items_nullable_prop** | **Hash<String, Object>** | | [optional]
**object_items_nullable** | **Hash<String, Object>** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **integer_prop** | **Integer** | | [optional] |
| **number_prop** | **Float** | | [optional] |
| **boolean_prop** | **Boolean** | | [optional] |
| **string_prop** | **String** | | [optional] |
| **date_prop** | **Date** | | [optional] |
| **datetime_prop** | **Time** | | [optional] |
| **array_nullable_prop** | **Array<Object>** | | [optional] |
| **array_and_items_nullable_prop** | **Array<Object>** | | [optional] |
| **array_items_nullable** | **Array<Object>** | | [optional] |
| **object_nullable_prop** | **Hash<String, Object>** | | [optional] |
| **object_and_items_nullable_prop** | **Hash<String, Object>** | | [optional] |
| **object_items_nullable** | **Hash<String, Object>** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::NullableClass.new(integer_prop: null,
number_prop: null,
boolean_prop: null,
string_prop: null,
date_prop: null,
datetime_prop: null,
array_nullable_prop: null,
array_and_items_nullable_prop: null,
array_items_nullable: null,
object_nullable_prop: null,
object_and_items_nullable_prop: null,
object_items_nullable: null)
instance = Petstore::NullableClass.new(
integer_prop: null,
number_prop: null,
boolean_prop: null,
string_prop: null,
date_prop: null,
datetime_prop: null,
array_nullable_prop: null,
array_and_items_nullable_prop: null,
array_items_nullable: null,
object_nullable_prop: null,
object_and_items_nullable_prop: null,
object_items_nullable: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**just_number** | **Float** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **just_number** | **Float** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::NumberOnly.new(just_number: null)
instance = Petstore::NumberOnly.new(
just_number: null
)
```

View File

@@ -2,26 +2,27 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Integer** | | [optional]
**pet_id** | **Integer** | | [optional]
**quantity** | **Integer** | | [optional]
**ship_date** | **Time** | | [optional]
**status** | **String** | Order Status | [optional]
**complete** | **Boolean** | | [optional] [default to false]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | | [optional] |
| **pet_id** | **Integer** | | [optional] |
| **quantity** | **Integer** | | [optional] |
| **ship_date** | **Time** | | [optional] |
| **status** | **String** | Order Status | [optional] |
| **complete** | **Boolean** | | [optional][default to false] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Order.new(id: null,
pet_id: null,
quantity: null,
ship_date: null,
status: null,
complete: null)
instance = Petstore::Order.new(
id: null,
pet_id: null,
quantity: null,
ship_date: null,
status: null,
complete: null
)
```

View File

@@ -2,20 +2,21 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**my_number** | **Float** | | [optional]
**my_string** | **String** | | [optional]
**my_boolean** | **Boolean** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **my_number** | **Float** | | [optional] |
| **my_string** | **String** | | [optional] |
| **my_boolean** | **Boolean** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::OuterComposite.new(my_number: null,
my_string: null,
my_boolean: null)
instance = Petstore::OuterComposite.new(
my_number: null,
my_string: null,
my_boolean: null
)
```

View File

@@ -2,15 +2,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::OuterEnum.new()
```

View File

@@ -2,15 +2,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::OuterEnumDefaultValue.new()
```

View File

@@ -2,15 +2,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::OuterEnumInteger.new()
```

View File

@@ -2,15 +2,14 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::OuterEnumIntegerDefaultValue.new()
```

View File

@@ -2,26 +2,27 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Integer** | | [optional]
**category** | [**Category**](Category.md) | | [optional]
**name** | **String** | |
**photo_urls** | **Array<String>** | |
**tags** | [**Array<Tag>**](Tag.md) | | [optional]
**status** | **String** | pet status in the store | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | | [optional] |
| **category** | [**Category**](Category.md) | | [optional] |
| **name** | **String** | | |
| **photo_urls** | **Array<String>** | | |
| **tags** | [**Array<Tag>**](Tag.md) | | [optional] |
| **status** | **String** | pet status in the store | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Pet.new(id: null,
category: null,
name: doggie,
photo_urls: null,
tags: null,
status: null)
instance = Petstore::Pet.new(
id: null,
category: null,
name: doggie,
photo_urls: null,
tags: null,
status: null
)
```

View File

@@ -2,18 +2,17 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**add_pet**](PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store
[**delete_pet**](PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet
[**find_pets_by_status**](PetApi.md#find_pets_by_status) | **GET** /pet/findByStatus | Finds Pets by status
[**find_pets_by_tags**](PetApi.md#find_pets_by_tags) | **GET** /pet/findByTags | Finds Pets by tags
[**get_pet_by_id**](PetApi.md#get_pet_by_id) | **GET** /pet/{petId} | Find pet by ID
[**update_pet**](PetApi.md#update_pet) | **PUT** /pet | Update an existing pet
[**update_pet_with_form**](PetApi.md#update_pet_with_form) | **POST** /pet/{petId} | Updates a pet in the store with form data
[**upload_file**](PetApi.md#upload_file) | **POST** /pet/{petId}/uploadImage | uploads an image
[**upload_file_with_required_file**](PetApi.md#upload_file_with_required_file) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**add_pet**](PetApi.md#add_pet) | **POST** /pet | Add a new pet to the store |
| [**delete_pet**](PetApi.md#delete_pet) | **DELETE** /pet/{petId} | Deletes a pet |
| [**find_pets_by_status**](PetApi.md#find_pets_by_status) | **GET** /pet/findByStatus | Finds Pets by status |
| [**find_pets_by_tags**](PetApi.md#find_pets_by_tags) | **GET** /pet/findByTags | Finds Pets by tags |
| [**get_pet_by_id**](PetApi.md#get_pet_by_id) | **GET** /pet/{petId} | Find pet by ID |
| [**update_pet**](PetApi.md#update_pet) | **PUT** /pet | Update an existing pet |
| [**update_pet_with_form**](PetApi.md#update_pet_with_form) | **POST** /pet/{petId} | Updates a pet in the store with form data |
| [**upload_file**](PetApi.md#upload_file) | **POST** /pet/{petId}/uploadImage | uploads an image |
| [**upload_file_with_required_file**](PetApi.md#upload_file_with_required_file) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) |
## add_pet
@@ -46,10 +45,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | |
### Return type
@@ -98,11 +96,10 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet_id** | **Integer**| Pet id to delete |
**api_key** | **String**| | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet_id** | **Integer** | Pet id to delete | |
| **api_key** | **String** | | [optional] |
### Return type
@@ -151,10 +148,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**status** | [**Array<String>**](String.md)| Status values that need to be considered for filter |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **status** | [**Array<String>**](String.md) | Status values that need to be considered for filter | |
### Return type
@@ -203,10 +199,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tags** | [**Array<String>**](String.md)| Tags to filter by |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **tags** | [**Array<String>**](String.md) | Tags to filter by | |
### Return type
@@ -257,10 +252,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet_id** | **Integer**| ID of pet to return |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet_id** | **Integer** | ID of pet to return | |
### Return type
@@ -306,10 +300,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store | |
### Return type
@@ -359,12 +352,11 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet_id** | **Integer**| ID of pet that needs to be updated |
**name** | **String**| Updated name of the pet | [optional]
**status** | **String**| Updated status of the pet | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet_id** | **Integer** | ID of pet that needs to be updated | |
| **name** | **String** | Updated name of the pet | [optional] |
| **status** | **String** | Updated status of the pet | [optional] |
### Return type
@@ -415,12 +407,11 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet_id** | **Integer**| ID of pet to update |
**additional_metadata** | **String**| Additional data to pass to server | [optional]
**file** | **File**| file to upload | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet_id** | **Integer** | ID of pet to update | |
| **additional_metadata** | **String** | Additional data to pass to server | [optional] |
| **file** | **File** | file to upload | [optional] |
### Return type
@@ -471,12 +462,11 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pet_id** | **Integer**| ID of pet to update |
**required_file** | **File**| file to upload |
**additional_metadata** | **String**| Additional data to pass to server | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **pet_id** | **Integer** | ID of pet to update | |
| **required_file** | **File** | file to upload | |
| **additional_metadata** | **String** | Additional data to pass to server | [optional] |
### Return type

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bar** | **String** | | [optional] [readonly]
**baz** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **bar** | **String** | | [optional][readonly] |
| **baz** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::ReadOnlyFirst.new(bar: null,
baz: null)
instance = Petstore::ReadOnlyFirst.new(
bar: null,
baz: null
)
```

View File

@@ -2,16 +2,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**special_property_name** | **Integer** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **special_property_name** | **Integer** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::SpecialModelName.new(special_property_name: null)
instance = Petstore::SpecialModelName.new(
special_property_name: null
)
```

View File

@@ -2,13 +2,12 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**delete_order**](StoreApi.md#delete_order) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
[**get_inventory**](StoreApi.md#get_inventory) | **GET** /store/inventory | Returns pet inventories by status
[**get_order_by_id**](StoreApi.md#get_order_by_id) | **GET** /store/order/{order_id} | Find purchase order by ID
[**place_order**](StoreApi.md#place_order) | **POST** /store/order | Place an order for a pet
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**delete_order**](StoreApi.md#delete_order) | **DELETE** /store/order/{order_id} | Delete purchase order by ID |
| [**get_inventory**](StoreApi.md#get_inventory) | **GET** /store/inventory | Returns pet inventories by status |
| [**get_order_by_id**](StoreApi.md#get_order_by_id) | **GET** /store/order/{order_id} | Find purchase order by ID |
| [**place_order**](StoreApi.md#place_order) | **POST** /store/order | Place an order for a pet |
## delete_order
@@ -38,10 +37,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order_id** | **String**| ID of the order that needs to be deleted |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **order_id** | **String** | ID of the order that needs to be deleted | |
### Return type
@@ -135,10 +133,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order_id** | **Integer**| ID of pet that needs to be fetched |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **order_id** | **Integer** | ID of pet that needs to be fetched | |
### Return type
@@ -180,10 +177,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **order** | [**Order**](Order.md) | order placed for purchasing the pet | |
### Return type

View File

@@ -2,18 +2,19 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Integer** | | [optional]
**name** | **String** | | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | | [optional] |
| **name** | **String** | | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::Tag.new(id: null,
name: null)
instance = Petstore::Tag.new(
id: null,
name: null
)
```

View File

@@ -2,30 +2,31 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **Integer** | | [optional]
**username** | **String** | | [optional]
**first_name** | **String** | | [optional]
**last_name** | **String** | | [optional]
**email** | **String** | | [optional]
**password** | **String** | | [optional]
**phone** | **String** | | [optional]
**user_status** | **Integer** | User Status | [optional]
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | | [optional] |
| **username** | **String** | | [optional] |
| **first_name** | **String** | | [optional] |
| **last_name** | **String** | | [optional] |
| **email** | **String** | | [optional] |
| **password** | **String** | | [optional] |
| **phone** | **String** | | [optional] |
| **user_status** | **Integer** | User Status | [optional] |
## Code Sample
```ruby
require 'Petstore'
require 'petstore'
instance = Petstore::User.new(id: null,
username: null,
first_name: null,
last_name: null,
email: null,
password: null,
phone: null,
user_status: null)
instance = Petstore::User.new(
id: null,
username: null,
first_name: null,
last_name: null,
email: null,
password: null,
phone: null,
user_status: null
)
```

View File

@@ -2,17 +2,16 @@
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_user**](UserApi.md#create_user) | **POST** /user | Create user
[**create_users_with_array_input**](UserApi.md#create_users_with_array_input) | **POST** /user/createWithArray | Creates list of users with given input array
[**create_users_with_list_input**](UserApi.md#create_users_with_list_input) | **POST** /user/createWithList | Creates list of users with given input array
[**delete_user**](UserApi.md#delete_user) | **DELETE** /user/{username} | Delete user
[**get_user_by_name**](UserApi.md#get_user_by_name) | **GET** /user/{username} | Get user by user name
[**login_user**](UserApi.md#login_user) | **GET** /user/login | Logs user into the system
[**logout_user**](UserApi.md#logout_user) | **GET** /user/logout | Logs out current logged in user session
[**update_user**](UserApi.md#update_user) | **PUT** /user/{username} | Updated user
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**create_user**](UserApi.md#create_user) | **POST** /user | Create user |
| [**create_users_with_array_input**](UserApi.md#create_users_with_array_input) | **POST** /user/createWithArray | Creates list of users with given input array |
| [**create_users_with_list_input**](UserApi.md#create_users_with_list_input) | **POST** /user/createWithList | Creates list of users with given input array |
| [**delete_user**](UserApi.md#delete_user) | **DELETE** /user/{username} | Delete user |
| [**get_user_by_name**](UserApi.md#get_user_by_name) | **GET** /user/{username} | Get user by user name |
| [**login_user**](UserApi.md#login_user) | **GET** /user/login | Logs user into the system |
| [**logout_user**](UserApi.md#logout_user) | **GET** /user/logout | Logs out current logged in user session |
| [**update_user**](UserApi.md#update_user) | **PUT** /user/{username} | Updated user |
## create_user
@@ -42,10 +41,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **user** | [**User**](User.md) | Created user object | |
### Return type
@@ -86,10 +84,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**Array<User>**](User.md)| List of user object |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **user** | [**Array<User>**](User.md) | List of user object | |
### Return type
@@ -130,10 +127,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**user** | [**Array<User>**](User.md)| List of user object |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **user** | [**Array<User>**](User.md) | List of user object | |
### Return type
@@ -176,10 +172,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be deleted |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **username** | **String** | The name that needs to be deleted | |
### Return type
@@ -221,10 +216,9 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be fetched. Use user1 for testing. |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **username** | **String** | The name that needs to be fetched. Use user1 for testing. | |
### Return type
@@ -267,11 +261,10 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| The user name for login |
**password** | **String**| The password for login in clear text |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **username** | **String** | The user name for login | |
| **password** | **String** | The password for login in clear text | |
### Return type
@@ -355,11 +348,10 @@ end
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted |
**user** | [**User**](User.md)| Updated user object |
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **username** | **String** | name that need to be deleted | |
| **user** | [**User**](User.md) | Updated user object | |
### Return type