jsona icon indicating copy to clipboard operation
jsona copied to clipboard

When serializing with includeNames, only the first element of array is included in the resulting body if elements don't have id

Open marcoherrerarendon opened this issue 3 years ago • 0 comments

Awesome job with this library!

As the title states, only the first element of the array is included when the elements don't have an id. I would expect all elements to be included.

According to the JSONAPI spec, included resources do not need to contain an id field. See here for more information.

I created a unit test that showcases the issue. Feel free to clone and run the test.

marcoherrerarendon avatar Sep 01 '22 18:09 marcoherrerarendon