Exception: JSONAPI::Exceptions::InvalidFieldFormat

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



129
130
131
132
133
134
# File 'lib/jsonapi/exceptions.rb', line 129

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