doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
2021-07-02 02:11:34 +02:00
|
|
|
"required": [ "offer_id", "active", "single_use", "bolt12", "bolt12_unsigned", "used" ],
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"offer_id": {
|
|
|
|
"type": "hex",
|
|
|
|
"description": "the merkle hash of the offer",
|
|
|
|
"maxLength": 64,
|
|
|
|
"minLength": 64
|
|
|
|
},
|
|
|
|
"active": {
|
|
|
|
"type": "boolean",
|
2021-07-21 07:37:44 +02:00
|
|
|
"enum": [ false ],
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
"description": "Whether the offer can produce invoices/payments"
|
|
|
|
},
|
|
|
|
"single_use": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Whether the offer is disabled after first successful use"
|
|
|
|
},
|
|
|
|
"bolt12": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The bolt12 string representing this offer"
|
|
|
|
},
|
2021-07-02 02:11:34 +02:00
|
|
|
"bolt12_unsigned": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The bolt12 string representing this offer, without signature"
|
|
|
|
},
|
doc/schemas: disableoffer, disconnect, feerates, fetchinvoice, fundchannel, fundchannel_cancel, fundchannel_complete, fundchannel_start, fundpsbt, getinfo, getlog, getroute.
We also add a test for getlog, since it was never called by the
testsuite.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-26 09:35:01 +02:00
|
|
|
"used": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Whether the offer has had an invoice paid / payment made"
|
|
|
|
},
|
|
|
|
"label": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "The label provided when offer was created"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|