@ft.lru_cache(maxsize=None)
def build_validation_schema(self, signature: inspect.Signature) -> Dict[(str, Any)]:
    '\n        Builds pydantic model based validation schema from method signature.\n\n        :param signature: method signature to build schema for\n        :returns: validation schema\n        '
    field_definitions = {}
    for param in signature.parameters.values():
        if (param.kind is inspect.Parameter.VAR_KEYWORD):
            field_definitions[param.name] = ((Optional[Dict[(str, param.annotation)]] if (param.annotation is not inspect.Parameter.empty) else Any), (param.default if (param.default is not inspect.Parameter.empty) else None))
        elif (param.kind is inspect.Parameter.VAR_POSITIONAL):
            field_definitions[param.name] = ((Optional[List[param.annotation]] if (param.annotation is not inspect.Parameter.empty) else Any), (param.default if (param.default is not inspect.Parameter.empty) else None))
        else:
            field_definitions[param.name] = ((param.annotation if (param.annotation is not inspect.Parameter.empty) else Any), (param.default if (param.default is not inspect.Parameter.empty) else ...))
    return field_definitions
Builds pydantic model based validation schema from method signature.

:param signature: method signature to build schema for
:returns: validation schema
@ft.lru_cache(maxsize=None)
def build_validation_schema(self, signature: inspect.Signature) -> Dict[(str, Any)]:
    '\n        Builds pydantic model based validation schema from method signature.\n\n        :param signature: method signature to build schema for\n        :returns: validation schema\n        '
    field_definitions = {}
    for param in signature.parameters.values():
        if (param.kind is inspect.Parameter.VAR_KEYWORD):
            field_definitions[param.name] = ((Optional[Dict[(str, param.annotation)]] if (param.annotation is not inspect.Parameter.empty) else Any), (param.default if (param.default is not inspect.Parameter.empty) else None))
        elif (param.kind is inspect.Parameter.VAR_POSITIONAL):
            field_definitions[param.name] = ((Optional[List[param.annotation]] if (param.annotation is not inspect.Parameter.empty) else Any), (param.default if (param.default is not inspect.Parameter.empty) else None))
        else:
            field_definitions[param.name] = ((param.annotation if (param.annotation is not inspect.Parameter.empty) else Any), (param.default if (param.default is not inspect.Parameter.empty) else ...))
    return field_definitions