Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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