Method: OpenapiClient::Package#list_invalid_properties

Defined in:
lib/openapi_client/models/package.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/openapi_client/models/package.rb', line 116

def list_invalid_properties
  invalid_properties = Array.new
  if @weight.nil?
    invalid_properties.push('invalid value for "weight", weight cannot be nil.')
  end

  if !@external_package_id.nil? && @external_package_id.to_s.length < 1
    invalid_properties.push('invalid value for "external_package_id", the character length must be great than or equal to 1.')
  end

  invalid_properties
end