Parse-Swift
Parse-Swift copied to clipboard
ParseConfig throwing Codable errors when type `Object` exists in Config.
trafficstars
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest versions of Parse Server and the Parse Swift SDK.
Issue Description
- On my ParseServer, in the Config, I have variables that are of type “Object”.
- I cannot create variables to represent these JSON objects (i.e.
Dictionary<String, Any>) into my subclassed ParseConfig class.
Steps to reproduce
- Create a subclass of ParseConfig
- Create any variable with type
Dictionary<String, Any>?orDictionary<String, AnyObject>?
Actual Outcome
- An error saying ParseConfig no longer conforms to Codable, and that I need to add stubs.
Expected Outcome
- No error
Environment
Client
- Parse Swift SDK version:
4.14.2 - Xcode version:
Version 14.2 (14C18) - Operating system (iOS, macOS, watchOS, etc.):
macOS (M2 Pro) - Operating system version:
Ventura 13.2 (22D49)
Server
- Parse Server version:
2.3.3 - Operating system:
Unknown - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
SashiDo / AWS
Database
- System (MongoDB or Postgres):
MongoDB - Database version:
Unknown - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Unknown
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.