parse-community / Parse-SDK-Flutter

The Dart/Flutter SDK for Parse Platform
https://parseplatform.org
Apache License 2.0
575 stars 194 forks source link

Forbidden field names #1006

Open visign3d opened 3 months ago

visign3d commented 3 months ago

There are some forbidden field names , that cause errors, unexpected behavior. For example if i use 'className' in object data type set{"className","something"} the resulted return object wouldnt be a jsonObject as expected , rather a parse object, cousing cast errors. It would be good including the forbidden field names in docs.

parse-github-assistant[bot] commented 3 months ago

Thanks for opening this issue!

mtrezza commented 3 months ago

Are you referring to the SDK or to Parse Server? If SDK, how do other Parse client SDKs handle this? If Parse Server, it should reject an invalid / reserved field name. It does so with other invalid names, so this should be added to the internal list.