It is possible to get the same resource twice in the included list if two different instances exist in the same object graph (e.g semantically the same object but not the same instance in memory).
It feels like a sensible fix would be to use the type & id to ensure only one representation of each object is included even if multiple instances exist in the object graph. I ran into this while fixing #20 and have implemented this fix in the pull request for #20
It is possible to get the same resource twice in the included list if two different instances exist in the same object graph (e.g semantically the same object but not the same instance in memory).
It feels like a sensible fix would be to use the type & id to ensure only one representation of each object is included even if multiple instances exist in the object graph. I ran into this while fixing #20 and have implemented this fix in the pull request for #20