1{
2    "$schema": "http://json-schema.org/draft-07/schema#",
3    "type": "object",
4    "additionalProperties": false,
5    "required": [ "offer_id", "active", "single_use", "bolt12", "bolt12_unsigned", "used", "created" ],
6    "properties": {
7	"offer_id": {
8	    "type": "hex",
9	    "description": "the id of this offer (merkle hash of non-signature fields)",
10	    "maxLength": 64,
11	    "minLength": 64
12	},
13	"active": {
14	    "type": "boolean",
15	    "enum": [ true ],
16	    "description": "whether this will pay a matching incoming invoice"
17	},
18	"single_use": {
19	    "type": "boolean",
20	    "enum": [ true ],
21	    "description": "whether this expires as soon as it's paid out"
22	},
23	"bolt12": {
24	    "type": "string",
25	    "description": "the bolt12 encoding of the offer"
26	},
27	"bolt12_unsigned": {
28	    "type": "string",
29	    "description": "the bolt12 encoding of the offer, without a signature"
30	},
31	"used": {
32	    "type": "boolean",
33	    "enum": [ false ],
34	    "description": "True if an incoming invoice has been paid"
35	},
36	"created": {
37	    "type": "boolean",
38	    "description": "false if the offer already existed"
39	},
40	"label": {
41	    "type": "string",
42	    "description": "the (optional) user-specified label"
43	}
44    }
45}
46