Closed untone-survive closed 5 years ago
Hi, that looks like a bug. Identifiers
should work just fine in arrays as not in arrays. I've made some changes in develop
branch and it should work now. Please have a look and let me know if on your side it works as well.
BTW, I believe the lib can work with resources that have parent
and children
interrelationships just fine. It's covered by tests.
@h8every1 ping
I haven't received any feedback from you on the fix for some time. Let me know if there are any issues remaining.
Fix released in v3.0.4
.
Sorry for the delay. Everything seems to be working OK now.
I have a resource that has many child resources of the same type (e.g. category that has many subcategories), to prevent recursion-related problems (we provide both
parent
andchildren
relationships) I pass only subcategories IDs and not the whole resource object inSchema
'sgetRelationships()
.I've tried to use array of
Identifier
s, but got errorwhich is frustrating. Now I create semi-fake resource objects, that contain only IDs to get identifier objects in json:
Is this the desired way?