From ef51ae3c6dbd9c880d82ae11c94f405de2898e8c Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Thu, 19 Jan 2023 18:09:31 -0500 Subject: [PATCH] msggen: Enable SendCustomMsg --- contrib/msggen/msggen/utils/utils.py | 2 +- doc/schemas/sendcustommsg.request.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 doc/schemas/sendcustommsg.request.json diff --git a/contrib/msggen/msggen/utils/utils.py b/contrib/msggen/msggen/utils/utils.py index bb109ebc6860..6a29b7373521 100644 --- a/contrib/msggen/msggen/utils/utils.py +++ b/contrib/msggen/msggen/utils/utils.py @@ -93,7 +93,7 @@ def load_jsonrpc_service(schema_dir: str): "Ping", # "plugin", # "reserveinputs", - # "sendcustommsg", + "SendCustomMsg", # "sendinvoice", # "sendonionmessage", "SetChannel", diff --git a/doc/schemas/sendcustommsg.request.json b/doc/schemas/sendcustommsg.request.json new file mode 100644 index 000000000000..3a06534d4feb --- /dev/null +++ b/doc/schemas/sendcustommsg.request.json @@ -0,0 +1,18 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "node_id", + "msg" + ], + "added": "v0.10.1", + "additionalProperties": false, + "properties": { + "node_id": { + "type": "pubkey" + }, + "msg": { + "type": "hex" + } + } +}