Throw error when dict contains fields not found in the dataclass
Is it possible to throw an error whenever fields not declared in the dataclass are present in the input being parsed? Right now it seems like extra fields are just ignored.
I've found that the metaclass config raise_on_unknown_json_key does exactly what I need. I've found it in the following test case:
https://github.com/rnag/dataclass-wizard/blob/d59bd79dd94effe90b00e667c6ed7539c7e98b43/tests/unit/test_dump.py#L36
Any ideas of why it's not documented or why it specifically mentions JSON?
It is documented here: https://dataclass-wizard.readthedocs.io/en/latest/common_use_cases/meta.html and is intended for use with the from_dict helper function according to those docs.