From b327bd30c32c034a8350460066b9e7354bfa4ba1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 30 Oct 2024 09:38:42 +1030 Subject: [PATCH] doc: fix all JSON schemas to enforce no additional properties. Without this, we have hardly any enforcement. This is why the schema mistake fixed in the previous patches weren't spotted immediately. The hard work was done by: ``` $ for f in lightning-*.json; do grep -v '^ "additionalProperties": false,' $f | bagto $f; done $ for f in lightning-*.json; do sed 's/"properties": {/"additionalProperties": false, "properties": {/' $f | bagto $f; done $ make fmt-schemas ``` Then checking where 'additionalProperties: true' had been turned to false (we deliberately use it in some places where there are if statements in the schema, or occasionally where there can be arbitrary fields). [Including doc/rpc-schema-draft.json update by Shahana] Signed-off-by: Rusty Russell --- contrib/msggen/msggen/schema.json | 519 +++++++++++++----- doc/rpc-schema-draft.json | 6 + doc/schemas/lightning-addgossip.json | 3 +- doc/schemas/lightning-addpsbtoutput.json | 3 +- doc/schemas/lightning-askrene-age.json | 3 +- .../lightning-askrene-create-channel.json | 3 +- .../lightning-askrene-create-layer.json | 6 +- .../lightning-askrene-disable-node.json | 3 +- .../lightning-askrene-inform-channel.json | 4 +- doc/schemas/lightning-askrene-listlayers.json | 6 +- .../lightning-askrene-listreservations.json | 5 +- .../lightning-askrene-remove-layer.json | 3 +- doc/schemas/lightning-askrene-reserve.json | 5 +- doc/schemas/lightning-askrene-unreserve.json | 5 +- .../lightning-askrene-update-channel.json | 3 +- doc/schemas/lightning-autoclean-once.json | 3 +- doc/schemas/lightning-autoclean-status.json | 9 +- doc/schemas/lightning-batching.json | 3 +- doc/schemas/lightning-bkpr-channelsapy.json | 3 +- doc/schemas/lightning-bkpr-dumpincomecsv.json | 3 +- doc/schemas/lightning-bkpr-inspect.json | 3 +- .../lightning-bkpr-listaccountevents.json | 18 +- doc/schemas/lightning-bkpr-listbalances.json | 7 +- doc/schemas/lightning-bkpr-listincome.json | 3 +- doc/schemas/lightning-blacklistrune.json | 3 +- doc/schemas/lightning-check.json | 3 +- doc/schemas/lightning-checkmessage.json | 3 +- doc/schemas/lightning-checkrune.json | 3 +- doc/schemas/lightning-close.json | 4 +- doc/schemas/lightning-commando-blacklist.json | 3 +- doc/schemas/lightning-commando-listrunes.json | 3 +- doc/schemas/lightning-commando-rune.json | 3 +- doc/schemas/lightning-commando.json | 3 +- doc/schemas/lightning-connect.json | 5 +- doc/schemas/lightning-createinvoice.json | 3 +- doc/schemas/lightning-createonion.json | 3 +- doc/schemas/lightning-createrune.json | 3 +- doc/schemas/lightning-datastore.json | 3 +- doc/schemas/lightning-datastoreusage.json | 3 +- doc/schemas/lightning-decode.json | 14 +- doc/schemas/lightning-decodepay.json | 3 +- doc/schemas/lightning-deldatastore.json | 3 +- doc/schemas/lightning-delforward.json | 3 +- doc/schemas/lightning-delinvoice.json | 4 +- doc/schemas/lightning-delpay.json | 3 +- doc/schemas/lightning-deprecations.json | 3 +- doc/schemas/lightning-dev-forget-channel.json | 3 +- .../lightning-disableinvoicerequest.json | 3 +- doc/schemas/lightning-disableoffer.json | 3 +- doc/schemas/lightning-disconnect.json | 3 +- doc/schemas/lightning-emergencyrecover.json | 3 +- doc/schemas/lightning-enableoffer.json | 3 +- doc/schemas/lightning-feerates.json | 3 +- doc/schemas/lightning-fetchinvoice.json | 3 +- doc/schemas/lightning-fundchannel.json | 3 +- doc/schemas/lightning-fundchannel_cancel.json | 3 +- .../lightning-fundchannel_complete.json | 3 +- doc/schemas/lightning-fundchannel_start.json | 3 +- doc/schemas/lightning-funderupdate.json | 3 +- doc/schemas/lightning-fundpsbt.json | 3 +- .../lightning-getemergencyrecoverdata.json | 3 +- doc/schemas/lightning-getinfo.json | 7 +- doc/schemas/lightning-getlog.json | 3 +- doc/schemas/lightning-getroute.json | 3 +- doc/schemas/lightning-getroutes.json | 3 +- doc/schemas/lightning-help.json | 3 +- doc/schemas/lightning-invoice.json | 3 +- doc/schemas/lightning-invoicerequest.json | 3 +- doc/schemas/lightning-keysend.json | 3 +- doc/schemas/lightning-listchannels.json | 3 +- doc/schemas/lightning-listclosedchannels.json | 4 +- doc/schemas/lightning-listconfigs.json | 3 +- doc/schemas/lightning-listdatastore.json | 3 +- doc/schemas/lightning-listforwards.json | 5 +- doc/schemas/lightning-listfunds.json | 7 +- doc/schemas/lightning-listhtlcs.json | 3 +- .../lightning-listinvoicerequests.json | 3 +- doc/schemas/lightning-listinvoices.json | 4 +- doc/schemas/lightning-listnodes.json | 4 +- doc/schemas/lightning-listoffers.json | 3 +- doc/schemas/lightning-listpays.json | 5 +- doc/schemas/lightning-listpeerchannels.json | 8 +- doc/schemas/lightning-listpeers.json | 6 +- doc/schemas/lightning-listsendpays.json | 6 +- doc/schemas/lightning-listsqlschemas.json | 3 +- doc/schemas/lightning-listtransactions.json | 3 +- doc/schemas/lightning-makesecret.json | 3 +- doc/schemas/lightning-multifundchannel.json | 3 +- doc/schemas/lightning-multiwithdraw.json | 3 +- doc/schemas/lightning-newaddr.json | 3 +- doc/schemas/lightning-notifications.json | 3 +- doc/schemas/lightning-offer.json | 3 +- doc/schemas/lightning-openchannel_abort.json | 3 +- doc/schemas/lightning-openchannel_bump.json | 3 +- doc/schemas/lightning-openchannel_init.json | 3 +- doc/schemas/lightning-openchannel_signed.json | 3 +- doc/schemas/lightning-openchannel_update.json | 4 +- doc/schemas/lightning-parsefeerate.json | 3 +- doc/schemas/lightning-pay.json | 3 +- doc/schemas/lightning-ping.json | 3 +- doc/schemas/lightning-plugin.json | 4 + doc/schemas/lightning-preapproveinvoice.json | 3 +- doc/schemas/lightning-preapprovekeysend.json | 3 +- doc/schemas/lightning-reckless.json | 3 +- doc/schemas/lightning-recover.json | 3 +- doc/schemas/lightning-recoverchannel.json | 3 +- doc/schemas/lightning-renepay.json | 3 +- doc/schemas/lightning-renepaystatus.json | 3 +- doc/schemas/lightning-reserveinputs.json | 3 +- doc/schemas/lightning-sendcustommsg.json | 3 +- doc/schemas/lightning-sendinvoice.json | 4 +- doc/schemas/lightning-sendonion.json | 6 +- doc/schemas/lightning-sendpay.json | 6 +- doc/schemas/lightning-sendpsbt.json | 3 +- doc/schemas/lightning-setchannel.json | 3 +- doc/schemas/lightning-setconfig.json | 3 +- doc/schemas/lightning-setpsbtversion.json | 3 +- doc/schemas/lightning-showrunes.json | 3 +- doc/schemas/lightning-signinvoice.json | 3 +- doc/schemas/lightning-signmessage.json | 3 +- doc/schemas/lightning-signpsbt.json | 3 +- doc/schemas/lightning-splice_init.json | 3 +- doc/schemas/lightning-splice_signed.json | 3 +- doc/schemas/lightning-splice_update.json | 3 +- doc/schemas/lightning-sql-template.json | 3 +- doc/schemas/lightning-staticbackup.json | 3 +- doc/schemas/lightning-stop.json | 3 +- doc/schemas/lightning-txdiscard.json | 3 +- doc/schemas/lightning-txprepare.json | 3 +- doc/schemas/lightning-txsend.json | 3 +- doc/schemas/lightning-unreserveinputs.json | 4 +- doc/schemas/lightning-upgradewallet.json | 3 +- doc/schemas/lightning-utxopsbt.json | 3 +- doc/schemas/lightning-wait.json | 3 +- doc/schemas/lightning-waitanyinvoice.json | 4 +- doc/schemas/lightning-waitblockheight.json | 3 +- doc/schemas/lightning-waitinvoice.json | 4 +- doc/schemas/lightning-waitsendpay.json | 4 +- doc/schemas/lightning-withdraw.json | 3 +- 139 files changed, 730 insertions(+), 298 deletions(-) diff --git a/contrib/msggen/msggen/schema.json b/contrib/msggen/msggen/schema.json index 2fc5d993e..1d2cc7ec6 100644 --- a/contrib/msggen/msggen/schema.json +++ b/contrib/msggen/msggen/schema.json @@ -3,7 +3,6 @@ "lightning-addgossip.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "addgossip", "title": "Command for injecting a gossip message (low-level)", "description": [ @@ -17,6 +16,7 @@ "required": [ "message" ], + "additionalProperties": false, "properties": { "message": { "type": "hex", @@ -27,6 +27,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "author": [ @@ -64,7 +65,6 @@ "lightning-addpsbtoutput.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.11", "rpc": "addpsbtoutput", "title": "Command to populate PSBT outputs from the wallet", @@ -77,6 +77,7 @@ "required": [ "satoshi" ], + "additionalProperties": false, "properties": { "satoshi": { "type": "sat", @@ -110,6 +111,7 @@ "estimated_added_weight", "outnum" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -196,7 +198,6 @@ "lightning-askrene-age.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-age", "title": "Command for expiring information in a layer (EXPERIMENTAL)", "description": [ @@ -209,6 +210,7 @@ "layer", "cutoff" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -229,6 +231,7 @@ "layer", "num_removed" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -259,7 +262,6 @@ "lightning-askrene-create-channel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-create-channel", "title": "Command to add a channel to layer (EXPERIMENTAL)", "description": [ @@ -275,6 +277,7 @@ "short_channel_id", "capacity_msat" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -311,6 +314,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ @@ -331,7 +335,6 @@ "lightning-askrene-create-layer.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-create-layer", "title": "Command to create a new layer (EXPERIMENTAL)", "description": [ @@ -343,6 +346,7 @@ "required": [ "layer" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -356,6 +360,7 @@ "required": [ "layers" ], + "additionalProperties": false, "properties": { "layers": { "type": "array", @@ -404,6 +409,7 @@ "short_channel_id", "capacity_msat" ], + "additionalProperties": false, "properties": { "source": { "type": "pubkey", @@ -439,6 +445,7 @@ "required": [ "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "htlc_minimum_msat": { "type": "msat", @@ -481,6 +488,7 @@ "short_channel_id", "direction" ], + "additionalProperties": false, "properties": { "short_channel_id": { "type": "short_channel_id", @@ -532,7 +540,6 @@ "lightning-askrene-disable-node.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-disable-node", "title": "Command to disable all channels to/from a node in a layer (EXPERIMENTAL)", "description": [ @@ -545,6 +552,7 @@ "layer", "node" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -562,6 +570,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ @@ -581,7 +590,6 @@ "lightning-askrene-inform-channel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-inform-channel", "title": "Command to add channel capacity restrictions to layer (EXPERIMENTAL)", "description": [ @@ -596,6 +604,7 @@ "amount_msat", "inform" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -632,6 +641,7 @@ "required": [ "constraints" ], + "additionalProperties": false, "properties": { "constraints": { "type": "array", @@ -642,6 +652,7 @@ "short_channel_id_dir", "timestamp" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", @@ -695,7 +706,6 @@ "lightning-askrene-listlayers.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-listlayers", "title": "Command to display information about layers (EXPERIMENTAL)", "description": [ @@ -705,6 +715,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -718,6 +729,7 @@ "required": [ "layers" ], + "additionalProperties": false, "properties": { "layers": { "type": "array", @@ -766,6 +778,7 @@ "short_channel_id", "capacity_msat" ], + "additionalProperties": false, "properties": { "source": { "type": "pubkey", @@ -801,6 +814,7 @@ "required": [ "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", @@ -854,6 +868,7 @@ "required": [ "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", @@ -904,7 +919,6 @@ "lightning-askrene-listreservations.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-listreservations", "title": "Command to display information about reservations (EXPERIMENTAL)", "description": [ @@ -914,24 +928,26 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "reservations" ], + "additionalProperties": false, "properties": { "reservations": { "type": "array", "items": { "type": "object", - "additionalProperties": false, "required": [ "short_channel_id_dir", "amount_msat", "age_in_seconds", "command_id" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", @@ -976,7 +992,6 @@ "lightning-askrene-remove-layer.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-remove-layer", "title": "Command to destroy a layer (EXPERIMENTAL)", "description": [ @@ -988,6 +1003,7 @@ "required": [ "layer" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -999,6 +1015,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ @@ -1015,7 +1032,6 @@ "lightning-askrene-reserve.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-reserve", "title": "Command for informing askrene that you are trying a path (EXPERIMENTAL)", "description": [ @@ -1029,12 +1045,13 @@ "required": [ "path" ], + "additionalProperties": false, "properties": { "path": { "type": "array", "items": { "type": "object", - "additionalProperties": true, + "additionalProperties": false, "required": [ "short_channel_id_dir", "amount_msat" @@ -1059,6 +1076,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ @@ -1076,7 +1094,6 @@ "lightning-askrene-unreserve.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-unreserve", "title": "Command for informing askrene that you are no longer trying a path (EXPERIMENTAL)", "description": [ @@ -1090,12 +1107,13 @@ "required": [ "path" ], + "additionalProperties": false, "properties": { "path": { "type": "array", "items": { "type": "object", - "additionalProperties": true, + "additionalProperties": false, "required": [ "short_channel_id_dir", "amount_msat" @@ -1120,6 +1138,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ @@ -1137,7 +1156,6 @@ "lightning-askrene-update-channel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-update-channel", "title": "Command to manipulate channel in a layer (EXPERIMENTAL)", "description": [ @@ -1150,6 +1168,7 @@ "layer", "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -1203,6 +1222,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ @@ -1219,7 +1239,6 @@ "lightning-autoclean-once.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "autoclean-once", "title": "A single deletion of old invoices/payments/forwards", "description": [ @@ -1230,6 +1249,7 @@ "subsystem", "age" ], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -1263,6 +1283,7 @@ "required": [ "autoclean" ], + "additionalProperties": false, "properties": { "autoclean": { "type": "object", @@ -1456,7 +1477,6 @@ "lightning-autoclean-status.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "autoclean-status", "title": "Examine auto-delete of old invoices/payments/forwards", "description": [ @@ -1464,6 +1484,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -1491,6 +1512,7 @@ "required": [ "autoclean" ], + "additionalProperties": false, "properties": { "autoclean": { "type": "object", @@ -1518,6 +1540,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -1579,6 +1602,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -1640,6 +1664,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -1701,6 +1726,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -1762,6 +1788,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -1823,6 +1850,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -1941,7 +1969,6 @@ "lightning-batching.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "batching", "title": "Command to allow database batching.", "description": [ @@ -1951,6 +1978,7 @@ "required": [ "enable" ], + "additionalProperties": false, "properties": { "enable": { "type": "boolean", @@ -1962,6 +1990,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "errors": [ @@ -1991,7 +2020,6 @@ "lightning-bkpr-channelsapy.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-channelsapy", "title": "Command to list stats on channel earnings", "description": [ @@ -1999,6 +2027,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "start_time": { "type": "u64", @@ -2020,6 +2049,7 @@ "required": [ "channels_apy" ], + "additionalProperties": false, "properties": { "channels_apy": { "type": "array", @@ -2296,7 +2326,6 @@ "lightning-bkpr-dumpincomecsv.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-dumpincomecsv", "title": "Command to emit a CSV of income events", "description": [ @@ -2306,6 +2335,7 @@ "required": [ "csv_format" ], + "additionalProperties": false, "properties": { "csv_format": { "type": "string", @@ -2347,6 +2377,7 @@ "csv_file", "csv_format" ], + "additionalProperties": false, "properties": { "csv_file": { "type": "string", @@ -2401,7 +2432,6 @@ "lightning-bkpr-inspect.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-inspect", "title": "Command to show onchain footprint of a channel", "description": [ @@ -2411,6 +2441,7 @@ "required": [ "account" ], + "additionalProperties": false, "properties": { "account": { "type": "string", @@ -2424,6 +2455,7 @@ "required": [ "txs" ], + "additionalProperties": false, "properties": { "txs": { "type": "array", @@ -2667,7 +2699,6 @@ "lightning-bkpr-listaccountevents.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-listaccountevents", "title": "Command for listing recorded bookkeeping events", "description": [ @@ -2683,6 +2714,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "account": { "type": "string", @@ -2703,6 +2735,7 @@ "required": [ "events" ], + "additionalProperties": false, "properties": { "events": { "type": "array", @@ -2770,6 +2803,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -2780,6 +2814,7 @@ } }, "then": { + "additionalProperties": false, "properties": { "account": {}, "type": {}, @@ -2828,12 +2863,12 @@ "required": [ "outpoint", "blockheight" - ], - "additionalProperties": false + ] } }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -2844,6 +2879,7 @@ } }, "then": { + "additionalProperties": false, "properties": { "account": {}, "type": {}, @@ -2862,12 +2898,12 @@ }, "required": [ "txid" - ], - "additionalProperties": false + ] } }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -2878,6 +2914,7 @@ } }, "then": { + "additionalProperties": false, "properties": { "account": {}, "type": {}, @@ -2911,8 +2948,7 @@ "Counter for multi-part payments." ] } - }, - "additionalProperties": false + } } } ] @@ -3506,7 +3542,6 @@ "lightning-bkpr-listbalances.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-listbalances", "title": "Command for listing current channel + wallet balances", "description": [ @@ -3516,12 +3551,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "accounts" ], + "additionalProperties": false, "properties": { "accounts": { "type": "array", @@ -3617,11 +3654,11 @@ } }, "else": { + "additionalProperties": false, "properties": { "account": {}, "balances": {} - }, - "additionalProperties": false + } } } } @@ -3719,7 +3756,6 @@ "lightning-bkpr-listincome.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "pre-v0.10.1", "rpc": "bkpr-listincome", "title": "Command for listing all income impacting events", @@ -3728,6 +3764,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "consolidate_fees": { "type": "boolean", @@ -3756,6 +3793,7 @@ "required": [ "income_events" ], + "additionalProperties": false, "properties": { "income_events": { "type": "array", @@ -4197,7 +4235,6 @@ "lightning-blacklistrune.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "blacklistrune", "title": "Command to prevent a rune from working", @@ -4210,6 +4247,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "start": { "type": "u64", @@ -4234,6 +4272,7 @@ "required": [ "blacklist" ], + "additionalProperties": false, "properties": { "blacklist": { "type": "array", @@ -4334,7 +4373,6 @@ "lightning-check.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "check", "title": "Command for verifying parameters", "description": [ @@ -4348,6 +4386,7 @@ "required": [ "command_to_check" ], + "additionalProperties": true, "properties": { "command_to_check": { "type": "string", @@ -4358,6 +4397,7 @@ } }, "response": { + "additionalProperties": false, "properties": { "command_to_check": { "type": "string", @@ -4436,7 +4476,6 @@ "lightning-checkmessage.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "checkmessage", "title": "Command to check if a signature is from a node", "description": [ @@ -4449,6 +4488,7 @@ "message", "zbase" ], + "additionalProperties": false, "properties": { "message": { "type": "string", @@ -4475,6 +4515,7 @@ "verified", "pubkey" ], + "additionalProperties": false, "properties": { "verified": { "type": "boolean", @@ -4543,7 +4584,6 @@ "lightning-checkrune.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "checkrune", "title": "Command to Validate Rune", @@ -4558,6 +4598,7 @@ "required": [ "rune" ], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -4599,6 +4640,7 @@ "required": [ "valid" ], + "additionalProperties": false, "properties": { "valid": { "type": "boolean", @@ -4663,7 +4705,6 @@ "lightning-close.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "close", "title": "Command for closing channels with direct peers", "description": [ @@ -4675,6 +4716,7 @@ "required": [ "id" ], + "additionalProperties": true, "properties": { "id": { "type": "string", @@ -4737,6 +4779,7 @@ "required": [ "type" ], + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -4753,6 +4796,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -4852,7 +4896,6 @@ "lightning-commando-blacklist.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "deprecated": [ "v23.08", @@ -4867,6 +4910,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "start": { "type": "u64", @@ -4891,6 +4935,7 @@ "required": [ "blacklist" ], + "additionalProperties": false, "properties": { "blacklist": { "type": "array", @@ -4972,7 +5017,6 @@ "lightning-commando-listrunes.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "deprecated": [ "v23.08", @@ -4987,6 +5031,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -5000,6 +5045,7 @@ "required": [ "runes" ], + "additionalProperties": false, "properties": { "runes": { "type": "array", @@ -5378,7 +5424,6 @@ "lightning-commando-rune.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "deprecated": [ "v23.08", "v25.02" @@ -5390,6 +5435,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -5441,6 +5487,7 @@ "rune", "unique_id" ], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -5748,7 +5795,6 @@ "lightning-commando.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "commando", "title": "Command to Send a Command to a Remote Peer", "description": [ @@ -5759,6 +5805,7 @@ "peer_id", "method" ], + "additionalProperties": false, "properties": { "peer_id": { "type": "pubkey", @@ -5804,6 +5851,7 @@ }, "response": { "required": [], + "additionalProperties": true, "properties": {}, "pre_return_value_notes": [ "On success, the return depends on the *method* invoked." @@ -5928,7 +5976,6 @@ "lightning-connect.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "connect", "title": "Command for connecting to another lightning node", "description": [ @@ -5942,6 +5989,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "string", @@ -5974,6 +6022,7 @@ "direction", "address" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -6024,6 +6073,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -6051,6 +6101,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -6158,7 +6209,6 @@ "lightning-createinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "createinvoice", "title": "Low-level invoice creation", "description": [ @@ -6170,6 +6220,7 @@ "label", "preimage" ], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -6207,6 +6258,7 @@ "description", "expires_at" ], + "additionalProperties": false, "properties": { "label": { "type": "string", @@ -6388,7 +6440,6 @@ "lightning-createonion.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "createonion", "title": "Low-level command to create a custom onion", "description": [ @@ -6399,6 +6450,7 @@ "hops", "assocdata" ], + "additionalProperties": false, "properties": { "hops": { "type": "array", @@ -6453,6 +6505,7 @@ "onion", "shared_secrets" ], + "additionalProperties": false, "properties": { "onion": { "type": "hex", @@ -6555,7 +6608,6 @@ "lightning-createrune.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "createrune", "title": "Command to Create/Update Rune for Authorizing Remote Peer Access", @@ -6566,6 +6618,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -6621,6 +6674,7 @@ "rune", "unique_id" ], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -6928,7 +6982,6 @@ "lightning-datastore.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "datastore", "title": "Command for storing (plugin) data", "description": [ @@ -6938,6 +6991,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "description": [ @@ -7001,6 +7055,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "type": "array", @@ -7139,7 +7194,6 @@ "lightning-datastoreusage.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.11", "rpc": "datastoreusage", "title": "Command for listing datastore usage info", @@ -7150,6 +7204,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "key": { "oneOf": [ @@ -7173,6 +7228,7 @@ "required": [ "datastoreusage" ], + "additionalProperties": false, "properties": { "datastoreusage": { "type": "object", @@ -7263,7 +7319,6 @@ "lightning-decode.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "rpc": "decode", "title": "Command for decoding an invoice string (low-level)", @@ -7274,6 +7329,7 @@ "required": [ "string" ], + "additionalProperties": false, "properties": { "string": { "type": "string", @@ -7291,6 +7347,7 @@ "type", "valid" ], + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -7316,6 +7373,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -7656,6 +7714,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -7741,6 +7800,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -8227,6 +8287,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -8334,6 +8395,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -9020,6 +9082,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -9167,6 +9230,7 @@ "version", "hex" ], + "additionalProperties": false, "properties": { "version": {}, "hex": {}, @@ -9185,6 +9249,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -9423,6 +9488,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -9510,6 +9576,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -9555,6 +9622,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -9665,7 +9733,6 @@ "lightning-decodepay.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "rpc": "decodepay", "title": "Command for decoding a bolt11 string (low-level)", @@ -9676,6 +9743,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -9701,6 +9769,7 @@ "payment_hash", "signature" ], + "additionalProperties": false, "properties": { "currency": { "type": "string", @@ -9963,7 +10032,6 @@ "lightning-deldatastore.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "deldatastore", "title": "Command for removing (plugin) data", "description": [ @@ -9975,6 +10043,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "oneOf": [ @@ -10004,6 +10073,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "type": "array", @@ -10097,7 +10167,6 @@ "lightning-delforward.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "delforward", "title": "Command for removing a forwarding entry", "description": [ @@ -10111,6 +10180,7 @@ "in_htlc_id", "status" ], + "additionalProperties": false, "properties": { "in_channel": { "type": "short_channel_id", @@ -10139,6 +10209,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "errors": [ @@ -10185,7 +10256,6 @@ "lightning-delinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "delinvoice", "title": "Command for removing an invoice (or just its description)", "description": [ @@ -10196,6 +10266,7 @@ "label", "status" ], + "additionalProperties": true, "properties": { "label": { "oneOf": [ @@ -10237,6 +10308,7 @@ "created_index", "expires_at" ], + "additionalProperties": true, "properties": { "label": { "type": "string", @@ -10371,6 +10443,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -10524,7 +10597,6 @@ "lightning-delpay.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "delpay", "title": "Command for removing a completed or failed payment", "description": [ @@ -10535,6 +10607,7 @@ "payment_hash", "status" ], + "additionalProperties": false, "properties": { "payment_hash": { "type": "hash", @@ -10576,6 +10649,7 @@ "required": [ "payments" ], + "additionalProperties": false, "properties": { "payments": { "type": "array", @@ -10822,7 +10896,6 @@ "lightning-deprecations.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v24.02", "rpc": "deprecations", "title": "Command to enable/disable deprecated APIs", @@ -10833,6 +10906,7 @@ "required": [ "enable" ], + "additionalProperties": false, "properties": { "enable": { "type": "boolean", @@ -10843,6 +10917,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "errors": [ @@ -10886,7 +10961,6 @@ "lightning-dev-forget-channel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "dev-forget-channel", "title": "Command to remove the DB entries from the database after a close", "warning": "For advanced users only", @@ -10901,6 +10975,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -10935,6 +11010,7 @@ "funding_unspent", "funding_txid" ], + "additionalProperties": false, "properties": { "forced": { "type": "boolean", @@ -11016,7 +11092,6 @@ "lightning-disableinvoicerequest.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v22.11", "rpc": "disableinvoicerequest", "title": "Command for removing an invoice request", @@ -11030,6 +11105,7 @@ "required": [ "invreq_id" ], + "additionalProperties": false, "properties": { "invreq_id": { "type": "string", @@ -11047,6 +11123,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "invreq_id": { "type": "hash", @@ -11124,7 +11201,6 @@ "lightning-disableoffer.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "disableoffer", "title": "Command for removing an offer", "warning": "experimental-offers only", @@ -11137,6 +11213,7 @@ "required": [ "offer_id" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -11154,6 +11231,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -11232,7 +11310,6 @@ "lightning-disconnect.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "disconnect", "title": "Command for disconnecting from another lightning node", "description": [ @@ -11242,6 +11319,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -11258,6 +11336,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "errors": [ @@ -11304,7 +11383,6 @@ "lightning-emergencyrecover.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "emergencyrecover", "title": "Command for recovering channels from the emergency.recovery file in the lightning directory", "description": [ @@ -11314,12 +11392,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "stubs" ], + "additionalProperties": false, "properties": { "stubs": { "type": "array", @@ -11371,7 +11451,6 @@ "lightning-enableoffer.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "disableoffer", "title": "Command for re-enabling an offer", "warning": "experimental-offers only", @@ -11382,6 +11461,7 @@ "required": [ "offer_id" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -11399,6 +11479,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -11483,7 +11564,6 @@ "lightning-feerates.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "feerates", "title": "Command for querying recommended onchain feerates", "description": [ @@ -11505,6 +11585,7 @@ "required": [ "style" ], + "additionalProperties": false, "properties": { "style": { "type": "string", @@ -11522,6 +11603,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "warning_missing_feerates": { "type": "string", @@ -11972,7 +12054,6 @@ "lightning-fetchinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fetchinvoice", "title": "Command for fetch an invoice for an offer", "warning": "experimental-offers only", @@ -11985,6 +12066,7 @@ "required": [ "offer" ], + "additionalProperties": false, "properties": { "offer": { "type": "string", @@ -12034,8 +12116,12 @@ "To ask the issuer to include in the fetched invoice." ] }, - "dev_reply_path": {}, - "dev_path_use_scidd": {} + "dev_reply_path": { + "hidden": true + }, + "dev_path_use_scidd": { + "hidden": true + } } }, "response": { @@ -12043,6 +12129,7 @@ "invoice", "changes" ], + "additionalProperties": false, "properties": { "invoice": { "type": "string", @@ -12192,7 +12279,6 @@ "lightning-fundchannel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel", "title": "Command for establishing a lightning channel", "description": [ @@ -12209,6 +12295,7 @@ "id", "amount" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -12318,6 +12405,7 @@ "channel_type", "channel_id" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", @@ -12494,7 +12582,6 @@ "lightning-fundchannel_cancel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel_cancel", "title": "Command for completing channel establishment", "description": [ @@ -12508,6 +12595,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -12521,6 +12609,7 @@ "required": [ "cancelled" ], + "additionalProperties": false, "properties": { "cancelled": { "type": "string", @@ -12585,7 +12674,6 @@ "lightning-fundchannel_complete.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel_complete", "title": "Command for completing channel establishment", "description": [ @@ -12598,6 +12686,7 @@ "id", "psbt" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -12618,6 +12707,7 @@ "channel_id", "commitments_secured" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -12697,7 +12787,6 @@ "lightning-fundchannel_start.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel_start", "title": "Command for initiating channel establishment for a lightning channel", "description": [ @@ -12710,6 +12799,7 @@ "id", "amount" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -12790,6 +12880,7 @@ "scriptpubkey", "warning_usage" ], + "additionalProperties": false, "properties": { "funding_address": { "type": "string", @@ -12957,7 +13048,6 @@ "lightning-funderupdate.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "funderupdate", "title": "Command for adjusting node funding v2 channels", "description": [ @@ -12971,6 +13061,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "policy": { "type": "string", @@ -13108,6 +13199,7 @@ "fuzz_percent", "fund_probability" ], + "additionalProperties": false, "properties": { "summary": { "type": "string", @@ -13288,7 +13380,6 @@ "lightning-fundpsbt.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundpsbt", "title": "Command to populate PSBT inputs from the wallet", "description": [ @@ -13300,6 +13391,7 @@ "feerate", "startweight" ], + "additionalProperties": false, "properties": { "satoshi": { "type": "sat_or_all", @@ -13375,6 +13467,7 @@ "estimated_final_weight", "excess_msat" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -13539,7 +13632,6 @@ "lightning-getemergencyrecoverdata.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getemergencyrecoverdata", "title": "Command to fetch data from the emergency.recover file", "description": [ @@ -13547,12 +13639,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "filedata" ], + "additionalProperties": false, "properties": { "filedata": { "type": "hex", @@ -13587,7 +13681,6 @@ "lightning-getinfo.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getinfo", "title": "Command to receive all information about the Core Lightning node.", "description": [ @@ -13598,6 +13691,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { @@ -13616,6 +13710,7 @@ "lightning-dir", "address" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -13765,6 +13860,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -13819,6 +13915,7 @@ "required": [ "type" ], + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -13850,6 +13947,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -13892,6 +13990,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -14010,7 +14109,6 @@ "lightning-getlog.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getlog", "title": "Command to show logs.", "description": [ @@ -14021,6 +14119,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "level": { "type": "string", @@ -14046,6 +14145,7 @@ "bytes_max", "log" ], + "additionalProperties": false, "properties": { "created_at": { "type": "string", @@ -14307,7 +14407,6 @@ "lightning-getroute.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getroute", "title": "Command for routing a payment (low-level)", "description": [ @@ -14324,6 +14423,7 @@ "amount_msat", "riskfactor" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -14386,6 +14486,7 @@ "required": [ "route" ], + "additionalProperties": false, "properties": { "route": { "type": "array", @@ -14740,7 +14841,6 @@ "lightning-getroutes.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getroutes", "title": "Command for routing a payment (EXPERIMENTAL)", "added": "v24.08", @@ -14767,6 +14867,7 @@ "maxfee_msat", "final_cltv" ], + "additionalProperties": false, "properties": { "source": { "type": "pubkey", @@ -14814,6 +14915,7 @@ "probability_ppm", "routes" ], + "additionalProperties": false, "properties": { "probability_ppm": { "type": "u64", @@ -14917,7 +15019,6 @@ "lightning-help.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "help", "title": "Command to return all information about RPC commands.", "description": [ @@ -14927,6 +15028,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "command": { "type": "string", @@ -14940,6 +15042,7 @@ "required": [ "help" ], + "additionalProperties": false, "properties": { "help": { "type": "array", @@ -15147,7 +15250,6 @@ "lightning-invoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "invoice", "title": "Command for accepting payments", "description": [ @@ -15159,6 +15261,7 @@ "label", "description" ], + "additionalProperties": false, "properties": { "amount_msat": { "type": "msat_or_any", @@ -15257,6 +15360,7 @@ "bolt11", "payment_secret" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -15387,7 +15491,6 @@ "lightning-invoicerequest.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v22.11", "rpc": "invoicerequest", "title": "Command for offering payments", @@ -15400,6 +15503,7 @@ "amount", "description" ], + "additionalProperties": false, "properties": { "amount": { "type": "msat", @@ -15448,6 +15552,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "invreq_id": { "type": "hash", @@ -15549,7 +15654,6 @@ "lightning-keysend.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "keysend", "title": "Send funds to a node without an invoice", "description": [ @@ -15564,6 +15668,7 @@ "destination", "amount_msat" ], + "additionalProperties": false, "properties": { "destination": { "type": "pubkey", @@ -15671,6 +15776,7 @@ "amount_sent_msat", "status" ], + "additionalProperties": false, "properties": { "payment_preimage": { "type": "secret", @@ -15859,7 +15965,6 @@ "lightning-listchannels.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listchannels", "title": "Command to query active lightning channels in the entire network", "description": [ @@ -15872,6 +15977,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "short_channel_id": { "type": "short_channel_id", @@ -15897,6 +16003,7 @@ "required": [ "channels" ], + "additionalProperties": false, "properties": { "channels": { "type": "array", @@ -16288,7 +16395,6 @@ "lightning-listclosedchannels.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "rpc": "listclosedchannels", "title": "Get data on our closed historical channels", @@ -16300,6 +16406,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -16313,6 +16420,7 @@ "required": [ "closedchannels" ], + "additionalProperties": false, "properties": { "closedchannels": { "type": "array", @@ -16357,6 +16465,7 @@ "alias": { "type": "object", "required": [], + "additionalProperties": false, "properties": { "local": { "type": "short_channel_id", @@ -16589,7 +16698,6 @@ "lightning-listconfigs.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listconfigs", "title": "Command to list all configuration options.", "description": [ @@ -16600,6 +16708,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "config": { "type": "string", @@ -16611,6 +16720,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "configs": { "added": "v23.08", @@ -19643,7 +19753,6 @@ "lightning-listdatastore.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listdatastore", "title": "Command for listing (plugin) data", "description": [ @@ -19651,6 +19760,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "key": { "oneOf": [ @@ -19676,6 +19786,7 @@ "required": [ "datastore" ], + "additionalProperties": false, "properties": { "datastore": { "type": "array", @@ -19785,7 +19896,6 @@ "lightning-listforwards.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listforwards", "title": "Command showing all htlcs and their information", "description": [ @@ -19796,6 +19906,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "status": { "type": "string", @@ -19859,6 +19970,7 @@ "required": [ "forwards" ], + "additionalProperties": false, "properties": { "forwards": { "type": "array", @@ -20011,6 +20123,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -20077,6 +20190,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -20395,7 +20509,6 @@ "lightning-listfunds.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listfunds", "title": "Command showing all funds currently managed by the Core Lightning node", "description": [ @@ -20406,6 +20519,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "spent": { "type": "boolean", @@ -20421,6 +20535,7 @@ "outputs", "channels" ], + "additionalProperties": false, "properties": { "outputs": { "type": "array", @@ -20491,6 +20606,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -20527,6 +20643,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "reserved": { "type": "boolean", @@ -20648,6 +20765,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "state": { "type": "string", @@ -20684,6 +20802,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "state": { "type": "string", @@ -20798,7 +20917,6 @@ "lightning-listhtlcs.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listhtlcs", "title": "Command for querying HTLCs", "description": [ @@ -20809,6 +20927,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "string", @@ -20822,6 +20941,7 @@ "required": [ "htlcs" ], + "additionalProperties": false, "properties": { "htlcs": { "type": "array", @@ -21148,7 +21268,6 @@ "lightning-listinvoicerequests.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v22.11", "rpc": "listinvoicerequests", "title": "Command for querying invoice_request status", @@ -21160,6 +21279,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "invreq_id": { "type": "string", @@ -21180,6 +21300,7 @@ "required": [ "invoicerequests" ], + "additionalProperties": false, "properties": { "invoicerequests": { "type": "array", @@ -21296,7 +21417,6 @@ "lightning-listinvoices.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listinvoices", "title": "Command for querying invoice status", "description": [ @@ -21309,6 +21429,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "label": { "oneOf": [ @@ -21379,6 +21500,7 @@ "required": [ "invoices" ], + "additionalProperties": false, "properties": { "invoices": { "type": "array", @@ -21476,6 +21598,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -21756,7 +21879,6 @@ "lightning-listnodes.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listnodes", "title": "Command to get the list of nodes in the known network.", "description": [ @@ -21767,6 +21889,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -21780,6 +21903,7 @@ "required": [ "nodes" ], + "additionalProperties": false, "properties": { "nodes": { "type": "array", @@ -21879,6 +22003,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -22087,7 +22212,6 @@ "lightning-listoffers.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listoffers", "title": "Command for listing offers", "warning": "experimental-offers only", @@ -22099,6 +22223,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -22118,6 +22243,7 @@ "required": [ "offers" ], + "additionalProperties": false, "properties": { "offers": { "type": "array", @@ -22236,7 +22362,6 @@ "lightning-listpays.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listpays", "title": "Command for querying payment status", "description": [ @@ -22247,6 +22372,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -22277,6 +22403,7 @@ "required": [ "pays" ], + "additionalProperties": false, "properties": { "pays": { "type": "array", @@ -22352,6 +22479,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -22406,6 +22534,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -22553,7 +22682,6 @@ "lightning-listpeerchannels.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "listpeerchannels", "title": "Command returning data on channels of connected lightning nodes", @@ -22567,6 +22695,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -22580,6 +22709,7 @@ "required": [ "channels" ], + "additionalProperties": false, "properties": { "channels": { "type": "array", @@ -23161,6 +23291,7 @@ "alias": { "type": "object", "required": [], + "additionalProperties": false, "properties": { "local": { "type": "short_channel_id", @@ -23400,6 +23531,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "direction": { "enum": [ @@ -23449,6 +23581,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "direction": { "enum": [ @@ -23502,6 +23635,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "peer_connected": { "type": "boolean", @@ -23512,6 +23646,7 @@ } }, "then": { + "additionalProperties": true, "properties": { "reestablished": { "type": "boolean", @@ -24205,7 +24340,6 @@ "lightning-listpeers.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listpeers", "title": "Command returning data on connected lightning nodes", "description": [ @@ -24224,6 +24358,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -24250,6 +24385,7 @@ "required": [ "peers" ], + "additionalProperties": false, "properties": { "peers": { "type": "array", @@ -24310,6 +24446,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "enum": [ @@ -24337,6 +24474,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "enum": [ @@ -24389,6 +24527,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "enum": [ @@ -24590,7 +24729,6 @@ "lightning-listsendpays.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listsendpays", "title": "Low-level command for querying sendpay status", "description": [ @@ -24603,6 +24741,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -24664,6 +24803,7 @@ "required": [ "payments" ], + "additionalProperties": false, "properties": { "payments": { "type": "array", @@ -24781,6 +24921,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -24831,6 +24972,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -24873,6 +25015,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -25110,7 +25253,6 @@ "lightning-listsqlschemas.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "listsqlschemas", "title": "Command to example lightning-sql schemas", @@ -25124,6 +25266,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "table": { "type": "string" @@ -25134,6 +25277,7 @@ "required": [ "schemas" ], + "additionalProperties": false, "properties": { "schemas": { "type": "array", @@ -25396,7 +25540,6 @@ "lightning-listtransactions.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listtransactions", "title": "Command to get the list of transactions that was stored in the wallet.", "description": [ @@ -25407,12 +25550,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "transactions" ], + "additionalProperties": false, "properties": { "transactions": { "type": "array", @@ -25704,7 +25849,6 @@ "lightning-makesecret.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "makesecret", "title": "Command for deriving pseudorandom key from HSM", "description": [ @@ -25712,6 +25856,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "hex": { "type": "hex", @@ -25731,6 +25876,7 @@ "required": [ "secret" ], + "additionalProperties": false, "properties": { "secret": { "type": "secret", @@ -25781,7 +25927,6 @@ "lightning-multifundchannel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "multifundchannel", "title": "Command for establishing many lightning channels", "description": [ @@ -25795,6 +25940,7 @@ "required": [ "destinations" ], + "additionalProperties": false, "properties": { "destinations": { "type": "array", @@ -25911,6 +26057,7 @@ "txid", "channel_ids" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", @@ -26259,7 +26406,6 @@ "lightning-multiwithdraw.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "multiwithdraw", "title": "Command for withdrawing to multiple addresses", "description": [ @@ -26269,6 +26415,7 @@ "required": [ "outputs" ], + "additionalProperties": false, "properties": { "outputs": { "type": "array", @@ -26309,6 +26456,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", @@ -26405,7 +26553,6 @@ "lightning-newaddr.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "newaddr", "title": "Command for generating a new address to be used by Core Lightning", "description": [ @@ -26417,6 +26564,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "addresstype": { "type": "string", @@ -26434,6 +26582,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "p2tr": { "added": "v23.08", @@ -26493,7 +26642,6 @@ "lightning-notifications.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "notifications", "title": "Command to set up notifications.", "description": [ @@ -26505,6 +26653,7 @@ "required": [ "enable" ], + "additionalProperties": false, "properties": { "enable": { "type": "boolean", @@ -26515,6 +26664,7 @@ } }, "response": { + "additionalProperties": false, "properties": {}, "post_return_value_notes": [ "On success, if *enable* was *true*, notifications will be forwarded from then on." @@ -26588,7 +26738,6 @@ "lightning-offer.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "offer", "title": "Command for accepting payments", "warning": "experimental-offers only", @@ -26601,6 +26750,7 @@ "required": [ "amount" ], + "additionalProperties": false, "properties": { "amount": { "oneOf": [ @@ -26685,7 +26835,9 @@ ], "default": "True" }, - "dev_paths": {} + "dev_paths": { + "hidden": true + } } }, "response": { @@ -26697,6 +26849,7 @@ "used", "created" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -26807,7 +26960,6 @@ "lightning-openchannel_abort.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_abort", "title": "Command to abort a channel to a peer", "description": [ @@ -26817,6 +26969,7 @@ "required": [ "channel_id" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -26832,6 +26985,7 @@ "channel_canceled", "reason" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -26900,7 +27054,6 @@ "lightning-openchannel_bump.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_bump", "title": "Command to initiate a channel RBF", "description": [ @@ -26914,6 +27067,7 @@ "amount", "initialpsbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -26950,6 +27104,7 @@ "commitments_secured", "funding_serial" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -27162,7 +27317,6 @@ "lightning-openchannel_init.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_init", "title": "Command to initiate a channel to a peer", "description": [ @@ -27174,6 +27328,7 @@ "amount", "initialpsbt" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -27252,6 +27407,7 @@ "commitments_secured", "funding_serial" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -27435,7 +27591,6 @@ "lightning-openchannel_signed.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_signed", "title": "Command to conclude a channel open", "description": [ @@ -27450,6 +27605,7 @@ "channel_id", "signed_psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -27471,6 +27627,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -27557,7 +27714,6 @@ "lightning-openchannel_update.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_update", "title": "Command to update a collab channel open", "description": [ @@ -27572,6 +27728,7 @@ "channel_id", "psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -27595,6 +27752,7 @@ "channel_type", "funding_outnum" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -27684,6 +27842,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "commitments_secured": { "type": "boolean", @@ -27819,7 +27978,6 @@ "lightning-parsefeerate.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "parsefeerate", "title": "Command for parsing a feerate string to a feerate", "description": [ @@ -27829,6 +27987,7 @@ "required": [ "feerate_str" ], + "additionalProperties": false, "properties": { "feerate_str": { "type": "string", @@ -27840,6 +27999,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "perkw": { "type": "u32", @@ -27915,7 +28075,6 @@ "lightning-pay.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "pay", "title": "Command for sending a payment to a BOLT11 invoice", "description": [ @@ -27929,6 +28088,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -28036,6 +28196,7 @@ "amount_sent_msat", "status" ], + "additionalProperties": false, "properties": { "payment_preimage": { "type": "secret", @@ -28195,7 +28356,6 @@ "lightning-ping.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "ping", "title": "Command to check if a node is up.", "description": [ @@ -28205,6 +28365,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -28232,6 +28393,7 @@ "required": [ "totlen" ], + "additionalProperties": false, "properties": { "totlen": { "type": "u16", @@ -28306,6 +28468,7 @@ "directory" ] ], + "additionalProperties": true, "properties": { "subcommand": { "type": "string", @@ -28355,6 +28518,7 @@ "required": [ "command" ], + "additionalProperties": true, "properties": { "command": { "type": "string", @@ -28373,6 +28537,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "command": { "type": "string", @@ -28430,6 +28595,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "command": { "type": "string", @@ -28678,7 +28844,6 @@ "lightning-preapproveinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "preapproveinvoice", "title": "Ask the HSM to preapprove an invoice (low-level)", @@ -28697,6 +28862,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -28708,6 +28874,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "author": [ @@ -28745,7 +28912,6 @@ "lightning-preapprovekeysend.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "preapprovekeysend", "title": "Ask the HSM to preapprove a keysend payment (low-level)", @@ -28766,6 +28932,7 @@ "payment_hash", "amount_msat" ], + "additionalProperties": false, "properties": { "destination": { "type": "pubkey", @@ -28793,6 +28960,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "author": [ @@ -28834,7 +29002,6 @@ "lightning-reckless.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "reckless", "title": "Issue a command to the reckless plugin manager utility", "description": [ @@ -28844,6 +29011,7 @@ "required": [ "command" ], + "additionalProperties": false, "properties": { "command": { "type": "string", @@ -28897,6 +29065,7 @@ "log", "result" ], + "additionalProperties": false, "properties": { "result": { "type": "array", @@ -29025,7 +29194,6 @@ "lightning-recover.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "recover", "title": "Reinitialize Your Node for Recovery", "description": [ @@ -29039,6 +29207,7 @@ "required": [ "hsmsecret" ], + "additionalProperties": false, "properties": { "hsmsecret": { "type": "string", @@ -29052,6 +29221,7 @@ "required": [ "result" ], + "additionalProperties": false, "properties": { "result": { "type": "string", @@ -29101,7 +29271,6 @@ "lightning-recoverchannel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "recoverchannel", "title": "Command for recovering channels bundeled in an array in the form of *Static Backup*", "description": [ @@ -29113,6 +29282,7 @@ "required": [ "scb" ], + "additionalProperties": false, "properties": { "scb": { "type": "array", @@ -29129,6 +29299,7 @@ "required": [ "stubs" ], + "additionalProperties": false, "properties": { "stubs": { "type": "array", @@ -29182,7 +29353,6 @@ "lightning-renepay.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "renepay", "title": "Command for sending a payment to a BOLT11 invoice", "added": "v23.08", @@ -29197,6 +29367,7 @@ "required": [ "invstring" ], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -29275,6 +29446,7 @@ "amount_sent_msat", "status" ], + "additionalProperties": false, "properties": { "payment_preimage": { "type": "secret", @@ -29443,7 +29615,6 @@ "lightning-renepaystatus.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "renepaystatus", "title": "Command for quering the status of previous renepay attempts", "added": "v23.08", @@ -29454,6 +29625,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -29467,6 +29639,7 @@ "required": [ "paystatus" ], + "additionalProperties": false, "properties": { "paystatus": { "type": "array", @@ -29608,7 +29781,6 @@ "lightning-reserveinputs.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "reserveinputs", "title": "Construct a transaction and reserve the UTXOs it spends", "description": [ @@ -29620,6 +29792,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -29645,6 +29818,7 @@ "required": [ "reservations" ], + "additionalProperties": false, "properties": { "reservations": { "type": "array", @@ -29759,7 +29933,6 @@ "lightning-sendcustommsg.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v0.10.1", "rpc": "sendcustommsg", "title": "Low-level interface to send protocol messages to peers", @@ -29773,6 +29946,7 @@ "node_id", "msg" ], + "additionalProperties": false, "properties": { "node_id": { "type": "pubkey", @@ -29792,6 +29966,7 @@ "required": [ "status" ], + "additionalProperties": false, "properties": { "status": { "type": "string", @@ -29835,7 +30010,6 @@ "lightning-sendinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendinvoice", "title": "Command for send an invoice for an offer", "warning": "experimental-offers only", @@ -29849,6 +30023,7 @@ "invreq", "label" ], + "additionalProperties": false, "properties": { "invreq": { "type": "string", @@ -29893,6 +30068,7 @@ "created_index", "expires_at" ], + "additionalProperties": false, "properties": { "label": { "type": "string", @@ -29963,6 +30139,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -30069,7 +30246,6 @@ "lightning-sendonion.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendonion", "title": "Send a payment with a custom onion packet", "description": [ @@ -30091,6 +30267,7 @@ "first_hop", "payment_hash" ], + "additionalProperties": false, "properties": { "onion": { "type": "hex", @@ -30108,6 +30285,7 @@ "amount_msat", "delay" ], + "additionalProperties": true, "properties": { "id": { "type": "pubkey", @@ -30204,6 +30382,7 @@ "created_at", "amount_sent_msat" ], + "additionalProperties": true, "properties": { "created_index": { "added": "v23.11", @@ -30286,6 +30465,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -30334,6 +30514,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -30427,7 +30608,6 @@ "lightning-sendpay.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendpay", "title": "Low-level command for sending a payment via a route", "description": [ @@ -30444,6 +30624,7 @@ "route", "payment_hash" ], + "additionalProperties": false, "properties": { "route": { "type": "array", @@ -30455,6 +30636,7 @@ "delay", "channel" ], + "additionalProperties": true, "properties": { "id": { "type": "pubkey", @@ -30546,7 +30728,9 @@ "Description used in the invoice." ] }, - "dev_legacy_hop": {} + "dev_legacy_hop": { + "hidden": true + } } }, "response": { @@ -30558,6 +30742,7 @@ "created_at", "amount_sent_msat" ], + "additionalProperties": false, "properties": { "created_index": { "added": "v23.11", @@ -30661,6 +30846,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -30704,6 +30890,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -30825,7 +31012,6 @@ "lightning-sendpsbt.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendpsbt", "title": "Command to finalize, extract and send a partially signed bitcoin transaction (PSBT).", "description": [ @@ -30835,6 +31021,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -30856,6 +31043,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", @@ -30907,7 +31095,6 @@ "lightning-setchannel.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "setchannel", "title": "Command for configuring fees / htlc range advertized for a channel", "description": [ @@ -30919,6 +31106,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "string", @@ -30972,6 +31160,7 @@ "required": [ "channels" ], + "additionalProperties": false, "properties": { "channels": { "type": "array", @@ -31131,7 +31320,6 @@ "lightning-setconfig.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "setconfig", "title": "Dynamically change some config options", @@ -31146,6 +31334,7 @@ "required": [ "config" ], + "additionalProperties": false, "properties": { "config": { "type": "string", @@ -31175,6 +31364,7 @@ "required": [ "config" ], + "additionalProperties": false, "properties": { "config": { "type": "object", @@ -31307,7 +31497,6 @@ "lightning-setpsbtversion.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "setpsbtversion", "title": "Command for setting PSBT version", "description": [ @@ -31318,6 +31507,7 @@ "psbt", "version" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -31337,6 +31527,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -31394,7 +31585,6 @@ "lightning-showrunes.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "showrunes", "title": "Command to list previously generated runes", @@ -31403,6 +31593,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -31416,6 +31607,7 @@ "required": [ "runes" ], + "additionalProperties": false, "properties": { "runes": { "type": "array", @@ -31775,7 +31967,6 @@ "lightning-signinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "signinvoice", "title": "Low-level invoice signing", @@ -31786,6 +31977,7 @@ "required": [ "invstring" ], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -31799,6 +31991,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -31858,7 +32051,6 @@ "lightning-signmessage.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "signmessage", "title": "Command to create a signature from this node", "description": [ @@ -31868,6 +32060,7 @@ "required": [ "message" ], + "additionalProperties": false, "properties": { "message": { "type": "string", @@ -31883,6 +32076,7 @@ "recid", "zbase" ], + "additionalProperties": false, "properties": { "signature": { "type": "hex", @@ -31953,7 +32147,6 @@ "lightning-signpsbt.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "signpsbt", "title": "Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT).", "description": [ @@ -31967,6 +32160,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -31989,6 +32183,7 @@ "required": [ "signed_psbt" ], + "additionalProperties": false, "properties": { "signed_psbt": { "type": "string", @@ -32044,7 +32239,6 @@ "lightning-splice_init.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "splice_init", "title": "Command to initiate a channel to a peer", @@ -32057,6 +32251,7 @@ "channel_id", "relative_amount" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -32094,6 +32289,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -32183,7 +32379,6 @@ "lightning-splice_signed.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "splice_signed", "title": "Command to initiate a channel to a peer", @@ -32198,6 +32393,7 @@ "channel_id", "psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -32224,6 +32420,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", @@ -32341,7 +32538,6 @@ "lightning-splice_update.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "splice_update", "title": "Command to initiate a channel to a peer", @@ -32362,6 +32558,7 @@ "channel_id", "psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -32382,6 +32579,7 @@ "psbt", "commitments_secured" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -32496,7 +32694,6 @@ "lightning-sql-template.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "sql", "title": "Command to do complex queries on list commands", @@ -32513,6 +32710,7 @@ "required": [ "query" ], + "additionalProperties": false, "properties": { "query": { "type": "string", @@ -32527,6 +32725,7 @@ "required": [ "rows" ], + "additionalProperties": false, "properties": { "rows": { "type": "array", @@ -32800,7 +32999,6 @@ "lightning-staticbackup.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "staticbackup", "title": "Command for deriving getting SCB of all the existing channels", "description": [ @@ -32808,12 +33006,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "scb" ], + "additionalProperties": false, "properties": { "scb": { "type": "array", @@ -32858,7 +33058,6 @@ "lightning-stop.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "stop", "title": "Command to shutdown the Core Lightning node.", "description": [ @@ -32866,12 +33065,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "result" ], + "additionalProperties": false, "properties": { "result": { "type": "string", @@ -32905,7 +33106,6 @@ "lightning-txdiscard.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "txdiscard", "title": "Abandon a transaction from txprepare, release inputs", "description": [ @@ -32915,6 +33115,7 @@ "required": [ "txid" ], + "additionalProperties": false, "properties": { "txid": { "type": "txid", @@ -32929,6 +33130,7 @@ "unsigned_tx", "txid" ], + "additionalProperties": false, "properties": { "unsigned_tx": { "type": "hex", @@ -32994,7 +33196,6 @@ "lightning-txprepare.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "txprepare", "title": "Command to prepare to withdraw funds from the internal wallet", "description": [ @@ -33006,6 +33207,7 @@ "required": [ "outputs" ], + "additionalProperties": false, "properties": { "outputs": { "type": "array", @@ -33047,6 +33249,7 @@ "unsigned_tx", "txid" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -33129,7 +33332,6 @@ "lightning-txsend.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "txsend", "title": "Command to sign and send transaction from txprepare", "description": [ @@ -33139,6 +33341,7 @@ "required": [ "txid" ], + "additionalProperties": false, "properties": { "txid": { "type": "txid", @@ -33154,6 +33357,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -33224,7 +33428,6 @@ "lightning-unreserveinputs.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "unreserveinputs", "title": "Release reserved UTXOs", "description": [ @@ -33234,6 +33437,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -33254,6 +33458,7 @@ "required": [ "reservations" ], + "additionalProperties": false, "properties": { "reservations": { "type": "array", @@ -33308,6 +33513,7 @@ "required": [ "reserved_to_block" ], + "additionalProperties": false, "properties": { "txid": {}, "vout": {}, @@ -33374,7 +33580,6 @@ "lightning-upgradewallet.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "upgradewallet", "title": "Command to spend all P2SH-wrapped inputs into a Native Segwit output", "description": [ @@ -33382,6 +33587,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "feerate": { "type": "feerate", @@ -33404,6 +33610,7 @@ "required": [ "upgraded_outs" ], + "additionalProperties": false, "properties": { "upgraded_outs": { "type": "u64", @@ -33483,7 +33690,6 @@ "lightning-utxopsbt.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "utxopsbt", "title": "Command to populate PSBT inputs from given UTXOs", "description": [ @@ -33498,6 +33704,7 @@ "startweight", "utxos" ], + "additionalProperties": false, "properties": { "satoshi": { "type": "sat_or_all", @@ -33575,6 +33782,7 @@ "estimated_final_weight", "excess_msat" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -33756,7 +33964,6 @@ "lightning-wait.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "wait", "title": "Command to wait for creations, changes and deletions", @@ -33769,6 +33976,7 @@ "indexname", "nextvalue" ], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -33810,6 +34018,7 @@ "required": [ "subsystem" ], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -34127,7 +34336,6 @@ "lightning-waitanyinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitanyinvoice", "title": "Command for waiting for payments", "description": [ @@ -34137,6 +34345,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "lastpay_index": { "type": "u64", @@ -34160,6 +34369,7 @@ "created_index", "expires_at" ], + "additionalProperties": true, "properties": { "label": { "type": "string", @@ -34231,6 +34441,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -34402,7 +34613,6 @@ "lightning-waitblockheight.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitblockheight", "title": "Command for waiting for blocks on the blockchain", "description": [ @@ -34412,6 +34622,7 @@ "required": [ "blockheight" ], + "additionalProperties": false, "properties": { "blockheight": { "type": "u32", @@ -34432,6 +34643,7 @@ "required": [ "blockheight" ], + "additionalProperties": false, "properties": { "blockheight": { "type": "u32", @@ -34486,7 +34698,6 @@ "lightning-waitinvoice.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitinvoice", "title": "Command for waiting for specific payment", "description": [ @@ -34496,6 +34707,7 @@ "required": [ "label" ], + "additionalProperties": true, "properties": { "label": { "oneOf": [ @@ -34520,6 +34732,7 @@ "created_index", "expires_at" ], + "additionalProperties": true, "properties": { "label": { "type": "string", @@ -34591,6 +34804,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -34766,7 +34980,6 @@ "lightning-waitsendpay.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitsendpay", "title": "Command for sending a payment via a route", "description": [ @@ -34778,6 +34991,7 @@ "required": [ "payment_hash" ], + "additionalProperties": false, "properties": { "payment_hash": { "type": "hash", @@ -34820,6 +35034,7 @@ "created_at", "amount_sent_msat" ], + "additionalProperties": false, "properties": { "created_index": { "added": "v23.11", @@ -34922,6 +35137,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -35024,7 +35240,6 @@ "lightning-withdraw.json": { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "withdraw", "title": "Command for withdrawing funds from the internal wallet", "description": [ @@ -35035,6 +35250,7 @@ "destination", "satoshi" ], + "additionalProperties": false, "properties": { "destination": { "type": "string", @@ -35079,6 +35295,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", diff --git a/doc/rpc-schema-draft.json b/doc/rpc-schema-draft.json index f8e939700..fec8a841b 100644 --- a/doc/rpc-schema-draft.json +++ b/doc/rpc-schema-draft.json @@ -261,6 +261,9 @@ "type": "object", "additionalProperties": false, "properties": { + "additionalProperties": { + "type": "boolean" + }, "required": { "type": "array", "items": { @@ -290,6 +293,9 @@ "type": "object", "additionalProperties": false, "properties": { + "additionalProperties": { + "type": "boolean" + }, "required": { "type": "array", "items": { diff --git a/doc/schemas/lightning-addgossip.json b/doc/schemas/lightning-addgossip.json index f733ea20e..94de83f40 100644 --- a/doc/schemas/lightning-addgossip.json +++ b/doc/schemas/lightning-addgossip.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "addgossip", "title": "Command for injecting a gossip message (low-level)", "description": [ @@ -15,6 +14,7 @@ "required": [ "message" ], + "additionalProperties": false, "properties": { "message": { "type": "hex", @@ -25,6 +25,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "author": [ diff --git a/doc/schemas/lightning-addpsbtoutput.json b/doc/schemas/lightning-addpsbtoutput.json index fd8eac769..dd56156fb 100644 --- a/doc/schemas/lightning-addpsbtoutput.json +++ b/doc/schemas/lightning-addpsbtoutput.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.11", "rpc": "addpsbtoutput", "title": "Command to populate PSBT outputs from the wallet", @@ -14,6 +13,7 @@ "required": [ "satoshi" ], + "additionalProperties": false, "properties": { "satoshi": { "type": "sat", @@ -47,6 +47,7 @@ "estimated_added_weight", "outnum" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-askrene-age.json b/doc/schemas/lightning-askrene-age.json index 97527234d..63f79cd20 100644 --- a/doc/schemas/lightning-askrene-age.json +++ b/doc/schemas/lightning-askrene-age.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-age", "title": "Command for expiring information in a layer (EXPERIMENTAL)", "description": [ @@ -14,6 +13,7 @@ "layer", "cutoff" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -34,6 +34,7 @@ "layer", "num_removed" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", diff --git a/doc/schemas/lightning-askrene-create-channel.json b/doc/schemas/lightning-askrene-create-channel.json index f1acd0c82..231f4a5bd 100644 --- a/doc/schemas/lightning-askrene-create-channel.json +++ b/doc/schemas/lightning-askrene-create-channel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-create-channel", "title": "Command to add a channel to layer (EXPERIMENTAL)", "description": [ @@ -17,6 +16,7 @@ "short_channel_id", "capacity_msat" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -53,6 +53,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ diff --git a/doc/schemas/lightning-askrene-create-layer.json b/doc/schemas/lightning-askrene-create-layer.json index 566a2a1e9..b53b8a328 100644 --- a/doc/schemas/lightning-askrene-create-layer.json +++ b/doc/schemas/lightning-askrene-create-layer.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-create-layer", "title": "Command to create a new layer (EXPERIMENTAL)", "description": [ @@ -13,6 +12,7 @@ "required": [ "layer" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -26,6 +26,7 @@ "required": [ "layers" ], + "additionalProperties": false, "properties": { "layers": { "type": "array", @@ -74,6 +75,7 @@ "short_channel_id", "capacity_msat" ], + "additionalProperties": false, "properties": { "source": { "type": "pubkey", @@ -109,6 +111,7 @@ "required": [ "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "htlc_minimum_msat": { "type": "msat", @@ -151,6 +154,7 @@ "short_channel_id", "direction" ], + "additionalProperties": false, "properties": { "short_channel_id": { "type": "short_channel_id", diff --git a/doc/schemas/lightning-askrene-disable-node.json b/doc/schemas/lightning-askrene-disable-node.json index 389dacaed..0508acb6b 100644 --- a/doc/schemas/lightning-askrene-disable-node.json +++ b/doc/schemas/lightning-askrene-disable-node.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-disable-node", "title": "Command to disable all channels to/from a node in a layer (EXPERIMENTAL)", "description": [ @@ -14,6 +13,7 @@ "layer", "node" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -31,6 +31,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ diff --git a/doc/schemas/lightning-askrene-inform-channel.json b/doc/schemas/lightning-askrene-inform-channel.json index 9e4eff6cc..3414620e6 100644 --- a/doc/schemas/lightning-askrene-inform-channel.json +++ b/doc/schemas/lightning-askrene-inform-channel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-inform-channel", "title": "Command to add channel capacity restrictions to layer (EXPERIMENTAL)", "description": [ @@ -16,6 +15,7 @@ "amount_msat", "inform" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -52,6 +52,7 @@ "required": [ "constraints" ], + "additionalProperties": false, "properties": { "constraints": { "type": "array", @@ -62,6 +63,7 @@ "short_channel_id_dir", "timestamp" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", diff --git a/doc/schemas/lightning-askrene-listlayers.json b/doc/schemas/lightning-askrene-listlayers.json index d6b0c4ed4..bee11267a 100644 --- a/doc/schemas/lightning-askrene-listlayers.json +++ b/doc/schemas/lightning-askrene-listlayers.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-listlayers", "title": "Command to display information about layers (EXPERIMENTAL)", "description": [ @@ -11,6 +10,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -24,6 +24,7 @@ "required": [ "layers" ], + "additionalProperties": false, "properties": { "layers": { "type": "array", @@ -72,6 +73,7 @@ "short_channel_id", "capacity_msat" ], + "additionalProperties": false, "properties": { "source": { "type": "pubkey", @@ -107,6 +109,7 @@ "required": [ "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", @@ -160,6 +163,7 @@ "required": [ "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", diff --git a/doc/schemas/lightning-askrene-listreservations.json b/doc/schemas/lightning-askrene-listreservations.json index 53b2b2983..92be51e20 100644 --- a/doc/schemas/lightning-askrene-listreservations.json +++ b/doc/schemas/lightning-askrene-listreservations.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-listreservations", "title": "Command to display information about reservations (EXPERIMENTAL)", "description": [ @@ -11,24 +10,26 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "reservations" ], + "additionalProperties": false, "properties": { "reservations": { "type": "array", "items": { "type": "object", - "additionalProperties": false, "required": [ "short_channel_id_dir", "amount_msat", "age_in_seconds", "command_id" ], + "additionalProperties": false, "properties": { "short_channel_id_dir": { "type": "short_channel_id_dir", diff --git a/doc/schemas/lightning-askrene-remove-layer.json b/doc/schemas/lightning-askrene-remove-layer.json index 541cf9529..7e991aa46 100644 --- a/doc/schemas/lightning-askrene-remove-layer.json +++ b/doc/schemas/lightning-askrene-remove-layer.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-remove-layer", "title": "Command to destroy a layer (EXPERIMENTAL)", "description": [ @@ -13,6 +12,7 @@ "required": [ "layer" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -24,6 +24,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ diff --git a/doc/schemas/lightning-askrene-reserve.json b/doc/schemas/lightning-askrene-reserve.json index 880eff109..8eccdeb47 100644 --- a/doc/schemas/lightning-askrene-reserve.json +++ b/doc/schemas/lightning-askrene-reserve.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-reserve", "title": "Command for informing askrene that you are trying a path (EXPERIMENTAL)", "description": [ @@ -15,12 +14,13 @@ "required": [ "path" ], + "additionalProperties": false, "properties": { "path": { "type": "array", "items": { "type": "object", - "additionalProperties": true, + "additionalProperties": false, "required": [ "short_channel_id_dir", "amount_msat" @@ -45,6 +45,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ diff --git a/doc/schemas/lightning-askrene-unreserve.json b/doc/schemas/lightning-askrene-unreserve.json index c214e56dd..9590b7c99 100644 --- a/doc/schemas/lightning-askrene-unreserve.json +++ b/doc/schemas/lightning-askrene-unreserve.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-unreserve", "title": "Command for informing askrene that you are no longer trying a path (EXPERIMENTAL)", "description": [ @@ -15,12 +14,13 @@ "required": [ "path" ], + "additionalProperties": false, "properties": { "path": { "type": "array", "items": { "type": "object", - "additionalProperties": true, + "additionalProperties": false, "required": [ "short_channel_id_dir", "amount_msat" @@ -45,6 +45,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ diff --git a/doc/schemas/lightning-askrene-update-channel.json b/doc/schemas/lightning-askrene-update-channel.json index 651dc8ec6..0a5fff00e 100644 --- a/doc/schemas/lightning-askrene-update-channel.json +++ b/doc/schemas/lightning-askrene-update-channel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "askrene-update-channel", "title": "Command to manipulate channel in a layer (EXPERIMENTAL)", "description": [ @@ -14,6 +13,7 @@ "layer", "short_channel_id_dir" ], + "additionalProperties": false, "properties": { "layer": { "type": "string", @@ -67,6 +67,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "see_also": [ diff --git a/doc/schemas/lightning-autoclean-once.json b/doc/schemas/lightning-autoclean-once.json index bdd0d082e..ecb6476c5 100644 --- a/doc/schemas/lightning-autoclean-once.json +++ b/doc/schemas/lightning-autoclean-once.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "autoclean-once", "title": "A single deletion of old invoices/payments/forwards", "description": [ @@ -12,6 +11,7 @@ "subsystem", "age" ], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -45,6 +45,7 @@ "required": [ "autoclean" ], + "additionalProperties": false, "properties": { "autoclean": { "type": "object", diff --git a/doc/schemas/lightning-autoclean-status.json b/doc/schemas/lightning-autoclean-status.json index 933c3f339..b29d250d5 100644 --- a/doc/schemas/lightning-autoclean-status.json +++ b/doc/schemas/lightning-autoclean-status.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "autoclean-status", "title": "Examine auto-delete of old invoices/payments/forwards", "description": [ @@ -9,6 +8,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -36,6 +36,7 @@ "required": [ "autoclean" ], + "additionalProperties": false, "properties": { "autoclean": { "type": "object", @@ -63,6 +64,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -124,6 +126,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -185,6 +188,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -246,6 +250,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -307,6 +312,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", @@ -368,6 +374,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "enabled": { "type": "boolean", diff --git a/doc/schemas/lightning-batching.json b/doc/schemas/lightning-batching.json index 890825e32..5d1337e9e 100644 --- a/doc/schemas/lightning-batching.json +++ b/doc/schemas/lightning-batching.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "batching", "title": "Command to allow database batching.", "description": [ @@ -11,6 +10,7 @@ "required": [ "enable" ], + "additionalProperties": false, "properties": { "enable": { "type": "boolean", @@ -22,6 +22,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "errors": [ diff --git a/doc/schemas/lightning-bkpr-channelsapy.json b/doc/schemas/lightning-bkpr-channelsapy.json index 9a8f90888..b2b4b1a9f 100644 --- a/doc/schemas/lightning-bkpr-channelsapy.json +++ b/doc/schemas/lightning-bkpr-channelsapy.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-channelsapy", "title": "Command to list stats on channel earnings", "description": [ @@ -9,6 +8,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "start_time": { "type": "u64", @@ -30,6 +30,7 @@ "required": [ "channels_apy" ], + "additionalProperties": false, "properties": { "channels_apy": { "type": "array", diff --git a/doc/schemas/lightning-bkpr-dumpincomecsv.json b/doc/schemas/lightning-bkpr-dumpincomecsv.json index 9f7ab763b..5bea1e2c7 100644 --- a/doc/schemas/lightning-bkpr-dumpincomecsv.json +++ b/doc/schemas/lightning-bkpr-dumpincomecsv.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-dumpincomecsv", "title": "Command to emit a CSV of income events", "description": [ @@ -11,6 +10,7 @@ "required": [ "csv_format" ], + "additionalProperties": false, "properties": { "csv_format": { "type": "string", @@ -52,6 +52,7 @@ "csv_file", "csv_format" ], + "additionalProperties": false, "properties": { "csv_file": { "type": "string", diff --git a/doc/schemas/lightning-bkpr-inspect.json b/doc/schemas/lightning-bkpr-inspect.json index 9ad2510b2..6a633815e 100644 --- a/doc/schemas/lightning-bkpr-inspect.json +++ b/doc/schemas/lightning-bkpr-inspect.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-inspect", "title": "Command to show onchain footprint of a channel", "description": [ @@ -11,6 +10,7 @@ "required": [ "account" ], + "additionalProperties": false, "properties": { "account": { "type": "string", @@ -24,6 +24,7 @@ "required": [ "txs" ], + "additionalProperties": false, "properties": { "txs": { "type": "array", diff --git a/doc/schemas/lightning-bkpr-listaccountevents.json b/doc/schemas/lightning-bkpr-listaccountevents.json index ee4c45790..990f8f539 100644 --- a/doc/schemas/lightning-bkpr-listaccountevents.json +++ b/doc/schemas/lightning-bkpr-listaccountevents.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-listaccountevents", "title": "Command for listing recorded bookkeeping events", "description": [ @@ -17,6 +16,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "account": { "type": "string", @@ -37,6 +37,7 @@ "required": [ "events" ], + "additionalProperties": false, "properties": { "events": { "type": "array", @@ -104,6 +105,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -114,6 +116,7 @@ } }, "then": { + "additionalProperties": false, "properties": { "account": {}, "type": {}, @@ -162,12 +165,12 @@ "required": [ "outpoint", "blockheight" - ], - "additionalProperties": false + ] } }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -178,6 +181,7 @@ } }, "then": { + "additionalProperties": false, "properties": { "account": {}, "type": {}, @@ -196,12 +200,12 @@ }, "required": [ "txid" - ], - "additionalProperties": false + ] } }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -212,6 +216,7 @@ } }, "then": { + "additionalProperties": false, "properties": { "account": {}, "type": {}, @@ -245,8 +250,7 @@ "Counter for multi-part payments." ] } - }, - "additionalProperties": false + } } } ] diff --git a/doc/schemas/lightning-bkpr-listbalances.json b/doc/schemas/lightning-bkpr-listbalances.json index 1f795ceff..225d63e66 100644 --- a/doc/schemas/lightning-bkpr-listbalances.json +++ b/doc/schemas/lightning-bkpr-listbalances.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "bkpr-listbalances", "title": "Command for listing current channel + wallet balances", "description": [ @@ -11,12 +10,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "accounts" ], + "additionalProperties": false, "properties": { "accounts": { "type": "array", @@ -112,11 +113,11 @@ } }, "else": { + "additionalProperties": false, "properties": { "account": {}, "balances": {} - }, - "additionalProperties": false + } } } } diff --git a/doc/schemas/lightning-bkpr-listincome.json b/doc/schemas/lightning-bkpr-listincome.json index 4ccd146b8..213f7352d 100644 --- a/doc/schemas/lightning-bkpr-listincome.json +++ b/doc/schemas/lightning-bkpr-listincome.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "pre-v0.10.1", "rpc": "bkpr-listincome", "title": "Command for listing all income impacting events", @@ -10,6 +9,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "consolidate_fees": { "type": "boolean", @@ -38,6 +38,7 @@ "required": [ "income_events" ], + "additionalProperties": false, "properties": { "income_events": { "type": "array", diff --git a/doc/schemas/lightning-blacklistrune.json b/doc/schemas/lightning-blacklistrune.json index 6f2e0fb28..58b90ec11 100644 --- a/doc/schemas/lightning-blacklistrune.json +++ b/doc/schemas/lightning-blacklistrune.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "blacklistrune", "title": "Command to prevent a rune from working", @@ -14,6 +13,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "start": { "type": "u64", @@ -38,6 +38,7 @@ "required": [ "blacklist" ], + "additionalProperties": false, "properties": { "blacklist": { "type": "array", diff --git a/doc/schemas/lightning-check.json b/doc/schemas/lightning-check.json index 09ea287c7..79c92bf8b 100644 --- a/doc/schemas/lightning-check.json +++ b/doc/schemas/lightning-check.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "check", "title": "Command for verifying parameters", "description": [ @@ -15,6 +14,7 @@ "required": [ "command_to_check" ], + "additionalProperties": true, "properties": { "command_to_check": { "type": "string", @@ -25,6 +25,7 @@ } }, "response": { + "additionalProperties": false, "properties": { "command_to_check": { "type": "string", diff --git a/doc/schemas/lightning-checkmessage.json b/doc/schemas/lightning-checkmessage.json index 661e86f67..1c583d2eb 100644 --- a/doc/schemas/lightning-checkmessage.json +++ b/doc/schemas/lightning-checkmessage.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "checkmessage", "title": "Command to check if a signature is from a node", "description": [ @@ -14,6 +13,7 @@ "message", "zbase" ], + "additionalProperties": false, "properties": { "message": { "type": "string", @@ -40,6 +40,7 @@ "verified", "pubkey" ], + "additionalProperties": false, "properties": { "verified": { "type": "boolean", diff --git a/doc/schemas/lightning-checkrune.json b/doc/schemas/lightning-checkrune.json index 53bbf56e2..973b72b78 100644 --- a/doc/schemas/lightning-checkrune.json +++ b/doc/schemas/lightning-checkrune.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "checkrune", "title": "Command to Validate Rune", @@ -16,6 +15,7 @@ "required": [ "rune" ], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -57,6 +57,7 @@ "required": [ "valid" ], + "additionalProperties": false, "properties": { "valid": { "type": "boolean", diff --git a/doc/schemas/lightning-close.json b/doc/schemas/lightning-close.json index 5b79881e9..8a60692da 100644 --- a/doc/schemas/lightning-close.json +++ b/doc/schemas/lightning-close.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "close", "title": "Command for closing channels with direct peers", "description": [ @@ -13,6 +12,7 @@ "required": [ "id" ], + "additionalProperties": true, "properties": { "id": { "type": "string", @@ -75,6 +75,7 @@ "required": [ "type" ], + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -91,6 +92,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", diff --git a/doc/schemas/lightning-commando-blacklist.json b/doc/schemas/lightning-commando-blacklist.json index 8bcb887ed..14c3722dd 100644 --- a/doc/schemas/lightning-commando-blacklist.json +++ b/doc/schemas/lightning-commando-blacklist.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "deprecated": [ "v23.08", @@ -16,6 +15,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "start": { "type": "u64", @@ -40,6 +40,7 @@ "required": [ "blacklist" ], + "additionalProperties": false, "properties": { "blacklist": { "type": "array", diff --git a/doc/schemas/lightning-commando-listrunes.json b/doc/schemas/lightning-commando-listrunes.json index 9aa4913ea..d41e54ea6 100644 --- a/doc/schemas/lightning-commando-listrunes.json +++ b/doc/schemas/lightning-commando-listrunes.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "deprecated": [ "v23.08", @@ -16,6 +15,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -29,6 +29,7 @@ "required": [ "runes" ], + "additionalProperties": false, "properties": { "runes": { "type": "array", diff --git a/doc/schemas/lightning-commando-rune.json b/doc/schemas/lightning-commando-rune.json index 3929a992b..5f9905f27 100644 --- a/doc/schemas/lightning-commando-rune.json +++ b/doc/schemas/lightning-commando-rune.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "deprecated": [ "v23.08", "v25.02" @@ -13,6 +12,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -64,6 +64,7 @@ "rune", "unique_id" ], + "additionalProperties": false, "properties": { "rune": { "type": "string", diff --git a/doc/schemas/lightning-commando.json b/doc/schemas/lightning-commando.json index 3db442e70..7ab46fd4c 100644 --- a/doc/schemas/lightning-commando.json +++ b/doc/schemas/lightning-commando.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "commando", "title": "Command to Send a Command to a Remote Peer", "description": [ @@ -12,6 +11,7 @@ "peer_id", "method" ], + "additionalProperties": false, "properties": { "peer_id": { "type": "pubkey", @@ -57,6 +57,7 @@ }, "response": { "required": [], + "additionalProperties": true, "properties": {}, "pre_return_value_notes": [ "On success, the return depends on the *method* invoked." diff --git a/doc/schemas/lightning-connect.json b/doc/schemas/lightning-connect.json index 41a36c231..0fb8a06e1 100644 --- a/doc/schemas/lightning-connect.json +++ b/doc/schemas/lightning-connect.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "connect", "title": "Command for connecting to another lightning node", "description": [ @@ -15,6 +14,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "string", @@ -47,6 +47,7 @@ "direction", "address" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -97,6 +98,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -124,6 +126,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", diff --git a/doc/schemas/lightning-createinvoice.json b/doc/schemas/lightning-createinvoice.json index 28dbfc9cf..85452ccee 100644 --- a/doc/schemas/lightning-createinvoice.json +++ b/doc/schemas/lightning-createinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "createinvoice", "title": "Low-level invoice creation", "description": [ @@ -13,6 +12,7 @@ "label", "preimage" ], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -50,6 +50,7 @@ "description", "expires_at" ], + "additionalProperties": false, "properties": { "label": { "type": "string", diff --git a/doc/schemas/lightning-createonion.json b/doc/schemas/lightning-createonion.json index bcf1faa7f..074825725 100644 --- a/doc/schemas/lightning-createonion.json +++ b/doc/schemas/lightning-createonion.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "createonion", "title": "Low-level command to create a custom onion", "description": [ @@ -12,6 +11,7 @@ "hops", "assocdata" ], + "additionalProperties": false, "properties": { "hops": { "type": "array", @@ -66,6 +66,7 @@ "onion", "shared_secrets" ], + "additionalProperties": false, "properties": { "onion": { "type": "hex", diff --git a/doc/schemas/lightning-createrune.json b/doc/schemas/lightning-createrune.json index 878c3555e..2c1e8c8c2 100644 --- a/doc/schemas/lightning-createrune.json +++ b/doc/schemas/lightning-createrune.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "createrune", "title": "Command to Create/Update Rune for Authorizing Remote Peer Access", @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -67,6 +67,7 @@ "rune", "unique_id" ], + "additionalProperties": false, "properties": { "rune": { "type": "string", diff --git a/doc/schemas/lightning-datastore.json b/doc/schemas/lightning-datastore.json index 2e33fc4fe..c5429c6bd 100644 --- a/doc/schemas/lightning-datastore.json +++ b/doc/schemas/lightning-datastore.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "datastore", "title": "Command for storing (plugin) data", "description": [ @@ -11,6 +10,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "description": [ @@ -74,6 +74,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "type": "array", diff --git a/doc/schemas/lightning-datastoreusage.json b/doc/schemas/lightning-datastoreusage.json index f700a4917..66db95eab 100644 --- a/doc/schemas/lightning-datastoreusage.json +++ b/doc/schemas/lightning-datastoreusage.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.11", "rpc": "datastoreusage", "title": "Command for listing datastore usage info", @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "key": { "oneOf": [ @@ -35,6 +35,7 @@ "required": [ "datastoreusage" ], + "additionalProperties": false, "properties": { "datastoreusage": { "type": "object", diff --git a/doc/schemas/lightning-decode.json b/doc/schemas/lightning-decode.json index d1eb5e79b..abe5c4da6 100644 --- a/doc/schemas/lightning-decode.json +++ b/doc/schemas/lightning-decode.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "rpc": "decode", "title": "Command for decoding an invoice string (low-level)", @@ -12,6 +11,7 @@ "required": [ "string" ], + "additionalProperties": false, "properties": { "string": { "type": "string", @@ -29,6 +29,7 @@ "type", "valid" ], + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -54,6 +55,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -394,6 +396,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -479,6 +482,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -965,6 +969,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -1072,6 +1077,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -1758,6 +1764,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -1905,6 +1912,7 @@ "version", "hex" ], + "additionalProperties": false, "properties": { "version": {}, "hex": {}, @@ -1923,6 +1931,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -2161,6 +2170,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -2248,6 +2258,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -2293,6 +2304,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", diff --git a/doc/schemas/lightning-decodepay.json b/doc/schemas/lightning-decodepay.json index 5a31a934b..09433259c 100644 --- a/doc/schemas/lightning-decodepay.json +++ b/doc/schemas/lightning-decodepay.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "rpc": "decodepay", "title": "Command for decoding a bolt11 string (low-level)", @@ -12,6 +11,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -37,6 +37,7 @@ "payment_hash", "signature" ], + "additionalProperties": false, "properties": { "currency": { "type": "string", diff --git a/doc/schemas/lightning-deldatastore.json b/doc/schemas/lightning-deldatastore.json index 1b15c3766..b62e71468 100644 --- a/doc/schemas/lightning-deldatastore.json +++ b/doc/schemas/lightning-deldatastore.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "deldatastore", "title": "Command for removing (plugin) data", "description": [ @@ -13,6 +12,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "oneOf": [ @@ -42,6 +42,7 @@ "required": [ "key" ], + "additionalProperties": false, "properties": { "key": { "type": "array", diff --git a/doc/schemas/lightning-delforward.json b/doc/schemas/lightning-delforward.json index 671795446..5d0e4b764 100644 --- a/doc/schemas/lightning-delforward.json +++ b/doc/schemas/lightning-delforward.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "delforward", "title": "Command for removing a forwarding entry", "description": [ @@ -15,6 +14,7 @@ "in_htlc_id", "status" ], + "additionalProperties": false, "properties": { "in_channel": { "type": "short_channel_id", @@ -43,6 +43,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": {} }, "errors": [ diff --git a/doc/schemas/lightning-delinvoice.json b/doc/schemas/lightning-delinvoice.json index 66e492503..c6848c9f5 100644 --- a/doc/schemas/lightning-delinvoice.json +++ b/doc/schemas/lightning-delinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "delinvoice", "title": "Command for removing an invoice (or just its description)", "description": [ @@ -12,6 +11,7 @@ "label", "status" ], + "additionalProperties": true, "properties": { "label": { "oneOf": [ @@ -53,6 +53,7 @@ "created_index", "expires_at" ], + "additionalProperties": true, "properties": { "label": { "type": "string", @@ -187,6 +188,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-delpay.json b/doc/schemas/lightning-delpay.json index 4d900f71e..4757da175 100644 --- a/doc/schemas/lightning-delpay.json +++ b/doc/schemas/lightning-delpay.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "delpay", "title": "Command for removing a completed or failed payment", "description": [ @@ -12,6 +11,7 @@ "payment_hash", "status" ], + "additionalProperties": false, "properties": { "payment_hash": { "type": "hash", @@ -53,6 +53,7 @@ "required": [ "payments" ], + "additionalProperties": false, "properties": { "payments": { "type": "array", diff --git a/doc/schemas/lightning-deprecations.json b/doc/schemas/lightning-deprecations.json index dc769df4c..92154659a 100644 --- a/doc/schemas/lightning-deprecations.json +++ b/doc/schemas/lightning-deprecations.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v24.02", "rpc": "deprecations", "title": "Command to enable/disable deprecated APIs", @@ -12,6 +11,7 @@ "required": [ "enable" ], + "additionalProperties": false, "properties": { "enable": { "type": "boolean", @@ -22,6 +22,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "errors": [ diff --git a/doc/schemas/lightning-dev-forget-channel.json b/doc/schemas/lightning-dev-forget-channel.json index d25477d3d..32dfd1a53 100644 --- a/doc/schemas/lightning-dev-forget-channel.json +++ b/doc/schemas/lightning-dev-forget-channel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "dev-forget-channel", "title": "Command to remove the DB entries from the database after a close", "warning": "For advanced users only", @@ -16,6 +15,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -50,6 +50,7 @@ "funding_unspent", "funding_txid" ], + "additionalProperties": false, "properties": { "forced": { "type": "boolean", diff --git a/doc/schemas/lightning-disableinvoicerequest.json b/doc/schemas/lightning-disableinvoicerequest.json index e0cf5f50b..85087d86d 100644 --- a/doc/schemas/lightning-disableinvoicerequest.json +++ b/doc/schemas/lightning-disableinvoicerequest.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v22.11", "rpc": "disableinvoicerequest", "title": "Command for removing an invoice request", @@ -15,6 +14,7 @@ "required": [ "invreq_id" ], + "additionalProperties": false, "properties": { "invreq_id": { "type": "string", @@ -32,6 +32,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "invreq_id": { "type": "hash", diff --git a/doc/schemas/lightning-disableoffer.json b/doc/schemas/lightning-disableoffer.json index cf918670d..22e43c520 100644 --- a/doc/schemas/lightning-disableoffer.json +++ b/doc/schemas/lightning-disableoffer.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "disableoffer", "title": "Command for removing an offer", "warning": "experimental-offers only", @@ -14,6 +13,7 @@ "required": [ "offer_id" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -31,6 +31,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", diff --git a/doc/schemas/lightning-disconnect.json b/doc/schemas/lightning-disconnect.json index 92a2b384b..e2f7e1084 100644 --- a/doc/schemas/lightning-disconnect.json +++ b/doc/schemas/lightning-disconnect.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "disconnect", "title": "Command for disconnecting from another lightning node", "description": [ @@ -11,6 +10,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -27,6 +27,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "errors": [ diff --git a/doc/schemas/lightning-emergencyrecover.json b/doc/schemas/lightning-emergencyrecover.json index 4fe17dde5..46090ab0f 100644 --- a/doc/schemas/lightning-emergencyrecover.json +++ b/doc/schemas/lightning-emergencyrecover.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "emergencyrecover", "title": "Command for recovering channels from the emergency.recovery file in the lightning directory", "description": [ @@ -11,12 +10,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "stubs" ], + "additionalProperties": false, "properties": { "stubs": { "type": "array", diff --git a/doc/schemas/lightning-enableoffer.json b/doc/schemas/lightning-enableoffer.json index 1970df3c3..bba9c2927 100644 --- a/doc/schemas/lightning-enableoffer.json +++ b/doc/schemas/lightning-enableoffer.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "disableoffer", "title": "Command for re-enabling an offer", "warning": "experimental-offers only", @@ -12,6 +11,7 @@ "required": [ "offer_id" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -29,6 +29,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", diff --git a/doc/schemas/lightning-feerates.json b/doc/schemas/lightning-feerates.json index fe20ebc2a..e6d23a62b 100644 --- a/doc/schemas/lightning-feerates.json +++ b/doc/schemas/lightning-feerates.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "feerates", "title": "Command for querying recommended onchain feerates", "description": [ @@ -23,6 +22,7 @@ "required": [ "style" ], + "additionalProperties": false, "properties": { "style": { "type": "string", @@ -40,6 +40,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "warning_missing_feerates": { "type": "string", diff --git a/doc/schemas/lightning-fetchinvoice.json b/doc/schemas/lightning-fetchinvoice.json index 143a005b5..c4e92030f 100644 --- a/doc/schemas/lightning-fetchinvoice.json +++ b/doc/schemas/lightning-fetchinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fetchinvoice", "title": "Command for fetch an invoice for an offer", "warning": "experimental-offers only", @@ -14,6 +13,7 @@ "required": [ "offer" ], + "additionalProperties": false, "properties": { "offer": { "type": "string", @@ -76,6 +76,7 @@ "invoice", "changes" ], + "additionalProperties": false, "properties": { "invoice": { "type": "string", diff --git a/doc/schemas/lightning-fundchannel.json b/doc/schemas/lightning-fundchannel.json index a952ebd2c..8bf5fbb65 100644 --- a/doc/schemas/lightning-fundchannel.json +++ b/doc/schemas/lightning-fundchannel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel", "title": "Command for establishing a lightning channel", "description": [ @@ -18,6 +17,7 @@ "id", "amount" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -127,6 +127,7 @@ "channel_type", "channel_id" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", diff --git a/doc/schemas/lightning-fundchannel_cancel.json b/doc/schemas/lightning-fundchannel_cancel.json index 6906172c6..1e8c7eb7e 100644 --- a/doc/schemas/lightning-fundchannel_cancel.json +++ b/doc/schemas/lightning-fundchannel_cancel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel_cancel", "title": "Command for completing channel establishment", "description": [ @@ -15,6 +14,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -28,6 +28,7 @@ "required": [ "cancelled" ], + "additionalProperties": false, "properties": { "cancelled": { "type": "string", diff --git a/doc/schemas/lightning-fundchannel_complete.json b/doc/schemas/lightning-fundchannel_complete.json index 7d57d9c8f..12b16c562 100644 --- a/doc/schemas/lightning-fundchannel_complete.json +++ b/doc/schemas/lightning-fundchannel_complete.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel_complete", "title": "Command for completing channel establishment", "description": [ @@ -14,6 +13,7 @@ "id", "psbt" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -34,6 +34,7 @@ "channel_id", "commitments_secured" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", diff --git a/doc/schemas/lightning-fundchannel_start.json b/doc/schemas/lightning-fundchannel_start.json index d6a2dac4f..1fa8e8a73 100644 --- a/doc/schemas/lightning-fundchannel_start.json +++ b/doc/schemas/lightning-fundchannel_start.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundchannel_start", "title": "Command for initiating channel establishment for a lightning channel", "description": [ @@ -14,6 +13,7 @@ "id", "amount" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -94,6 +94,7 @@ "scriptpubkey", "warning_usage" ], + "additionalProperties": false, "properties": { "funding_address": { "type": "string", diff --git a/doc/schemas/lightning-funderupdate.json b/doc/schemas/lightning-funderupdate.json index 63ffe0537..8b8a7878d 100644 --- a/doc/schemas/lightning-funderupdate.json +++ b/doc/schemas/lightning-funderupdate.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "funderupdate", "title": "Command for adjusting node funding v2 channels", "description": [ @@ -15,6 +14,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "policy": { "type": "string", @@ -152,6 +152,7 @@ "fuzz_percent", "fund_probability" ], + "additionalProperties": false, "properties": { "summary": { "type": "string", diff --git a/doc/schemas/lightning-fundpsbt.json b/doc/schemas/lightning-fundpsbt.json index 02691a13e..528eeb457 100644 --- a/doc/schemas/lightning-fundpsbt.json +++ b/doc/schemas/lightning-fundpsbt.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "fundpsbt", "title": "Command to populate PSBT inputs from the wallet", "description": [ @@ -13,6 +12,7 @@ "feerate", "startweight" ], + "additionalProperties": false, "properties": { "satoshi": { "type": "sat_or_all", @@ -88,6 +88,7 @@ "estimated_final_weight", "excess_msat" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-getemergencyrecoverdata.json b/doc/schemas/lightning-getemergencyrecoverdata.json index 3fc4bee3d..da0464eef 100644 --- a/doc/schemas/lightning-getemergencyrecoverdata.json +++ b/doc/schemas/lightning-getemergencyrecoverdata.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getemergencyrecoverdata", "title": "Command to fetch data from the emergency.recover file", "description": [ @@ -9,12 +8,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "filedata" ], + "additionalProperties": false, "properties": { "filedata": { "type": "hex", diff --git a/doc/schemas/lightning-getinfo.json b/doc/schemas/lightning-getinfo.json index 39529d13e..7863923f4 100644 --- a/doc/schemas/lightning-getinfo.json +++ b/doc/schemas/lightning-getinfo.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getinfo", "title": "Command to receive all information about the Core Lightning node.", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { @@ -30,6 +30,7 @@ "lightning-dir", "address" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -179,6 +180,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -233,6 +235,7 @@ "required": [ "type" ], + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -264,6 +267,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", @@ -306,6 +310,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", diff --git a/doc/schemas/lightning-getlog.json b/doc/schemas/lightning-getlog.json index 10585dab9..1d230e43f 100644 --- a/doc/schemas/lightning-getlog.json +++ b/doc/schemas/lightning-getlog.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getlog", "title": "Command to show logs.", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "level": { "type": "string", @@ -37,6 +37,7 @@ "bytes_max", "log" ], + "additionalProperties": false, "properties": { "created_at": { "type": "string", diff --git a/doc/schemas/lightning-getroute.json b/doc/schemas/lightning-getroute.json index eba3009d8..e64feecc8 100644 --- a/doc/schemas/lightning-getroute.json +++ b/doc/schemas/lightning-getroute.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getroute", "title": "Command for routing a payment (low-level)", "description": [ @@ -18,6 +17,7 @@ "amount_msat", "riskfactor" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -80,6 +80,7 @@ "required": [ "route" ], + "additionalProperties": false, "properties": { "route": { "type": "array", diff --git a/doc/schemas/lightning-getroutes.json b/doc/schemas/lightning-getroutes.json index 12cabd461..6020b16a6 100644 --- a/doc/schemas/lightning-getroutes.json +++ b/doc/schemas/lightning-getroutes.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "getroutes", "title": "Command for routing a payment (EXPERIMENTAL)", "added": "v24.08", @@ -28,6 +27,7 @@ "maxfee_msat", "final_cltv" ], + "additionalProperties": false, "properties": { "source": { "type": "pubkey", @@ -75,6 +75,7 @@ "probability_ppm", "routes" ], + "additionalProperties": false, "properties": { "probability_ppm": { "type": "u64", diff --git a/doc/schemas/lightning-help.json b/doc/schemas/lightning-help.json index 3a8a54b13..bba7058e5 100644 --- a/doc/schemas/lightning-help.json +++ b/doc/schemas/lightning-help.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "help", "title": "Command to return all information about RPC commands.", "description": [ @@ -11,6 +10,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "command": { "type": "string", @@ -24,6 +24,7 @@ "required": [ "help" ], + "additionalProperties": false, "properties": { "help": { "type": "array", diff --git a/doc/schemas/lightning-invoice.json b/doc/schemas/lightning-invoice.json index aa8289178..2efda2c50 100644 --- a/doc/schemas/lightning-invoice.json +++ b/doc/schemas/lightning-invoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "invoice", "title": "Command for accepting payments", "description": [ @@ -13,6 +12,7 @@ "label", "description" ], + "additionalProperties": false, "properties": { "amount_msat": { "type": "msat_or_any", @@ -111,6 +111,7 @@ "bolt11", "payment_secret" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", diff --git a/doc/schemas/lightning-invoicerequest.json b/doc/schemas/lightning-invoicerequest.json index 6bf56281e..6773f6d6b 100644 --- a/doc/schemas/lightning-invoicerequest.json +++ b/doc/schemas/lightning-invoicerequest.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v22.11", "rpc": "invoicerequest", "title": "Command for offering payments", @@ -14,6 +13,7 @@ "amount", "description" ], + "additionalProperties": false, "properties": { "amount": { "type": "msat", @@ -62,6 +62,7 @@ "bolt12", "used" ], + "additionalProperties": false, "properties": { "invreq_id": { "type": "hash", diff --git a/doc/schemas/lightning-keysend.json b/doc/schemas/lightning-keysend.json index 01896e756..b945bd885 100644 --- a/doc/schemas/lightning-keysend.json +++ b/doc/schemas/lightning-keysend.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "keysend", "title": "Send funds to a node without an invoice", "description": [ @@ -16,6 +15,7 @@ "destination", "amount_msat" ], + "additionalProperties": false, "properties": { "destination": { "type": "pubkey", @@ -123,6 +123,7 @@ "amount_sent_msat", "status" ], + "additionalProperties": false, "properties": { "payment_preimage": { "type": "secret", diff --git a/doc/schemas/lightning-listchannels.json b/doc/schemas/lightning-listchannels.json index f53ba5a47..209da1c10 100644 --- a/doc/schemas/lightning-listchannels.json +++ b/doc/schemas/lightning-listchannels.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listchannels", "title": "Command to query active lightning channels in the entire network", "description": [ @@ -14,6 +13,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "short_channel_id": { "type": "short_channel_id", @@ -39,6 +39,7 @@ "required": [ "channels" ], + "additionalProperties": false, "properties": { "channels": { "type": "array", diff --git a/doc/schemas/lightning-listclosedchannels.json b/doc/schemas/lightning-listclosedchannels.json index 5e8365dc9..e52162484 100644 --- a/doc/schemas/lightning-listclosedchannels.json +++ b/doc/schemas/lightning-listclosedchannels.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.05", "rpc": "listclosedchannels", "title": "Get data on our closed historical channels", @@ -13,6 +12,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -26,6 +26,7 @@ "required": [ "closedchannels" ], + "additionalProperties": false, "properties": { "closedchannels": { "type": "array", @@ -70,6 +71,7 @@ "alias": { "type": "object", "required": [], + "additionalProperties": false, "properties": { "local": { "type": "short_channel_id", diff --git a/doc/schemas/lightning-listconfigs.json b/doc/schemas/lightning-listconfigs.json index a299a4556..5224d80fc 100644 --- a/doc/schemas/lightning-listconfigs.json +++ b/doc/schemas/lightning-listconfigs.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listconfigs", "title": "Command to list all configuration options.", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "config": { "type": "string", @@ -23,6 +23,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "configs": { "added": "v23.08", diff --git a/doc/schemas/lightning-listdatastore.json b/doc/schemas/lightning-listdatastore.json index b3db1fb48..53911c20a 100644 --- a/doc/schemas/lightning-listdatastore.json +++ b/doc/schemas/lightning-listdatastore.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listdatastore", "title": "Command for listing (plugin) data", "description": [ @@ -9,6 +8,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "key": { "oneOf": [ @@ -34,6 +34,7 @@ "required": [ "datastore" ], + "additionalProperties": false, "properties": { "datastore": { "type": "array", diff --git a/doc/schemas/lightning-listforwards.json b/doc/schemas/lightning-listforwards.json index 2ac134967..ad0113b26 100644 --- a/doc/schemas/lightning-listforwards.json +++ b/doc/schemas/lightning-listforwards.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listforwards", "title": "Command showing all htlcs and their information", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "status": { "type": "string", @@ -75,6 +75,7 @@ "required": [ "forwards" ], + "additionalProperties": false, "properties": { "forwards": { "type": "array", @@ -227,6 +228,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -293,6 +295,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-listfunds.json b/doc/schemas/lightning-listfunds.json index 64ffea6a8..3db9c116a 100644 --- a/doc/schemas/lightning-listfunds.json +++ b/doc/schemas/lightning-listfunds.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listfunds", "title": "Command showing all funds currently managed by the Core Lightning node", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "spent": { "type": "boolean", @@ -27,6 +27,7 @@ "outputs", "channels" ], + "additionalProperties": false, "properties": { "outputs": { "type": "array", @@ -97,6 +98,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -133,6 +135,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "reserved": { "type": "boolean", @@ -254,6 +257,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "state": { "type": "string", @@ -290,6 +294,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "state": { "type": "string", diff --git a/doc/schemas/lightning-listhtlcs.json b/doc/schemas/lightning-listhtlcs.json index 67d0c8727..5d9ef1c4e 100644 --- a/doc/schemas/lightning-listhtlcs.json +++ b/doc/schemas/lightning-listhtlcs.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listhtlcs", "title": "Command for querying HTLCs", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "string", @@ -25,6 +25,7 @@ "required": [ "htlcs" ], + "additionalProperties": false, "properties": { "htlcs": { "type": "array", diff --git a/doc/schemas/lightning-listinvoicerequests.json b/doc/schemas/lightning-listinvoicerequests.json index e75be7c86..c34f51f85 100644 --- a/doc/schemas/lightning-listinvoicerequests.json +++ b/doc/schemas/lightning-listinvoicerequests.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v22.11", "rpc": "listinvoicerequests", "title": "Command for querying invoice_request status", @@ -13,6 +12,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "invreq_id": { "type": "string", @@ -33,6 +33,7 @@ "required": [ "invoicerequests" ], + "additionalProperties": false, "properties": { "invoicerequests": { "type": "array", diff --git a/doc/schemas/lightning-listinvoices.json b/doc/schemas/lightning-listinvoices.json index 775fe023f..ab06f6269 100644 --- a/doc/schemas/lightning-listinvoices.json +++ b/doc/schemas/lightning-listinvoices.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listinvoices", "title": "Command for querying invoice status", "description": [ @@ -14,6 +13,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "label": { "oneOf": [ @@ -84,6 +84,7 @@ "required": [ "invoices" ], + "additionalProperties": false, "properties": { "invoices": { "type": "array", @@ -181,6 +182,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-listnodes.json b/doc/schemas/lightning-listnodes.json index d4859e721..ce105a766 100644 --- a/doc/schemas/lightning-listnodes.json +++ b/doc/schemas/lightning-listnodes.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listnodes", "title": "Command to get the list of nodes in the known network.", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -25,6 +25,7 @@ "required": [ "nodes" ], + "additionalProperties": false, "properties": { "nodes": { "type": "array", @@ -124,6 +125,7 @@ } }, "if": { + "additionalProperties": true, "properties": { "type": { "type": "string", diff --git a/doc/schemas/lightning-listoffers.json b/doc/schemas/lightning-listoffers.json index dedca944c..553939b4e 100644 --- a/doc/schemas/lightning-listoffers.json +++ b/doc/schemas/lightning-listoffers.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listoffers", "title": "Command for listing offers", "warning": "experimental-offers only", @@ -13,6 +12,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", @@ -32,6 +32,7 @@ "required": [ "offers" ], + "additionalProperties": false, "properties": { "offers": { "type": "array", diff --git a/doc/schemas/lightning-listpays.json b/doc/schemas/lightning-listpays.json index a586bfc37..dca2689c2 100644 --- a/doc/schemas/lightning-listpays.json +++ b/doc/schemas/lightning-listpays.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listpays", "title": "Command for querying payment status", "description": [ @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -42,6 +42,7 @@ "required": [ "pays" ], + "additionalProperties": false, "properties": { "pays": { "type": "array", @@ -117,6 +118,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -171,6 +173,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-listpeerchannels.json b/doc/schemas/lightning-listpeerchannels.json index 9cd38c546..65dca837e 100644 --- a/doc/schemas/lightning-listpeerchannels.json +++ b/doc/schemas/lightning-listpeerchannels.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "listpeerchannels", "title": "Command returning data on channels of connected lightning nodes", @@ -15,6 +14,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -28,6 +28,7 @@ "required": [ "channels" ], + "additionalProperties": false, "properties": { "channels": { "type": "array", @@ -609,6 +610,7 @@ "alias": { "type": "object", "required": [], + "additionalProperties": false, "properties": { "local": { "type": "short_channel_id", @@ -848,6 +850,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "direction": { "enum": [ @@ -897,6 +900,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "direction": { "enum": [ @@ -950,6 +954,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "peer_connected": { "type": "boolean", @@ -960,6 +965,7 @@ } }, "then": { + "additionalProperties": true, "properties": { "reestablished": { "type": "boolean", diff --git a/doc/schemas/lightning-listpeers.json b/doc/schemas/lightning-listpeers.json index 1aa5837e9..c7396ec15 100644 --- a/doc/schemas/lightning-listpeers.json +++ b/doc/schemas/lightning-listpeers.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listpeers", "title": "Command returning data on connected lightning nodes", "description": [ @@ -20,6 +19,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -46,6 +46,7 @@ "required": [ "peers" ], + "additionalProperties": false, "properties": { "peers": { "type": "array", @@ -106,6 +107,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "type": { "enum": [ @@ -133,6 +135,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "enum": [ @@ -185,6 +188,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "type": { "enum": [ diff --git a/doc/schemas/lightning-listsendpays.json b/doc/schemas/lightning-listsendpays.json index aa2db4fc0..c525c31ff 100644 --- a/doc/schemas/lightning-listsendpays.json +++ b/doc/schemas/lightning-listsendpays.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listsendpays", "title": "Low-level command for querying sendpay status", "description": [ @@ -14,6 +13,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -75,6 +75,7 @@ "required": [ "payments" ], + "additionalProperties": false, "properties": { "payments": { "type": "array", @@ -192,6 +193,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -242,6 +244,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -284,6 +287,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-listsqlschemas.json b/doc/schemas/lightning-listsqlschemas.json index 72f30c6c9..334049e9f 100644 --- a/doc/schemas/lightning-listsqlschemas.json +++ b/doc/schemas/lightning-listsqlschemas.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "listsqlschemas", "title": "Command to example lightning-sql schemas", @@ -15,6 +14,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "table": { "type": "string" @@ -25,6 +25,7 @@ "required": [ "schemas" ], + "additionalProperties": false, "properties": { "schemas": { "type": "array", diff --git a/doc/schemas/lightning-listtransactions.json b/doc/schemas/lightning-listtransactions.json index 0f8d69f9c..0a095fdcf 100644 --- a/doc/schemas/lightning-listtransactions.json +++ b/doc/schemas/lightning-listtransactions.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "listtransactions", "title": "Command to get the list of transactions that was stored in the wallet.", "description": [ @@ -12,12 +11,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "transactions" ], + "additionalProperties": false, "properties": { "transactions": { "type": "array", diff --git a/doc/schemas/lightning-makesecret.json b/doc/schemas/lightning-makesecret.json index 3976a2f7a..0c532c8d6 100644 --- a/doc/schemas/lightning-makesecret.json +++ b/doc/schemas/lightning-makesecret.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "makesecret", "title": "Command for deriving pseudorandom key from HSM", "description": [ @@ -9,6 +8,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "hex": { "type": "hex", @@ -28,6 +28,7 @@ "required": [ "secret" ], + "additionalProperties": false, "properties": { "secret": { "type": "secret", diff --git a/doc/schemas/lightning-multifundchannel.json b/doc/schemas/lightning-multifundchannel.json index f2ad0fcb6..fa5e8f42a 100644 --- a/doc/schemas/lightning-multifundchannel.json +++ b/doc/schemas/lightning-multifundchannel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "multifundchannel", "title": "Command for establishing many lightning channels", "description": [ @@ -15,6 +14,7 @@ "required": [ "destinations" ], + "additionalProperties": false, "properties": { "destinations": { "type": "array", @@ -131,6 +131,7 @@ "txid", "channel_ids" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", diff --git a/doc/schemas/lightning-multiwithdraw.json b/doc/schemas/lightning-multiwithdraw.json index 1bc7a1ffb..f6d79bb18 100644 --- a/doc/schemas/lightning-multiwithdraw.json +++ b/doc/schemas/lightning-multiwithdraw.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "multiwithdraw", "title": "Command for withdrawing to multiple addresses", "description": [ @@ -11,6 +10,7 @@ "required": [ "outputs" ], + "additionalProperties": false, "properties": { "outputs": { "type": "array", @@ -51,6 +51,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", diff --git a/doc/schemas/lightning-newaddr.json b/doc/schemas/lightning-newaddr.json index 5402625d9..5072c07e8 100644 --- a/doc/schemas/lightning-newaddr.json +++ b/doc/schemas/lightning-newaddr.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "newaddr", "title": "Command for generating a new address to be used by Core Lightning", "description": [ @@ -13,6 +12,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "addresstype": { "type": "string", @@ -30,6 +30,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "p2tr": { "added": "v23.08", diff --git a/doc/schemas/lightning-notifications.json b/doc/schemas/lightning-notifications.json index 0ad713215..8768bfd64 100644 --- a/doc/schemas/lightning-notifications.json +++ b/doc/schemas/lightning-notifications.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "notifications", "title": "Command to set up notifications.", "description": [ @@ -13,6 +12,7 @@ "required": [ "enable" ], + "additionalProperties": false, "properties": { "enable": { "type": "boolean", @@ -23,6 +23,7 @@ } }, "response": { + "additionalProperties": false, "properties": {}, "post_return_value_notes": [ "On success, if *enable* was *true*, notifications will be forwarded from then on." diff --git a/doc/schemas/lightning-offer.json b/doc/schemas/lightning-offer.json index 974284863..799d5bf31 100644 --- a/doc/schemas/lightning-offer.json +++ b/doc/schemas/lightning-offer.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "offer", "title": "Command for accepting payments", "warning": "experimental-offers only", @@ -14,6 +13,7 @@ "required": [ "amount" ], + "additionalProperties": false, "properties": { "amount": { "oneOf": [ @@ -112,6 +112,7 @@ "used", "created" ], + "additionalProperties": false, "properties": { "offer_id": { "type": "hash", diff --git a/doc/schemas/lightning-openchannel_abort.json b/doc/schemas/lightning-openchannel_abort.json index 1019097fa..b9c261246 100644 --- a/doc/schemas/lightning-openchannel_abort.json +++ b/doc/schemas/lightning-openchannel_abort.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_abort", "title": "Command to abort a channel to a peer", "description": [ @@ -11,6 +10,7 @@ "required": [ "channel_id" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -26,6 +26,7 @@ "channel_canceled", "reason" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", diff --git a/doc/schemas/lightning-openchannel_bump.json b/doc/schemas/lightning-openchannel_bump.json index 02ed873e7..7a173f63f 100644 --- a/doc/schemas/lightning-openchannel_bump.json +++ b/doc/schemas/lightning-openchannel_bump.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_bump", "title": "Command to initiate a channel RBF", "description": [ @@ -15,6 +14,7 @@ "amount", "initialpsbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -51,6 +51,7 @@ "commitments_secured", "funding_serial" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", diff --git a/doc/schemas/lightning-openchannel_init.json b/doc/schemas/lightning-openchannel_init.json index 2fcc4caf3..63c230c9d 100644 --- a/doc/schemas/lightning-openchannel_init.json +++ b/doc/schemas/lightning-openchannel_init.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_init", "title": "Command to initiate a channel to a peer", "description": [ @@ -13,6 +12,7 @@ "amount", "initialpsbt" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -91,6 +91,7 @@ "commitments_secured", "funding_serial" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", diff --git a/doc/schemas/lightning-openchannel_signed.json b/doc/schemas/lightning-openchannel_signed.json index fe11cc585..d8baa28f2 100644 --- a/doc/schemas/lightning-openchannel_signed.json +++ b/doc/schemas/lightning-openchannel_signed.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_signed", "title": "Command to conclude a channel open", "description": [ @@ -16,6 +15,7 @@ "channel_id", "signed_psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -37,6 +37,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", diff --git a/doc/schemas/lightning-openchannel_update.json b/doc/schemas/lightning-openchannel_update.json index 0ca4e10e4..f44ede659 100644 --- a/doc/schemas/lightning-openchannel_update.json +++ b/doc/schemas/lightning-openchannel_update.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "openchannel_update", "title": "Command to update a collab channel open", "description": [ @@ -16,6 +15,7 @@ "channel_id", "psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -39,6 +39,7 @@ "channel_type", "funding_outnum" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -128,6 +129,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "commitments_secured": { "type": "boolean", diff --git a/doc/schemas/lightning-parsefeerate.json b/doc/schemas/lightning-parsefeerate.json index 76cea9547..67d2c9b54 100644 --- a/doc/schemas/lightning-parsefeerate.json +++ b/doc/schemas/lightning-parsefeerate.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "parsefeerate", "title": "Command for parsing a feerate string to a feerate", "description": [ @@ -11,6 +10,7 @@ "required": [ "feerate_str" ], + "additionalProperties": false, "properties": { "feerate_str": { "type": "string", @@ -22,6 +22,7 @@ }, "response": { "required": [], + "additionalProperties": false, "properties": { "perkw": { "type": "u32", diff --git a/doc/schemas/lightning-pay.json b/doc/schemas/lightning-pay.json index c8e1de1aa..832330a2e 100644 --- a/doc/schemas/lightning-pay.json +++ b/doc/schemas/lightning-pay.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "pay", "title": "Command for sending a payment to a BOLT11 invoice", "description": [ @@ -15,6 +14,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -122,6 +122,7 @@ "amount_sent_msat", "status" ], + "additionalProperties": false, "properties": { "payment_preimage": { "type": "secret", diff --git a/doc/schemas/lightning-ping.json b/doc/schemas/lightning-ping.json index 9c28e7578..d08e50a8c 100644 --- a/doc/schemas/lightning-ping.json +++ b/doc/schemas/lightning-ping.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "ping", "title": "Command to check if a node is up.", "description": [ @@ -11,6 +10,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "pubkey", @@ -38,6 +38,7 @@ "required": [ "totlen" ], + "additionalProperties": false, "properties": { "totlen": { "type": "u16", diff --git a/doc/schemas/lightning-plugin.json b/doc/schemas/lightning-plugin.json index 9861f8390..48a6956d8 100644 --- a/doc/schemas/lightning-plugin.json +++ b/doc/schemas/lightning-plugin.json @@ -17,6 +17,7 @@ "directory" ] ], + "additionalProperties": true, "properties": { "subcommand": { "type": "string", @@ -66,6 +67,7 @@ "required": [ "command" ], + "additionalProperties": true, "properties": { "command": { "type": "string", @@ -84,6 +86,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "command": { "type": "string", @@ -141,6 +144,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "command": { "type": "string", diff --git a/doc/schemas/lightning-preapproveinvoice.json b/doc/schemas/lightning-preapproveinvoice.json index fda80038d..e99a85d7d 100644 --- a/doc/schemas/lightning-preapproveinvoice.json +++ b/doc/schemas/lightning-preapproveinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "preapproveinvoice", "title": "Ask the HSM to preapprove an invoice (low-level)", @@ -20,6 +19,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", @@ -31,6 +31,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "author": [ diff --git a/doc/schemas/lightning-preapprovekeysend.json b/doc/schemas/lightning-preapprovekeysend.json index 165ba2b80..84d471ed6 100644 --- a/doc/schemas/lightning-preapprovekeysend.json +++ b/doc/schemas/lightning-preapprovekeysend.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "preapprovekeysend", "title": "Ask the HSM to preapprove a keysend payment (low-level)", @@ -22,6 +21,7 @@ "payment_hash", "amount_msat" ], + "additionalProperties": false, "properties": { "destination": { "type": "pubkey", @@ -49,6 +49,7 @@ } }, "response": { + "additionalProperties": false, "properties": {} }, "author": [ diff --git a/doc/schemas/lightning-reckless.json b/doc/schemas/lightning-reckless.json index 51075f5ee..245ba7f23 100644 --- a/doc/schemas/lightning-reckless.json +++ b/doc/schemas/lightning-reckless.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "reckless", "title": "Issue a command to the reckless plugin manager utility", "description": [ @@ -11,6 +10,7 @@ "required": [ "command" ], + "additionalProperties": false, "properties": { "command": { "type": "string", @@ -64,6 +64,7 @@ "log", "result" ], + "additionalProperties": false, "properties": { "result": { "type": "array", diff --git a/doc/schemas/lightning-recover.json b/doc/schemas/lightning-recover.json index 62a111a62..0112a5e2b 100644 --- a/doc/schemas/lightning-recover.json +++ b/doc/schemas/lightning-recover.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "recover", "title": "Reinitialize Your Node for Recovery", "description": [ @@ -15,6 +14,7 @@ "required": [ "hsmsecret" ], + "additionalProperties": false, "properties": { "hsmsecret": { "type": "string", @@ -28,6 +28,7 @@ "required": [ "result" ], + "additionalProperties": false, "properties": { "result": { "type": "string", diff --git a/doc/schemas/lightning-recoverchannel.json b/doc/schemas/lightning-recoverchannel.json index 6ab6cf327..b1b256d36 100644 --- a/doc/schemas/lightning-recoverchannel.json +++ b/doc/schemas/lightning-recoverchannel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "recoverchannel", "title": "Command for recovering channels bundeled in an array in the form of *Static Backup*", "description": [ @@ -13,6 +12,7 @@ "required": [ "scb" ], + "additionalProperties": false, "properties": { "scb": { "type": "array", @@ -29,6 +29,7 @@ "required": [ "stubs" ], + "additionalProperties": false, "properties": { "stubs": { "type": "array", diff --git a/doc/schemas/lightning-renepay.json b/doc/schemas/lightning-renepay.json index 6541a7246..905ccbe0f 100644 --- a/doc/schemas/lightning-renepay.json +++ b/doc/schemas/lightning-renepay.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "renepay", "title": "Command for sending a payment to a BOLT11 invoice", "added": "v23.08", @@ -16,6 +15,7 @@ "required": [ "invstring" ], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -94,6 +94,7 @@ "amount_sent_msat", "status" ], + "additionalProperties": false, "properties": { "payment_preimage": { "type": "secret", diff --git a/doc/schemas/lightning-renepaystatus.json b/doc/schemas/lightning-renepaystatus.json index e72313482..d03e8bd93 100644 --- a/doc/schemas/lightning-renepaystatus.json +++ b/doc/schemas/lightning-renepaystatus.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "renepaystatus", "title": "Command for quering the status of previous renepay attempts", "added": "v23.08", @@ -12,6 +11,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -25,6 +25,7 @@ "required": [ "paystatus" ], + "additionalProperties": false, "properties": { "paystatus": { "type": "array", diff --git a/doc/schemas/lightning-reserveinputs.json b/doc/schemas/lightning-reserveinputs.json index c7402f9fb..9b49ff778 100644 --- a/doc/schemas/lightning-reserveinputs.json +++ b/doc/schemas/lightning-reserveinputs.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "reserveinputs", "title": "Construct a transaction and reserve the UTXOs it spends", "description": [ @@ -13,6 +12,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -38,6 +38,7 @@ "required": [ "reservations" ], + "additionalProperties": false, "properties": { "reservations": { "type": "array", diff --git a/doc/schemas/lightning-sendcustommsg.json b/doc/schemas/lightning-sendcustommsg.json index b498cdbd3..de1f667e2 100644 --- a/doc/schemas/lightning-sendcustommsg.json +++ b/doc/schemas/lightning-sendcustommsg.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v0.10.1", "rpc": "sendcustommsg", "title": "Low-level interface to send protocol messages to peers", @@ -15,6 +14,7 @@ "node_id", "msg" ], + "additionalProperties": false, "properties": { "node_id": { "type": "pubkey", @@ -34,6 +34,7 @@ "required": [ "status" ], + "additionalProperties": false, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-sendinvoice.json b/doc/schemas/lightning-sendinvoice.json index 568251ff6..527be340d 100644 --- a/doc/schemas/lightning-sendinvoice.json +++ b/doc/schemas/lightning-sendinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendinvoice", "title": "Command for send an invoice for an offer", "warning": "experimental-offers only", @@ -15,6 +14,7 @@ "invreq", "label" ], + "additionalProperties": false, "properties": { "invreq": { "type": "string", @@ -59,6 +59,7 @@ "created_index", "expires_at" ], + "additionalProperties": false, "properties": { "label": { "type": "string", @@ -129,6 +130,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-sendonion.json b/doc/schemas/lightning-sendonion.json index 394af6c15..38526ff36 100644 --- a/doc/schemas/lightning-sendonion.json +++ b/doc/schemas/lightning-sendonion.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendonion", "title": "Send a payment with a custom onion packet", "description": [ @@ -23,6 +22,7 @@ "first_hop", "payment_hash" ], + "additionalProperties": false, "properties": { "onion": { "type": "hex", @@ -40,6 +40,7 @@ "amount_msat", "delay" ], + "additionalProperties": true, "properties": { "id": { "type": "pubkey", @@ -136,6 +137,7 @@ "created_at", "amount_sent_msat" ], + "additionalProperties": true, "properties": { "created_index": { "added": "v23.11", @@ -218,6 +220,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -266,6 +269,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-sendpay.json b/doc/schemas/lightning-sendpay.json index ad7f6f692..752a9a088 100644 --- a/doc/schemas/lightning-sendpay.json +++ b/doc/schemas/lightning-sendpay.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendpay", "title": "Low-level command for sending a payment via a route", "description": [ @@ -18,6 +17,7 @@ "route", "payment_hash" ], + "additionalProperties": false, "properties": { "route": { "type": "array", @@ -29,6 +29,7 @@ "delay", "channel" ], + "additionalProperties": true, "properties": { "id": { "type": "pubkey", @@ -134,6 +135,7 @@ "created_at", "amount_sent_msat" ], + "additionalProperties": false, "properties": { "created_index": { "added": "v23.11", @@ -237,6 +239,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", @@ -280,6 +283,7 @@ }, { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-sendpsbt.json b/doc/schemas/lightning-sendpsbt.json index e5fea02ba..9a6e12ca9 100644 --- a/doc/schemas/lightning-sendpsbt.json +++ b/doc/schemas/lightning-sendpsbt.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "sendpsbt", "title": "Command to finalize, extract and send a partially signed bitcoin transaction (PSBT).", "description": [ @@ -11,6 +10,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -32,6 +32,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", diff --git a/doc/schemas/lightning-setchannel.json b/doc/schemas/lightning-setchannel.json index 8f0f99489..b4ad09755 100644 --- a/doc/schemas/lightning-setchannel.json +++ b/doc/schemas/lightning-setchannel.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "setchannel", "title": "Command for configuring fees / htlc range advertized for a channel", "description": [ @@ -13,6 +12,7 @@ "required": [ "id" ], + "additionalProperties": false, "properties": { "id": { "type": "string", @@ -66,6 +66,7 @@ "required": [ "channels" ], + "additionalProperties": false, "properties": { "channels": { "type": "array", diff --git a/doc/schemas/lightning-setconfig.json b/doc/schemas/lightning-setconfig.json index 5955f235c..6980744f3 100644 --- a/doc/schemas/lightning-setconfig.json +++ b/doc/schemas/lightning-setconfig.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "setconfig", "title": "Dynamically change some config options", @@ -16,6 +15,7 @@ "required": [ "config" ], + "additionalProperties": false, "properties": { "config": { "type": "string", @@ -45,6 +45,7 @@ "required": [ "config" ], + "additionalProperties": false, "properties": { "config": { "type": "object", diff --git a/doc/schemas/lightning-setpsbtversion.json b/doc/schemas/lightning-setpsbtversion.json index 870fa0c1f..9b8275ddb 100644 --- a/doc/schemas/lightning-setpsbtversion.json +++ b/doc/schemas/lightning-setpsbtversion.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "setpsbtversion", "title": "Command for setting PSBT version", "description": [ @@ -12,6 +11,7 @@ "psbt", "version" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -31,6 +31,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-showrunes.json b/doc/schemas/lightning-showrunes.json index e20bdef77..856f39b93 100644 --- a/doc/schemas/lightning-showrunes.json +++ b/doc/schemas/lightning-showrunes.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "showrunes", "title": "Command to list previously generated runes", @@ -10,6 +9,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "rune": { "type": "string", @@ -23,6 +23,7 @@ "required": [ "runes" ], + "additionalProperties": false, "properties": { "runes": { "type": "array", diff --git a/doc/schemas/lightning-signinvoice.json b/doc/schemas/lightning-signinvoice.json index 437a20715..bdad12198 100644 --- a/doc/schemas/lightning-signinvoice.json +++ b/doc/schemas/lightning-signinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "signinvoice", "title": "Low-level invoice signing", @@ -12,6 +11,7 @@ "required": [ "invstring" ], + "additionalProperties": false, "properties": { "invstring": { "type": "string", @@ -25,6 +25,7 @@ "required": [ "bolt11" ], + "additionalProperties": false, "properties": { "bolt11": { "type": "string", diff --git a/doc/schemas/lightning-signmessage.json b/doc/schemas/lightning-signmessage.json index f08af9ddc..f78be9e42 100644 --- a/doc/schemas/lightning-signmessage.json +++ b/doc/schemas/lightning-signmessage.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "signmessage", "title": "Command to create a signature from this node", "description": [ @@ -11,6 +10,7 @@ "required": [ "message" ], + "additionalProperties": false, "properties": { "message": { "type": "string", @@ -26,6 +26,7 @@ "recid", "zbase" ], + "additionalProperties": false, "properties": { "signature": { "type": "hex", diff --git a/doc/schemas/lightning-signpsbt.json b/doc/schemas/lightning-signpsbt.json index 3caf71967..c7cc03a08 100644 --- a/doc/schemas/lightning-signpsbt.json +++ b/doc/schemas/lightning-signpsbt.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "signpsbt", "title": "Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT).", "description": [ @@ -15,6 +14,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -37,6 +37,7 @@ "required": [ "signed_psbt" ], + "additionalProperties": false, "properties": { "signed_psbt": { "type": "string", diff --git a/doc/schemas/lightning-splice_init.json b/doc/schemas/lightning-splice_init.json index a26ab8542..a2aba24a3 100644 --- a/doc/schemas/lightning-splice_init.json +++ b/doc/schemas/lightning-splice_init.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "splice_init", "title": "Command to initiate a channel to a peer", @@ -14,6 +13,7 @@ "channel_id", "relative_amount" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -51,6 +51,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-splice_signed.json b/doc/schemas/lightning-splice_signed.json index 1c8001420..c88cb0ca8 100644 --- a/doc/schemas/lightning-splice_signed.json +++ b/doc/schemas/lightning-splice_signed.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "splice_signed", "title": "Command to initiate a channel to a peer", @@ -16,6 +15,7 @@ "channel_id", "psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -42,6 +42,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex", diff --git a/doc/schemas/lightning-splice_update.json b/doc/schemas/lightning-splice_update.json index 05e104e01..8ab5f2bd3 100644 --- a/doc/schemas/lightning-splice_update.json +++ b/doc/schemas/lightning-splice_update.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "splice_update", "title": "Command to initiate a channel to a peer", @@ -22,6 +21,7 @@ "channel_id", "psbt" ], + "additionalProperties": false, "properties": { "channel_id": { "type": "hash", @@ -42,6 +42,7 @@ "psbt", "commitments_secured" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-sql-template.json b/doc/schemas/lightning-sql-template.json index 517b2f7ee..806399d45 100644 --- a/doc/schemas/lightning-sql-template.json +++ b/doc/schemas/lightning-sql-template.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.02", "rpc": "sql", "title": "Command to do complex queries on list commands", @@ -18,6 +17,7 @@ "required": [ "query" ], + "additionalProperties": false, "properties": { "query": { "type": "string", @@ -32,6 +32,7 @@ "required": [ "rows" ], + "additionalProperties": false, "properties": { "rows": { "type": "array", diff --git a/doc/schemas/lightning-staticbackup.json b/doc/schemas/lightning-staticbackup.json index c929a0099..2955e91a3 100644 --- a/doc/schemas/lightning-staticbackup.json +++ b/doc/schemas/lightning-staticbackup.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "staticbackup", "title": "Command for deriving getting SCB of all the existing channels", "description": [ @@ -9,12 +8,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "scb" ], + "additionalProperties": false, "properties": { "scb": { "type": "array", diff --git a/doc/schemas/lightning-stop.json b/doc/schemas/lightning-stop.json index f0b50555c..7cd9ebef7 100644 --- a/doc/schemas/lightning-stop.json +++ b/doc/schemas/lightning-stop.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "stop", "title": "Command to shutdown the Core Lightning node.", "description": [ @@ -9,12 +8,14 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": {} }, "response": { "required": [ "result" ], + "additionalProperties": false, "properties": { "result": { "type": "string", diff --git a/doc/schemas/lightning-txdiscard.json b/doc/schemas/lightning-txdiscard.json index 3def4f741..6d63ebc67 100644 --- a/doc/schemas/lightning-txdiscard.json +++ b/doc/schemas/lightning-txdiscard.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "txdiscard", "title": "Abandon a transaction from txprepare, release inputs", "description": [ @@ -11,6 +10,7 @@ "required": [ "txid" ], + "additionalProperties": false, "properties": { "txid": { "type": "txid", @@ -25,6 +25,7 @@ "unsigned_tx", "txid" ], + "additionalProperties": false, "properties": { "unsigned_tx": { "type": "hex", diff --git a/doc/schemas/lightning-txprepare.json b/doc/schemas/lightning-txprepare.json index 09233e343..158aaa33a 100644 --- a/doc/schemas/lightning-txprepare.json +++ b/doc/schemas/lightning-txprepare.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "txprepare", "title": "Command to prepare to withdraw funds from the internal wallet", "description": [ @@ -13,6 +12,7 @@ "required": [ "outputs" ], + "additionalProperties": false, "properties": { "outputs": { "type": "array", @@ -54,6 +54,7 @@ "unsigned_tx", "txid" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-txsend.json b/doc/schemas/lightning-txsend.json index 9aa113f01..6a9091fa0 100644 --- a/doc/schemas/lightning-txsend.json +++ b/doc/schemas/lightning-txsend.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "txsend", "title": "Command to sign and send transaction from txprepare", "description": [ @@ -11,6 +10,7 @@ "required": [ "txid" ], + "additionalProperties": false, "properties": { "txid": { "type": "txid", @@ -26,6 +26,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-unreserveinputs.json b/doc/schemas/lightning-unreserveinputs.json index 4aedcce8f..1dc0b01c9 100644 --- a/doc/schemas/lightning-unreserveinputs.json +++ b/doc/schemas/lightning-unreserveinputs.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "unreserveinputs", "title": "Release reserved UTXOs", "description": [ @@ -11,6 +10,7 @@ "required": [ "psbt" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", @@ -31,6 +31,7 @@ "required": [ "reservations" ], + "additionalProperties": false, "properties": { "reservations": { "type": "array", @@ -85,6 +86,7 @@ "required": [ "reserved_to_block" ], + "additionalProperties": false, "properties": { "txid": {}, "vout": {}, diff --git a/doc/schemas/lightning-upgradewallet.json b/doc/schemas/lightning-upgradewallet.json index a7c5e1bef..5f7672d09 100644 --- a/doc/schemas/lightning-upgradewallet.json +++ b/doc/schemas/lightning-upgradewallet.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "upgradewallet", "title": "Command to spend all P2SH-wrapped inputs into a Native Segwit output", "description": [ @@ -9,6 +8,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "feerate": { "type": "feerate", @@ -31,6 +31,7 @@ "required": [ "upgraded_outs" ], + "additionalProperties": false, "properties": { "upgraded_outs": { "type": "u64", diff --git a/doc/schemas/lightning-utxopsbt.json b/doc/schemas/lightning-utxopsbt.json index 2fca19e57..dcb614b5f 100644 --- a/doc/schemas/lightning-utxopsbt.json +++ b/doc/schemas/lightning-utxopsbt.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "utxopsbt", "title": "Command to populate PSBT inputs from given UTXOs", "description": [ @@ -16,6 +15,7 @@ "startweight", "utxos" ], + "additionalProperties": false, "properties": { "satoshi": { "type": "sat_or_all", @@ -93,6 +93,7 @@ "estimated_final_weight", "excess_msat" ], + "additionalProperties": false, "properties": { "psbt": { "type": "string", diff --git a/doc/schemas/lightning-wait.json b/doc/schemas/lightning-wait.json index adca69fbb..a3d298ea3 100644 --- a/doc/schemas/lightning-wait.json +++ b/doc/schemas/lightning-wait.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "added": "v23.08", "rpc": "wait", "title": "Command to wait for creations, changes and deletions", @@ -14,6 +13,7 @@ "indexname", "nextvalue" ], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", @@ -55,6 +55,7 @@ "required": [ "subsystem" ], + "additionalProperties": false, "properties": { "subsystem": { "type": "string", diff --git a/doc/schemas/lightning-waitanyinvoice.json b/doc/schemas/lightning-waitanyinvoice.json index 413429758..632babf01 100644 --- a/doc/schemas/lightning-waitanyinvoice.json +++ b/doc/schemas/lightning-waitanyinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitanyinvoice", "title": "Command for waiting for payments", "description": [ @@ -11,6 +10,7 @@ ], "request": { "required": [], + "additionalProperties": false, "properties": { "lastpay_index": { "type": "u64", @@ -34,6 +34,7 @@ "created_index", "expires_at" ], + "additionalProperties": true, "properties": { "label": { "type": "string", @@ -105,6 +106,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-waitblockheight.json b/doc/schemas/lightning-waitblockheight.json index c86e13a44..5c84425ae 100644 --- a/doc/schemas/lightning-waitblockheight.json +++ b/doc/schemas/lightning-waitblockheight.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitblockheight", "title": "Command for waiting for blocks on the blockchain", "description": [ @@ -11,6 +10,7 @@ "required": [ "blockheight" ], + "additionalProperties": false, "properties": { "blockheight": { "type": "u32", @@ -31,6 +31,7 @@ "required": [ "blockheight" ], + "additionalProperties": false, "properties": { "blockheight": { "type": "u32", diff --git a/doc/schemas/lightning-waitinvoice.json b/doc/schemas/lightning-waitinvoice.json index fb089dc29..ca83174eb 100644 --- a/doc/schemas/lightning-waitinvoice.json +++ b/doc/schemas/lightning-waitinvoice.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitinvoice", "title": "Command for waiting for specific payment", "description": [ @@ -11,6 +10,7 @@ "required": [ "label" ], + "additionalProperties": true, "properties": { "label": { "oneOf": [ @@ -35,6 +35,7 @@ "created_index", "expires_at" ], + "additionalProperties": true, "properties": { "label": { "type": "string", @@ -106,6 +107,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-waitsendpay.json b/doc/schemas/lightning-waitsendpay.json index 1245e6b95..fb435002b 100644 --- a/doc/schemas/lightning-waitsendpay.json +++ b/doc/schemas/lightning-waitsendpay.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "waitsendpay", "title": "Command for sending a payment via a route", "description": [ @@ -13,6 +12,7 @@ "required": [ "payment_hash" ], + "additionalProperties": false, "properties": { "payment_hash": { "type": "hash", @@ -55,6 +55,7 @@ "created_at", "amount_sent_msat" ], + "additionalProperties": false, "properties": { "created_index": { "added": "v23.11", @@ -157,6 +158,7 @@ "allOf": [ { "if": { + "additionalProperties": true, "properties": { "status": { "type": "string", diff --git a/doc/schemas/lightning-withdraw.json b/doc/schemas/lightning-withdraw.json index ea23f4fd9..59ab07fe2 100644 --- a/doc/schemas/lightning-withdraw.json +++ b/doc/schemas/lightning-withdraw.json @@ -1,7 +1,6 @@ { "$schema": "../rpc-schema-draft.json", "type": "object", - "additionalProperties": false, "rpc": "withdraw", "title": "Command for withdrawing funds from the internal wallet", "description": [ @@ -12,6 +11,7 @@ "destination", "satoshi" ], + "additionalProperties": false, "properties": { "destination": { "type": "string", @@ -56,6 +56,7 @@ "tx", "txid" ], + "additionalProperties": false, "properties": { "tx": { "type": "hex",