Skip to content

Static reflection : consider generating an error on missing fields #2458

@lemire

Description

@lemire

Currently, when deserializing a type like...

struct Player {
  int x;
  int y;
};

from

{"x":1}

... we do not throw an error.

It seems that we should at least give an option to the user to throw an error, or maybe always throw an error,.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions