2022-04-01 06:12:45 +02:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
lightningd: change `msatoshi` args to `amount_msat`.
This is consistent with our output changes, and increases consistency.
It also keeps future sanity checks happy, that we only use JSON msat
helpers with '_msat' fields.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice`: `msatoshi` argument is now called `amount_msat` to match other fields.
Changelog-Deprecated: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice` `msatoshi` (use `amount_msat`)
2022-06-19 09:20:11 +02:00
|
|
|
"amount_msat",
|
2022-04-01 06:12:45 +02:00
|
|
|
"label",
|
|
|
|
"description"
|
|
|
|
],
|
|
|
|
"properties": {
|
lightningd: change `msatoshi` args to `amount_msat`.
This is consistent with our output changes, and increases consistency.
It also keeps future sanity checks happy, that we only use JSON msat
helpers with '_msat' fields.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice`: `msatoshi` argument is now called `amount_msat` to match other fields.
Changelog-Deprecated: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice` `msatoshi` (use `amount_msat`)
2022-06-19 09:20:11 +02:00
|
|
|
"amount_msat": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "msat_or_any",
|
2022-04-01 06:12:45 +02:00
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "string",
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
"label": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "string",
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "integer",
|
|
|
|
"description": ""
|
|
|
|
}
|
|
|
|
]
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"expiry": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"type": "u64",
|
2022-04-01 06:12:45 +02:00
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
"fallbacks": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"preimage": {
|
|
|
|
"type": "hex",
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
"exposeprivatechannels": {
|
2022-04-01 06:13:34 +02:00
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"type": "boolean",
|
|
|
|
"description": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "short_channel_id"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "short_channel_id"
|
|
|
|
}
|
|
|
|
]
|
2022-04-01 06:12:45 +02:00
|
|
|
},
|
|
|
|
"cltv": {
|
|
|
|
"type": "u32",
|
|
|
|
"description": ""
|
2022-04-01 06:13:34 +02:00
|
|
|
},
|
|
|
|
"deschashonly": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": ""
|
2022-04-01 06:12:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|