{
"errors": [
{
"title": "You must add a [ReturnsResourceAttribute] to action methods.",
"detail": "Saule.JsonApiException: You must add a [ReturnsResourceAttribute] to action methods.",
"code": "Saule.JsonApiException",
"links": {
"about": "https://github.com/joukevandermaas/saule/wiki"
}
}
]
}
I just spent fair amount of time scratching my head why Saule doesn't respect my [ReturnsResource] attribute on Controller.
But it turns out, that problem is in completely different place.
Of course request body is wrong.
Error message is not only not helpful, but very misleading!
Shouldn't 400 or 406 be returned instead?
Request
Response
Status 500 Internal Server Error
I just spent fair amount of time scratching my head why Saule doesn't respect my
[ReturnsResource]
attribute on Controller.But it turns out, that problem is in completely different place. Of course request body is wrong.
Error message is not only not helpful, but very misleading! Shouldn't
400
or406
be returned instead?