jsonapi-parser icon indicating copy to clipboard operation
jsonapi-parser copied to clipboard

Support `included` in create/updates

Open ttrmw opened this issue 7 years ago • 1 comments

The resource parser currently ensure!s that data is the only top level key: https://github.com/jsonapi-rb/jsonapi-parser/blob/1ab3d3561f9f82a6f859cab8094fb5e4fa413255/lib/jsonapi/parser/resource.rb#L14

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.

ttrmw avatar Nov 06 '17 15:11 ttrmw

This has been on my radar for a while, but I'll wait until sideposting is fully spec'ed before changing the lib.

beauby avatar Jun 13 '18 14:06 beauby