Exception: JSONAPI::Exceptions::InvalidFieldFormat

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



144
145
146
147
148
149
# File 'lib/jsonapi/exceptions.rb', line 144

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