validate_nested_state_dict#

validate_nested_state_dict(d)[source]#

Validate state as serialised to a dictionary tree by dataclasses_json.

See to_dict in dataclass_json.

Raises:

BadStateData – In the case we have sneaked something into the state that does not belong there.

Parameters:

d (dict | list | object) –