Skip to content

Incorrect missing field name - seems to pick name of first null field, even if field is optional #178

@cmeeren

Description

@cmeeren

Consider this type:

type A = { A: int option; B: bool }

When deserializing this:

"{\"A\": null}"

It fails with this message:

Missing field for record type A: A

It should fail with this message:

Missing field for record type A: B

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