Skip to content

Is there a way to ignore a property to be serialized if missing from schema? #294

@passuied

Description

@passuied

I'm trying to support easier schema evolution so that code with new properties can be deployed before the new schema is published.
out of the box, if you have an extra property to be serialized that doesn't exist in your schema, it will through an error cannot determine codec: "{field_name}".
Is there a way to make the serialization more lenient and just skip any property that is NOT defined in the schema?
In the Pydantic world, it would be equivalent to the extra: ignore property.

I couldn't see a way at first glance.
Please advise

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