Skip to content

Default SchemaField encoder does not encode values correctly #86

@TWRaven

Description

@TWRaven

Problem

The default JSONEncoder chosen in the SchemaField is the DjangoJSONEncoder. This implementation will always error when decoding the values in the model, as can be seen here -> the base class' default is called, which raises a TypeError

Other libraries (for example the unfold admin library) that interact with these objects can try to use this encoder and will fail.

Expected behaviour

Having the default JSONEncoder be able to correctly encode the object as JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions