Name Description Size 0
meta Validates the keys for a particular object This logic ensures: 1. the obj is type dict 2. That at a minimum the provided required_keys are present. Additionally, the logic checks for a set of optional_keys. With those two sets of keys, the logic will raise an error if there are extra keys in obj. :param obj: The object that will be checked. :param required_keys: Set of required keys that the obj should have. :param optional_keys: Set of optional keys that the obj should have. :return: `None` if obj does not have any extra keys. :raises ValueError: If there unexpected keys or missing required keys. 3166