-
Notifications
You must be signed in to change notification settings - Fork 81
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
resolveLinksArray returns array of NSNulls #329
Comments
One thing to add is the structure is like that: Does this SDK not support nested links at depth 2? |
Ok after digging into the code I think I've found I think this is something which should be added to Readme - I couldn't find any info on that and default behavior with |
Hey @pzmudzinski , Thanks you for the feedback and great that in the end you found the solution. I will make sure this is added to the documentation going forwards. I will also look into why does it return the array of nulls in case the depth level is not specified. I think i generally understood your use case and setup with arrays within arrays. Would you be able to share a simple working example of the code that would help me see the complete picture of your setup and help me in reproducing exactly the way you tried it? |
I had the exact same issues. The ...Interesting: If the key is representing an Asset value, everything works just fine. Is there a reason for that? Let's say I have:
Without specifying the |
@marius-se It took me like 5 hours to figure it out so appreciate your comment 😂 |
I hope I can save someone else's time: |
I've got entry with one-to-many array of some other entries. Trying to decode it like that:
I've registered both types of entries in
![image](https://user-images.githubusercontent.com/1887653/104318244-6bebfc80-54df-11eb-8e9d-23094f4dbc8a.png)
contentTypeClasses
, I've got the same code working for other entries but for some reason one specific type causes this issue (it's not even reaching constructor) - it shows correct number of entries but all of them areNSNull
without any error message or explanation what's going on:What could be causing that? How are we supposed to debug any decoding issues? Why it isn't giving any information what could be an issue?
In addition if I try to fetch one record of that type everything works:
The text was updated successfully, but these errors were encountered: