Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deserialize does not deserializer links inside relationships objects #238

Open
alksharm opened this issue Aug 17, 2020 · 3 comments
Open

Comments

@alksharm
Copy link

deserialize does not deserializer links inside relationships objects

Example payload to deserialize = {
links: {
prev: 'https://prevLink',
next: 'https://nextLink'
},
data: [
{
type: 'myType',
id: '1',
attributes: {
name: 'Type1',
accountGuid: 'acctguid',
},
links: {
self: 'https://selfLink'
},
relationships: {
myObj: {
links: {
related: {
href: 'http://somelink',
meta: {
count: 4
}
}
}
}
}
}
]
}

Output = {
accountGuid: "acctguid",
id: "1",
links:,
next: "https://nextLink",
prev: "https://prevLink",
name: "Type1",
}

@raoufswe
Copy link

raoufswe commented Sep 10, 2020

I don't think the library supports that and the support is somehow dead.
I faced this issue a while ago and had to switch to another library to overcome the issue.

@explaura
Copy link

I don't think the library supports that and the support is somehow dead.
I faced this issue a while ago and had to switch to another library to overcome the issue.

@raoufswe what library did you switch to?

@raoufswe
Copy link

@explaura I used this library kitsu-core
I hope that helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants