(api_name: str, method_name: str, method: Callable)
return schema
Create a full response JSON schema for the given RPC
Create a full response JSON schema for the given RPC
Create a full response JSON schema for the given RPC
def make_response_schema(api_name: str, method_name: str, method: Callable):
    """Create a full response JSON schema for the given RPC"""
    sig = inspect.signature(method)
    schema = return_type_to_schema(sig.return_annotation)
    schema["title"] = "RPC {}.{}() response".format(api_name, method_name)
    schema["$schema"] = SCHEMA_URI
    return schema
def make_response_schema ( api_name : str , method_name : str , method : Callable ) : sig = inspect . signature ( method ) schema = return_type_to_schema ( sig . return_annotation ) schema [ "title" ] = "RPC {}.{}() response" . format ( api_name , method_name ) schema [ "$schema" ] = SCHEMA_URI return schema