class PetStore::FormatTest
- PetStore::FormatTest
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- OpenApi::Json
- OpenApi::Validatable
Defined in:
pet_store/models/format_test.crConstant Summary
-
MAX_FOR_DOUBLE =
Float64.new("123.4")
-
MAX_FOR_FLOAT =
Float32.new("987.6")
-
MAX_FOR_INT32 =
Int32.new("200")
-
MAX_FOR_INTEGER =
Int32.new("100")
-
MAX_FOR_NUMBER =
Float64.new("543.2")
-
MAX_LENGTH_FOR_PASSWORD =
64
-
MIN_FOR_DOUBLE =
Float64.new("67.8")
-
MIN_FOR_FLOAT =
Float32.new("54.3")
-
MIN_FOR_INT32 =
Int32.new("20")
-
MIN_FOR_INTEGER =
Int32.new("10")
-
MIN_FOR_NUMBER =
Float64.new("32.1")
-
MIN_LENGTH_FOR_PASSWORD =
10
-
PATTERN_FOR_PATTERN_WITH_DIGITS =
/^\d{10}$/
-
PATTERN_FOR_PATTERN_WITH_DIGITS_AND_DELIMITER =
/^image_\d{1,3}$/i
-
PATTERN_FOR_STRING =
/[a-z]/i
Constructors
- .new(pull : JSON::PullParser)
-
.new(*, number : Float64 | Nil = nil, byte : String | Nil = nil, date : Time | Nil = nil, password : String | Nil = nil, integer : Int32 | Nil = nil, int32 : Int32 | Nil = nil, int64 : Int64 | Nil = nil, float : Float32 | Nil = nil, double : Float64 | Nil = nil, string : String | Nil = nil, binary : ::File | Nil = nil, date_time : Time | Nil = nil, uuid : String | Nil = nil, pattern_with_digits : String | Nil = nil, pattern_with_digits_and_delimiter : String | Nil = nil)
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Summary
-
#==(other : self)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #binary : ::File | Nil
-
#binary=(new_value : ::File | Nil)
Custom attribute writer method checking allowed values (enum).
- #byte : String | Nil
-
#byte=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #date : Time | Nil
-
#date=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #date_time : Time | Nil
-
#date_time=(new_value : Time | Nil)
Custom attribute writer method checking allowed values (enum).
- #double : Float64 | Nil
-
#double=(new_value : Float64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #float : Float32 | Nil
-
#float=(new_value : Float32 | Nil)
Custom attribute writer method checking allowed values (enum).
-
#hash(hasher)
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes.
- #int32 : Int32 | Nil
-
#int32=(new_value : Int32 | Nil)
Custom attribute writer method checking allowed values (enum).
- #int64 : Int64 | Nil
-
#int64=(new_value : Int64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #integer : Int32 | Nil
-
#integer=(new_value : Int32 | Nil)
Custom attribute writer method checking allowed values (enum).
-
#list_invalid_properties : Array(String)
Show invalid properties with the reasons.
- #number : Float64 | Nil
-
#number=(new_value : Float64 | Nil)
Custom attribute writer method checking allowed values (enum).
- #password : String | Nil
-
#password=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #pattern_with_digits : String | Nil
-
#pattern_with_digits=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #pattern_with_digits_and_delimiter : String | Nil
-
#pattern_with_digits_and_delimiter=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #string : String | Nil
-
#string=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
- #uuid : String | Nil
-
#uuid=(new_value : String | Nil)
Custom attribute writer method checking allowed values (enum).
-
#valid? : Bool
Check to see if the all the properties in the model are valid @return true if the model is valid
Instance methods inherited from module OpenApi::Json
after_initialize
after_initialize,
eql?(o : self)
eql?,
to_hash : Hash(String, JSON::Any)
to_hash,
to_json_any : JSON::Any
to_json_any
Class methods inherited from module OpenApi::Json
build_from_hash(hash : Hash)
build_from_hash,
build_from_json_any(json_any : JSON::Any)
build_from_json_any
Instance methods inherited from module OpenApi::Validatable
list_invalid_properties : Array(String)
list_invalid_properties,
list_invalid_properties_for(key : String) : Array(String)
list_invalid_properties_for,
valid? : Bool
valid?,
validate : Nil
validate
Constructor Detail
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance Method Detail
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] binary Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] byte Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] date Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] date_time Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] double Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] float Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] int32 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] int64 Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] integer Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] number Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] password Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] pattern_with_digits Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] pattern_with_digits_and_delimiter Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] string Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] uuid Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid