Skip to content

Inclusion of JSONAPI::Utils in a specific controller obfuscates errors #21

@averydev

Description

@averydev

Hi there,

Just had a hard time tracking down an issue with an update I was doing on an a record.
I included JSONAPI::Utils in my controller, and implemented it in my index method.

The update method was failing in jsonapi-resources because an attribute was included in the request that wasn't supposed to be there, so it was failing. However as long as JSONAPI::Utils was included, the error that came back was that the key was not included {"errors":[{"title":"A key is required","detail":"...

This was extremely confusing and sent me down a bunch of rabbit holes.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions