core-lightning/doc/schemas/reserveinputs.schema.json
Vincenzo Palazzo bd3c0ef85c jsonschema: Formatting json schema and regenerate docs
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-11-28 10:55:48 +10:30

50 lines
1.2 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"reservations"
],
"properties": {
"reservations": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"txid",
"vout",
"was_reserved",
"reserved",
"reserved_to_block"
],
"properties": {
"txid": {
"type": "txid",
"description": "the transaction id"
},
"vout": {
"type": "u32",
"description": "the output number which was reserved"
},
"was_reserved": {
"type": "boolean",
"description": "whether the input was already reserved"
},
"reserved": {
"type": "boolean",
"enum": [
true
],
"description": "whether the input is now reserved"
},
"reserved_to_block": {
"type": "u32",
"description": "what blockheight the reservation will expire"
}
}
}
}
}
}