rgb-cln/doc/schemas/invoicerequest.schema.json

45 lines
1.0 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"invreq_id",
"single_use",
"active",
"bolt12",
"used"
],
"properties": {
"invreq_id": {
"type": "hash",
"description": "the SHA256 hash of all invoice_request fields less than 160"
},
"active": {
"type": "boolean",
"enum": [
true
],
"description": "whether the invoice_request is currently active"
},
"single_use": {
"type": "boolean",
"description": "whether the invoice_request will become inactive after we pay an invoice for it"
},
"bolt12": {
"type": "string",
"description": "the bolt12 string starting with lnr"
},
"used": {
"type": "boolean",
"enum": [
false
],
"description": "whether the invoice_request has already been used"
},
"label": {
"type": "string",
"description": "the label provided when creating the invoice_request"
}
}
}