Parse-Swift icon indicating copy to clipboard operation
Parse-Swift copied to clipboard

ParseConfig throwing Codable errors when type `Object` exists in Config.

Open proj-sashido opened this issue 2 years ago • 1 comments
trafficstars

New Issue Checklist

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>? or Dictionary<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

proj-sashido avatar Feb 12 '23 08:02 proj-sashido

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.