You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out this library last night and it works really great! Thanks for the awesome work. Thought I'd share what I think might be a bug. I'm going to use a simplified example to demonstrate the issue I am having. So, here goes.
Given the JSONAPISerializer configuration below ...
The thing to note here is that I have an application related to a deployment and since I had ?include=application in my api-call, I correctly have the information of the related application in included:. Also note that the application information in included: has a relationship to repository but then we don't have information on that repository in included: (if I make the api-call have ?include=application,application.repository it's added).
You can see I have "repository_id": "1" and "repository": "1" where I expected application.repository not to be set (since it's not available in the includes). If it can't resolve the relationship to the object then I expect to only have "repository_id": "1". When I make the api-call with ?include=application,application.repository then the application.repository is set to an object with the repository information as I expected ... so that's not the scenario with the problem.
The text was updated successfully, but these errors were encountered:
I was trying out this library last night and it works really great! Thanks for the awesome work. Thought I'd share what I think might be a bug. I'm going to use a simplified example to demonstrate the issue I am having. So, here goes.
Given the
JSONAPISerializer
configuration below ...I tried to deserialize the below response ...
The thing to note here is that I have an
application
related to adeployment
and since I had?include=application
in my api-call, I correctly have the information of the relatedapplication
inincluded:
. Also note that theapplication
information inincluded:
has a relationship torepository
but then we don't have information on thatrepository
inincluded:
(if I make the api-call have?include=application,application.repository
it's added).Anyway, when I try to deserialize, I get this ...
Instead of this ...
You can see I have
"repository_id": "1"
and"repository": "1"
where I expectedapplication.repository
not to be set (since it's not available in theincludes
). If it can't resolve the relationship to the object then I expect to only have"repository_id": "1"
. When I make the api-call with?include=application,application.repository
then theapplication.repository
is set to an object with therepository
information as I expected ... so that's not the scenario with the problem.The text was updated successfully, but these errors were encountered: