Method: OpenapiClient::Address#list_invalid_properties
- Defined in:
- lib/openapi_client/models/address.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/openapi_client/models/address.rb', line 111 def list_invalid_properties invalid_properties = Array.new if !@company.nil? && @company.to_s.length > 96 invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 96.') end if !@address1.nil? && @address1.to_s.length > 96 invalid_properties.push('invalid value for "address1", the character length must be smaller than or equal to 96.') end if !@address2.nil? && @address2.to_s.length > 96 invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 96.') end if !@city.nil? && @city.to_s.length > 96 invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 96.') end if !@region.nil? && @region.to_s.length > 96 invalid_properties.push('invalid value for "region", the character length must be smaller than or equal to 96.') end if !@postal_code.nil? && @postal_code.to_s.length > 24 invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 24.') end if !@country.nil? && @country.to_s.length > 32 invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 32.') end invalid_properties end |