Exception: JSONAPI::Exceptions::CountMismatch

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

Instance Method Summary collapse

Instance Method Details

#errorsObject



251
252
253
254
255
256
# File 'lib/jsonapi/exceptions.rb', line 251

def errors
  [JSONAPI::Error.new(code: JSONAPI::COUNT_MISMATCH,
                      status: :bad_request,
                      title: 'Count to key mismatch',
                      detail: 'The resource collection does not contain the same number of objects as the number of keys.')]
end