From dc924b8859cdcc046b558acfa37e1720171fcb2e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 1 Apr 2022 14:42:45 +1030 Subject: [PATCH] doc: set additionalProperties to false in all request schemas. Signed-off-by: Rusty Russell --- doc/schemas/close.request.json | 1 + doc/schemas/connect.request.json | 1 + doc/schemas/createonion.request.json | 1 + doc/schemas/datastore.request.json | 1 + doc/schemas/deldatastore.request.json | 1 + doc/schemas/fundpsbt.request.json | 1 + doc/schemas/keysend.request.json | 1 + doc/schemas/listdatastore.request.json | 1 + doc/schemas/listnodes.request.json | 1 + doc/schemas/listsendpays.request.json | 1 + doc/schemas/newaddr.request.json | 1 + doc/schemas/pay.request.json | 1 + doc/schemas/sendonion.request.json | 1 + doc/schemas/sendpay.request.json | 1 + doc/schemas/sendpsbt.request.json | 1 + doc/schemas/signpsbt.request.json | 1 + doc/schemas/txdiscard.request.json | 1 + doc/schemas/txprepare.request.json | 1 + doc/schemas/txsend.request.json | 1 + doc/schemas/utxopsbt.request.json | 1 + doc/schemas/waitanyinvoice.request.json | 1 + doc/schemas/waitinvoice.request.json | 1 + doc/schemas/waitsendpay.request.json | 1 + doc/schemas/withdraw.request.json | 1 + 24 files changed, 24 insertions(+) diff --git a/doc/schemas/close.request.json b/doc/schemas/close.request.json index c91f41a13a..67480ff1ea 100644 --- a/doc/schemas/close.request.json +++ b/doc/schemas/close.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "id" ], diff --git a/doc/schemas/connect.request.json b/doc/schemas/connect.request.json index 97c4018534..72920c7ada 100644 --- a/doc/schemas/connect.request.json +++ b/doc/schemas/connect.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "id" ], diff --git a/doc/schemas/createonion.request.json b/doc/schemas/createonion.request.json index 656023f4eb..07755cd77a 100644 --- a/doc/schemas/createonion.request.json +++ b/doc/schemas/createonion.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "hops", "assocdata" diff --git a/doc/schemas/datastore.request.json b/doc/schemas/datastore.request.json index d34db67706..f23105e391 100644 --- a/doc/schemas/datastore.request.json +++ b/doc/schemas/datastore.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "key" ], diff --git a/doc/schemas/deldatastore.request.json b/doc/schemas/deldatastore.request.json index 976425afbe..af73d1ac2f 100644 --- a/doc/schemas/deldatastore.request.json +++ b/doc/schemas/deldatastore.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "key" ], diff --git a/doc/schemas/fundpsbt.request.json b/doc/schemas/fundpsbt.request.json index a23d1935ac..3bc156acfa 100644 --- a/doc/schemas/fundpsbt.request.json +++ b/doc/schemas/fundpsbt.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "satoshi", "feerate", diff --git a/doc/schemas/keysend.request.json b/doc/schemas/keysend.request.json index b8e6f32421..022d18caa7 100644 --- a/doc/schemas/keysend.request.json +++ b/doc/schemas/keysend.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "destination", "msatoshi" diff --git a/doc/schemas/listdatastore.request.json b/doc/schemas/listdatastore.request.json index d1693ab2be..a299a89d10 100644 --- a/doc/schemas/listdatastore.request.json +++ b/doc/schemas/listdatastore.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "key" ], diff --git a/doc/schemas/listnodes.request.json b/doc/schemas/listnodes.request.json index 75e30b4b38..c7f1eb5561 100644 --- a/doc/schemas/listnodes.request.json +++ b/doc/schemas/listnodes.request.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required": [], + "additionalProperties": false, "properties": { "id": { "type": "pubkey" diff --git a/doc/schemas/listsendpays.request.json b/doc/schemas/listsendpays.request.json index 0ed227e81a..89c65cfd0b 100644 --- a/doc/schemas/listsendpays.request.json +++ b/doc/schemas/listsendpays.request.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required": [], + "additionalProperties": false, "properties": { "bolt11": { "type": "string" diff --git a/doc/schemas/newaddr.request.json b/doc/schemas/newaddr.request.json index 94eebe44f7..90caa5b152 100644 --- a/doc/schemas/newaddr.request.json +++ b/doc/schemas/newaddr.request.json @@ -2,6 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "required": [], + "additionalProperties": false, "properties": { "addresstype": { "type": "string", diff --git a/doc/schemas/pay.request.json b/doc/schemas/pay.request.json index e2c939b1ba..1bbd5c5073 100644 --- a/doc/schemas/pay.request.json +++ b/doc/schemas/pay.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "bolt11" ], diff --git a/doc/schemas/sendonion.request.json b/doc/schemas/sendonion.request.json index 884ce85c4a..36ac75f9d3 100644 --- a/doc/schemas/sendonion.request.json +++ b/doc/schemas/sendonion.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "onion", "first_hop", diff --git a/doc/schemas/sendpay.request.json b/doc/schemas/sendpay.request.json index 541ac26661..889eb8c9eb 100644 --- a/doc/schemas/sendpay.request.json +++ b/doc/schemas/sendpay.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "route", "payment_hash" diff --git a/doc/schemas/sendpsbt.request.json b/doc/schemas/sendpsbt.request.json index f4f4ea9886..6d2c6aceec 100644 --- a/doc/schemas/sendpsbt.request.json +++ b/doc/schemas/sendpsbt.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "psbt" ], diff --git a/doc/schemas/signpsbt.request.json b/doc/schemas/signpsbt.request.json index 1c5ff03830..1841440c96 100644 --- a/doc/schemas/signpsbt.request.json +++ b/doc/schemas/signpsbt.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "psbt" ], diff --git a/doc/schemas/txdiscard.request.json b/doc/schemas/txdiscard.request.json index e69bf747d6..1872037822 100644 --- a/doc/schemas/txdiscard.request.json +++ b/doc/schemas/txdiscard.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "txid" ], diff --git a/doc/schemas/txprepare.request.json b/doc/schemas/txprepare.request.json index 0a161b3271..b450756480 100644 --- a/doc/schemas/txprepare.request.json +++ b/doc/schemas/txprepare.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "outputs" ], diff --git a/doc/schemas/txsend.request.json b/doc/schemas/txsend.request.json index e69bf747d6..1872037822 100644 --- a/doc/schemas/txsend.request.json +++ b/doc/schemas/txsend.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "txid" ], diff --git a/doc/schemas/utxopsbt.request.json b/doc/schemas/utxopsbt.request.json index 9d8541d09a..8fe22e6bf3 100644 --- a/doc/schemas/utxopsbt.request.json +++ b/doc/schemas/utxopsbt.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "satoshi", "feerate", diff --git a/doc/schemas/waitanyinvoice.request.json b/doc/schemas/waitanyinvoice.request.json index ed73b9db1f..8263023190 100644 --- a/doc/schemas/waitanyinvoice.request.json +++ b/doc/schemas/waitanyinvoice.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [], "properties": { "lastpay_index": { diff --git a/doc/schemas/waitinvoice.request.json b/doc/schemas/waitinvoice.request.json index b3ceab08d5..18cc4093d5 100644 --- a/doc/schemas/waitinvoice.request.json +++ b/doc/schemas/waitinvoice.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "label" ], diff --git a/doc/schemas/waitsendpay.request.json b/doc/schemas/waitsendpay.request.json index 833a929dda..af3d9d2b42 100644 --- a/doc/schemas/waitsendpay.request.json +++ b/doc/schemas/waitsendpay.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "payment_hash" ], diff --git a/doc/schemas/withdraw.request.json b/doc/schemas/withdraw.request.json index 0637f1f16a..55ec644623 100644 --- a/doc/schemas/withdraw.request.json +++ b/doc/schemas/withdraw.request.json @@ -1,6 +1,7 @@ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": false, "required": [ "destination" ],