forked from loafle/openapi-generator-original
Ruby client nullable (#4391)
* Ruby Client: implementation of nullable * Ruby samples with nullable implementation * [Ruby] openapi_nullable as a Set and skipping attrs fix
This commit is contained in:
parent
9a1ff9bf05
commit
f0bcaaf45d
@ -87,7 +87,11 @@
|
|||||||
hash = {{^parent}}{}{{/parent}}{{#parent}}super{{/parent}}
|
hash = {{^parent}}{}{{/parent}}{{#parent}}super{{/parent}}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -51,6 +51,17 @@
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
{{#vars}}
|
||||||
|
{{#isNullable}}
|
||||||
|
:'{{{name}}}'{{#hasMore}},{{/hasMore}}
|
||||||
|
{{/isNullable}}
|
||||||
|
{{/vars}}
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
{{#anyOf}}
|
{{#anyOf}}
|
||||||
{{#-first}}
|
{{#-first}}
|
||||||
# List of class defined in anyOf (OpenAPI v3)
|
# List of class defined in anyOf (OpenAPI v3)
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -70,6 +70,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -275,7 +281,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# discriminator's property name in OpenAPI v3
|
# discriminator's property name in OpenAPI v3
|
||||||
def self.openapi_discriminator_name
|
def self.openapi_discriminator_name
|
||||||
:'class_name'
|
:'class_name'
|
||||||
@ -190,7 +196,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -187,7 +193,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -193,7 +199,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -51,6 +51,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -215,7 +221,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# List of class defined in allOf (OpenAPI v3)
|
# List of class defined in allOf (OpenAPI v3)
|
||||||
def self.openapi_all_of
|
def self.openapi_all_of
|
||||||
[
|
[
|
||||||
@ -181,7 +187,11 @@ module Petstore
|
|||||||
hash = super
|
hash = super
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -185,7 +191,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -31,6 +31,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -170,7 +176,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# List of class defined in allOf (OpenAPI v3)
|
# List of class defined in allOf (OpenAPI v3)
|
||||||
def self.openapi_all_of
|
def self.openapi_all_of
|
||||||
[
|
[
|
||||||
@ -181,7 +187,11 @@ module Petstore
|
|||||||
hash = super
|
hash = super
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -56,6 +56,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -214,7 +220,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -68,6 +68,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -280,7 +286,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -32,6 +32,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -180,7 +186,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -82,6 +82,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -496,7 +502,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -178,7 +184,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -64,6 +64,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -226,7 +232,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -189,7 +195,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -35,6 +35,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -179,7 +185,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -31,6 +31,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -170,7 +176,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -43,6 +43,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -202,7 +208,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -73,6 +73,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -251,7 +257,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -187,7 +193,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -73,6 +73,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -263,7 +269,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -178,7 +184,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -178,7 +184,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -46,6 +46,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -236,7 +242,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -50,6 +50,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -246,7 +252,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -59,6 +59,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -233,7 +239,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -142,6 +142,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -439,7 +445,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -70,6 +70,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -275,7 +281,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# discriminator's property name in OpenAPI v3
|
# discriminator's property name in OpenAPI v3
|
||||||
def self.openapi_discriminator_name
|
def self.openapi_discriminator_name
|
||||||
:'class_name'
|
:'class_name'
|
||||||
@ -190,7 +196,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -187,7 +193,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -193,7 +199,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -51,6 +51,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -215,7 +221,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# List of class defined in allOf (OpenAPI v3)
|
# List of class defined in allOf (OpenAPI v3)
|
||||||
def self.openapi_all_of
|
def self.openapi_all_of
|
||||||
[
|
[
|
||||||
@ -181,7 +187,11 @@ module Petstore
|
|||||||
hash = super
|
hash = super
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -185,7 +191,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -31,6 +31,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -170,7 +176,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# List of class defined in allOf (OpenAPI v3)
|
# List of class defined in allOf (OpenAPI v3)
|
||||||
def self.openapi_all_of
|
def self.openapi_all_of
|
||||||
[
|
[
|
||||||
@ -181,7 +187,11 @@ module Petstore
|
|||||||
hash = super
|
hash = super
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -56,6 +56,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -214,7 +220,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -68,6 +68,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -280,7 +286,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -32,6 +32,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -180,7 +186,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -82,6 +82,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -496,7 +502,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -178,7 +184,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -64,6 +64,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -226,7 +232,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -189,7 +195,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -35,6 +35,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -179,7 +185,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -31,6 +31,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -170,7 +176,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -43,6 +43,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -202,7 +208,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -73,6 +73,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -251,7 +257,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -187,7 +193,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -73,6 +73,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -263,7 +269,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -178,7 +184,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -178,7 +184,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -46,6 +46,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -236,7 +242,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -50,6 +50,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -246,7 +252,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -59,6 +59,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -233,7 +239,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -142,6 +142,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -439,7 +445,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -182,7 +188,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# discriminator's property name in OpenAPI v3
|
# discriminator's property name in OpenAPI v3
|
||||||
def self.openapi_discriminator_name
|
def self.openapi_discriminator_name
|
||||||
:'class_name'
|
:'class_name'
|
||||||
@ -190,7 +196,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -187,7 +193,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -171,7 +177,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -38,6 +38,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -193,7 +199,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -51,6 +51,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -215,7 +221,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# List of class defined in allOf (OpenAPI v3)
|
# List of class defined in allOf (OpenAPI v3)
|
||||||
def self.openapi_all_of
|
def self.openapi_all_of
|
||||||
[
|
[
|
||||||
@ -181,7 +187,11 @@ module Petstore
|
|||||||
hash = super
|
hash = super
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -30,6 +30,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -169,7 +175,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
@ -34,6 +34,12 @@ module Petstore
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# List of attributes with nullable: true
|
||||||
|
def self.openapi_nullable
|
||||||
|
Set.new([
|
||||||
|
])
|
||||||
|
end
|
||||||
|
|
||||||
# Initializes the object
|
# Initializes the object
|
||||||
# @param [Hash] attributes Model attributes in the form of hash
|
# @param [Hash] attributes Model attributes in the form of hash
|
||||||
def initialize(attributes = {})
|
def initialize(attributes = {})
|
||||||
@ -185,7 +191,11 @@ module Petstore
|
|||||||
hash = {}
|
hash = {}
|
||||||
self.class.attribute_map.each_pair do |attr, param|
|
self.class.attribute_map.each_pair do |attr, param|
|
||||||
value = self.send(attr)
|
value = self.send(attr)
|
||||||
next if value.nil?
|
if value.nil?
|
||||||
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
||||||
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
||||||
|
end
|
||||||
|
|
||||||
hash[param] = _to_hash(value)
|
hash[param] = _to_hash(value)
|
||||||
end
|
end
|
||||||
hash
|
hash
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user