ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
55 stars 41 forks source link

Duplicate records in includes #157

Closed jsw800 closed 1 month ago

jsw800 commented 1 month ago

Describe the bug If a resource is included via multiple different "parent" resources in the same response, it will show up multiple times in the includes key of the response

To Reproduce See https://github.com/ash-project/ash_json_api/pull/156 for a test that replicates the issue

Expected behavior Each included resource should appear only once in the response

** Runtime (almost certainly irrelevant but here you go)

Additional context

zachdaniel commented 1 month ago

This has been fixed.