Skip to content

Skip invalid keys #390

@Tishka17

Description

@Tishka17

For some cases, like loading data from multiple sources we can simply ignore invalid keys.

That would be nice to have an option to specify that bahavior globally (or using Predicate)

Expected behabvior if unparable field found:

  • For dataclasses/pydantic models, default value will be used
  • For typeddict with total=False, the key will be skipped
  • For mappings the key will be skipped
  • For other cases it will raise an error anyway

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions