but the spec does not require this. There also appears to be a bunch of discussion around sideposting and the use of included to define resources for sideposting, eg https://github.com/json-api/json-api/pull/1197, so I guess this will be required eventually.
The resource parser currently
ensure!
s thatdata
is the only top level key: https://github.com/jsonapi-rb/jsonapi-parser/blob/1ab3d3561f9f82a6f859cab8094fb5e4fa413255/lib/jsonapi/parser/resource.rb#L14but the spec does not require this. There also appears to be a bunch of discussion around sideposting and the use of
included
to define resources for sideposting, eg https://github.com/json-api/json-api/pull/1197, so I guess this will be required eventually.