Skip to content

Dynamic.dict decoder needs more informative errors #740

Open
@sporto

Description

@sporto

When a value fails to decode when using dynamic.dict, we get an error that says values.

e.g.

Error(DecodeError(expected: "another type", found: "Object", path: ["values"]))

If you have dozens of values to decode, this doesn't give any information about which value failed.
CrowdHailer/oas#1

I would like to modify this decoder to return the name of the key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions