Exception: JSONAPI::Exceptions::InvalidFieldFormat

Inherits:
Error
  • Object
show all
Defined in:
lib/jsonapi/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#errorsObject



151
152
153
154
155
156
# File 'lib/jsonapi/exceptions.rb', line 151

def errors
  [JSONAPI::Error.new(code: JSONAPI::INVALID_FIELD_FORMAT,
                      status: :bad_request,
                      title: 'Invalid field format',
                      detail: 'Fields must specify a type.')]
end