Skip to content

Coqpit.save_json() writes an empty file even if it failed #39

Open
@georgettica

Description

@georgettica

if the dataclass has a missing field and it was not provided to, the json location will have an empty file there which will later cause a json loaded to crash on it.

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