Skip to content

Subclasses not correctly re-cast after roundtrip json serialization #34

@sneakers-the-rat

Description

@sneakers-the-rat

If a model annotation specifies some parent class, but a subclass is given to the model, when roundtripping the model to and from json, the data is cast back into the parent type since that's what's on the model. need an additional annotation in the dumped json to indicate the dtype class to cast back into. marking as an xfail in the tests for now

revealed in: #31

want to merge that before trying to fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions