seek4science / seek

For finding, sharing and exchanging Data, Models, Simulations and Processes in Science.
http://www.seek4science.org
BSD 3-Clause "New" or "Revised" License
76 stars 52 forks source link

API should return valid JSON-API errors #346

Open stuzart opened 4 years ago

stuzart commented 4 years ago

the error responses returned from the api, are currently not valid against the JSON-API tests. There are some integration tests that are currently testing for this, but are skipped as a WIP

alaninmcr commented 2 years ago

When there is an error in the JSON, the API commonly just returns 422 (Unprocessable Entity) with no useful debugging information. For my recent work, I had to go and put debugging into the log of the controllers. That is not generally feasible