doc: add partid to sendonion schema.

We never called this except from plugins, which didn't test schema.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2022-03-31 13:41:27 +10:30
parent cd9ce92d28
commit 910d594214
2 changed files with 8 additions and 1 deletions

View File

@ -98,6 +98,7 @@ On success, an object is returned, containing:
- **label** (string, optional): the label, if given to sendpay
- **bolt11** (string, optional): the bolt11 string (if supplied)
- **bolt12** (string, optional): the bolt12 string (if supplied: **experimental-offers** only).
- **partid** (u64, optional): the partid (if supplied) to sendonion/sendpay
If **status** is "complete":
- **payment_preimage** (hex): the proof of payment: SHA256 of this **payment_hash** (always 64 characters)
@ -127,4 +128,4 @@ RESOURCES
Main web site: <https://github.com/ElementsProject/lightning>
[bolt04]: https://github.com/lightningnetwork/lightning-rfc/blob/master/04-onion-routing.md
[comment]: # ( SHA256STAMP:d588d85b79f709a57441479504ee8761331c852284ebb8effeab91a557437517)
[comment]: # ( SHA256STAMP:b8fd5d1c31eb2db10b2f32960752ae1c90150ffeb470c5ea635cb1034e8b1438)

View File

@ -61,6 +61,10 @@
"bolt12": {
"type": "string",
"description": "the bolt12 string (if supplied: **experimental-offers** only)."
},
"partid": {
"type": "u64",
"description": "the partid (if supplied) to sendonion/sendpay"
}
},
"allOf": [
@ -94,6 +98,7 @@
"label": {},
"bolt11": {},
"bolt12": {},
"partid": {},
"payment_preimage": {
"type": "hex",
"description": "the proof of payment: SHA256 of this **payment_hash**",
@ -131,6 +136,7 @@
"label": {},
"bolt11": {},
"bolt12": {},
"partid": {},
"message": {
"type": "string",
"description": "Monitor status with listpays or waitsendpay"