Exception: JSONAPI::Exceptions::CountMismatch
- Defined in:
- lib/jsonapi/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#errors ⇒ Object
180 181 182 183 184 185 |
# File 'lib/jsonapi/exceptions.rb', line 180 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 |