How to use the apispec.ext.marshmallow.common.resolve_schema_cls function in apispec

To help you get started, we’ve selected a few apispec 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 marshmallow-code / apispec / tests / test_ext_marshmallow.py View on Github external
def resolver(schema):
            schema_cls = common.resolve_schema_cls(schema)
            return schema_cls.__name__
github marshmallow-code / apispec / tests / test_ext_marshmallow.py View on Github external
def resolver(schema):
            schema_cls = common.resolve_schema_cls(schema)
            return schema_cls.__name__
github marshmallow-code / apispec / tests / test_ext_marshmallow.py View on Github external
def resolver(schema):
            schema_instance = common.resolve_schema_instance(schema)
            prefix = "Partial-" if schema_instance.partial else ""
            schema_cls = common.resolve_schema_cls(schema)
            name = prefix + schema_cls.__name__
            if name.endswith("Schema"):
                return name[:-6] or name
            return name
github maximdanilchenko / aiohttp-apispec / aiohttp_apispec / aiohttp_apispec.py View on Github external
def resolver(schema):
    schema_instance = common.resolve_schema_instance(schema)
    prefix = "Partial-" if schema_instance.partial else ""
    schema_cls = common.resolve_schema_cls(schema)
    name = prefix + schema_cls.__name__
    if name.endswith("Schema"):
        return name[:-6] or name
    return name