How to use the yamale.schema.util.get_expanded_path function in yamale

To help you get started, we’ve selected a few yamale examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github 23andMe / Yamale / yamale / schema / data.py View on Github external
def __delitem__(self, key, value):
        super(Data, self).__setitem__(key, value)
        path, key = util.get_expanded_path(self.dict, key)
        del util.reduce(getitem, path, self.dict)[key]
github 23andMe / Yamale / yamale / schema / data.py View on Github external
def __setitem__(self, key, value):
        super(Data, self).__setitem__(key, value)
        path, key = util.get_expanded_path(self.dict, key)
        util.reduce(getitem, path, self.dict)[key] = value