def follow_path(schema_root, path):
    """ Follow path from schema_root to get a specific schema. """
    schema = schema_root

    for leaf in path:
        schema = getattr(schema, leaf)

    return schema