jsonapi: support top-level error documents
Couldn’t find anything in the code that did this, sorry if I’m misreading stuff. I think the specs are describing something like:
{
errors: [
...
]
}
??
About this issue
- Original URL
- State: open
- Created 9 years ago
- Reactions: 2
- Comments: 32 (13 by maintainers)
Commits related to this issue
- Merge pull request #3 from msabramo/pr-99-make-nested-struct-ptr-work Make nested struct pointers work — committed to msabramo/jsonapi by mrowdy 6 years ago
Looks like @thedodd is close. See above.
You are correct, @genexp. According to the spec,
errors
must always be an array of error objects:I would say that, at a minimum, we should include the
title
field in the error, as well as thedetail
field. The spec describes pretty well what the difference between these two fields should be.@chr0n1x working on links, meta, and errors atm