-
Notifications
You must be signed in to change notification settings - Fork 33
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
Missing top level data field during serialization? #41
Comments
@v-ken Thanks for using the library 😊 Are you able to provide me with a sample object of what you are trying to parse? Easier to help with examples 😉 |
@joshdholtz Thanks for the quick response. Looking at the current test case, the serialized dictionary has
So, it should be
instead of,
Not a huge issue as we can just wrap the dictionary in another |
@v-ken I personally did not write the serializer part of this library (somebody else kindly wrote it for me) so I'm not actually sure if it was intended or not 😇 but I think the intention of this was to only output the serialized object itself (leaving out the We probably could/should add a helper to add that let dict = JSONAPIResourceParser.dictionaryFor(object, wrapInData: true) Thoughts? |
@joshdholtz Looks good! Not urgent though, as manually wrapping it ourselves is really not that much of an issue. Just thought it might have been unintentional rather than intended. |
Hi, Thank for this library. Just not sure if I'm serializing correctly as I'm missing the top level data field as required by JSON API spec 1.0.
The text was updated successfully, but these errors were encountered: