Skip to content

Deserialization errors are near-useless for complicated objects #98

@vriesk

Description

@vriesk

When deserializing a complex object with multiple levels of nested sub-structures, the errors encountered upon deserialization are near useless, because they completely lack context.

The internal ErrorImpl can tell me what kind of issue was encountered, but not where. When trying to debug a large structure, this requires spending a lot of time staring on it and trying to figure out what could have possibly got mismatched.

Would there be some hope for providing error context during deserialization? Serialization is much less of a concern here, because it is rather unlikely to be triggered by wrong external input.

Note: it's not just serde_dynamo that suffers from this, and maybe this must be addressed on serde level, unsure here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions