Method: DocSpring::ErrorResponse#valid?

Defined in:
lib/docspring/models/error_response.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



117
118
119
120
121
122
123
124
# File 'lib/docspring/models/error_response.rb', line 117

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @status.nil?
  status_validator = EnumAttributeValidator.new('String', ["error"])
  return false unless status_validator.valid?(@status)
  return false if @error.nil?
  true
end