Skip to content

Better error logging for Invalid Struct #237

@dblythy

Description

@dblythy

New Feature / Enhancement Checklist

Current Limitation

At the moment, if you define a struct which doesn't match your server payload, you get no meaningful errors that help you isolate the problem.

Feature / Enhancement Description

Add a .invalidStruct error with information as to where the struct doesn't match the server payload

Example Use Case

Current response:

"Error decoding parse-server response: Optional(<NSHTTPURLResponse: 0x6000019d1100> { URL: http://localhost:1337/1/classes/GameScore } {

Better response:

"Invalid struct: No value associated with key CodingKeys(stringValue: "score", intValue: nil) ("score")."

Alternatives / Workarounds

3rd Party References

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions