-
Notifications
You must be signed in to change notification settings - Fork 195
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
Comments
I don't think the library supports that and the support is somehow dead. |
@raoufswe what library did you switch to? |
@explaura I used this library kitsu-core |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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",
}
The text was updated successfully, but these errors were encountered: