Method: Onfido::WorkflowRunShared#list_invalid_properties

Defined in:
lib/onfido/models/workflow_run_shared.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/onfido/models/workflow_run_shared.rb', line 129

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @applicant_id.nil?
    invalid_properties.push('invalid value for "applicant_id", applicant_id cannot be nil.')
  end

  if @workflow_id.nil?
    invalid_properties.push('invalid value for "workflow_id", workflow_id cannot be nil.')
  end

  if !@tags.nil? && @tags.length > 30
    invalid_properties.push('invalid value for "tags", number of items must be less than or equal to 30.')
  end

  if !@customer_user_id.nil? && @customer_user_id.to_s.length > 256
    invalid_properties.push('invalid value for "customer_user_id", the character length must be smaller than or equal to 256.')
  end

  invalid_properties
end