Skip to content

Commit 1dab2e7

Browse files
committed
Update samples
./bin/openapi3/ruby-client-petstore.sh ./bin/ruby-client-petstore.sh
1 parent 6deb4c1 commit 1dab2e7

13 files changed

+14
-12
lines changed

samples/client/petstore/ruby/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ gemspec
55
group :development, :test do
66
gem 'rake', '~> 12.0.0'
77
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
89
end

samples/client/petstore/ruby/docs/AdditionalPropertiesClass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**map_string** | **Hash<String, String>** | | [optional]
77
**map_number** | **Hash<String, Float>** | | [optional]
88
**map_integer** | **Hash<String, Integer>** | | [optional]
9-
**map_boolean** | **Hash<String, BOOLEAN>** | | [optional]
9+
**map_boolean** | **Hash<String, Boolean>** | | [optional]
1010
**map_array_integer** | **Hash<String, Array<Integer>>** | | [optional]
1111
**map_array_anytype** | **Hash<String, Array<Object>>** | | [optional]
1212
**map_map_string** | **Hash<String, Hash<String, String>>** | | [optional]

samples/client/petstore/ruby/lib/petstore/models/additional_properties_any_type.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/client/petstore/ruby/lib/petstore/models/additional_properties_array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/client/petstore/ruby/lib/petstore/models/additional_properties_boolean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def self.openapi_types
5959
:'map_string' => :'Hash<String, String>',
6060
:'map_number' => :'Hash<String, Float>',
6161
:'map_integer' => :'Hash<String, Integer>',
62-
:'map_boolean' => :'Hash<String, BOOLEAN>',
62+
:'map_boolean' => :'Hash<String, Boolean>',
6363
:'map_array_integer' => :'Hash<String, Array<Integer>>',
6464
:'map_array_anytype' => :'Hash<String, Array<Object>>',
6565
:'map_map_string' => :'Hash<String, Hash<String, String>>',

samples/client/petstore/ruby/lib/petstore/models/additional_properties_integer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/client/petstore/ruby/lib/petstore/models/additional_properties_number.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/client/petstore/ruby/lib/petstore/models/additional_properties_object.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/client/petstore/ruby/lib/petstore/models/additional_properties_string.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _deserialize(type, value)
126126
value.to_i
127127
when :Float
128128
value.to_f
129-
when :BOOLEAN
129+
when :Boolean
130130
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
131131
true
132132
else

samples/openapi3/client/petstore/ruby/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ gemspec
55
group :development, :test do
66
gem 'rake', '~> 12.0.0'
77
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
89
end

samples/openapi3/client/petstore/ruby/docs/NullableClass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**integer_prop** | **Integer** | | [optional]
77
**number_prop** | **Float** | | [optional]
8-
**boolean_prop** | **BOOLEAN** | | [optional]
8+
**boolean_prop** | **Boolean** | | [optional]
99
**string_prop** | **String** | | [optional]
1010
**date_prop** | **Date** | | [optional]
1111
**datetime_prop** | **DateTime** | | [optional]

samples/openapi3/client/petstore/ruby/lib/petstore/models/nullable_class.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def self.openapi_types
6161
{
6262
:'integer_prop' => :'Integer',
6363
:'number_prop' => :'Float',
64-
:'boolean_prop' => :'BOOLEAN',
64+
:'boolean_prop' => :'Boolean',
6565
:'string_prop' => :'String',
6666
:'date_prop' => :'Date',
6767
:'datetime_prop' => :'DateTime',
@@ -237,7 +237,7 @@ def _deserialize(type, value)
237237
value.to_i
238238
when :Float
239239
value.to_f
240-
when :BOOLEAN
240+
when :Boolean
241241
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
242242
true
243243
else

0 commit comments

Comments
 (0)