-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
fields named "id" are skipped in nested objects #140
Comments
Parse-Swift/Sources/ParseSwift/Coding/ParseEncoder.swift Lines 75 to 82 in c0a3a45
|
Why skip fields inside a struct which isn't a ParseObject? Seems like it could store them without any issues, since they are just represented as json strings on the server, right? |
If you think you have a better solution, feel free to open a PR with your suggestion. |
Reopening this, will see if I can provide a fix by the end of the week |
Thanks, Corey! Discovering this the hard way was a huge pain. |
I looked further into this and attempting to provide a fix now will cause more harm than good. The As a workaround, you can do any of the following:
|
See #177 for fix |
New Issue Checklist
Issue Description
Fields named "id" are skipped in nested objects.
Steps to reproduce
Actual Outcome
Fields named "id" are ignored and don't make it to the server.
Expected Outcome
Fields named "id" (not in ParseObjects) should still be saved or an error should be reported so the user knows to rename the field.
Environment
Client
5.8.2
15.1 (15C65)
macOS
14.2.1 (23C71)
Server
4.5.0
Ubuntu
BackForApp
Database
MongoDB
3.6
BackForApp
The text was updated successfully, but these errors were encountered: