schema.py 文件源码

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

项目:microcosm-flask 作者: globality-corp 项目源码 文件源码
def resolve_numeric_string_field(field):
    """
    Numeric fields should respect the `as_string` parameter.

    """
    if isinstance(field, fields.Decimal):
        return dict(
            type="string",
            format="decimal",
        )
    else:
        return dict(
            type="string",
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号