transform.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:singer-python 作者: singer-io 项目源码 文件源码
def resolve_schema_references(schema, refs=None):
    '''Resolves and replaces json-schema $refs with the appropriate dict.

    Recursively walks the given schema dict, converting every instance
    of $ref in a 'properties' structure with a resolved dict.

    This modifies the input schema and also returns it.

    Arguments:
        schema:
            the schema dict
        refs:
            a dict of <string, dict> which forms a store of referenced schemata

    Returns:
        schema
    '''
    refs = refs or {}
    return _resolve_schema_references(schema, RefResolver("", schema, store=refs))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号