jsonapi icon indicating copy to clipboard operation
jsonapi copied to clipboard

Resource Object Uniqueness is Not Enforced

Open DQSevilla opened this issue 2 years ago • 0 comments

Describe the bug The uniqueness of resource objects (using type+id pairs) is not being enforced by Marshal or Unmarshal

Expected behavior An error should be produced whenever two resource objects or resource linkages are referenced in a document, which have the same type+id pair.

Links https://go.dev/play/p/UoFxKltVVI4

Additional context N/A

DQSevilla avatar May 04 '23 19:05 DQSevilla