def METHOD_NAME(schema, key, _skip=False):
    if isinstance(schema, list):
        for v in schema:
            METHOD_NAME(v, key)
    elif isinstance(schema, dict):
        for k, v in schema.items():
            if k == key and not _skip:
                raise StopIteration
            rec_skip = k == "properties" and schema.get("type") == "object"
            METHOD_NAME(v, key, rec_skip)