doc: Adding missing *.schema.json

Adding missing *.schema.json files for rpc commands to create consolidated json files.
Updating and deleting other as per requirement.
This commit is contained in:
ShahanaFarooqui 2024-02-02 15:18:30 +10:30 committed by Rusty Russell
parent e8c8c8887b
commit d9dd3a1840
5 changed files with 84 additions and 96 deletions

View file

@ -1965,6 +1965,18 @@
}
}
},
"commando.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"any": {
"type": "object",
"description": "the return depends on the *method* invoked"
}
}
},
"connect.request.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
@ -14591,6 +14603,23 @@
}
}
},
"recover.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"added": "v24.05",
"enum": [
"Recovery restart in progress"
]
}
}
},
"recoverchannel.request.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
@ -15693,54 +15722,6 @@
}
}
},
"setchannelfee.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"base",
"ppm",
"channels"
],
"properties": {
"base": {
"type": "u32",
"description": "The fee_base_msat value"
},
"ppm": {
"type": "u32",
"description": "The fee_proportional_millionths value"
},
"channels": {
"type": "array",
"description": "channel(s) whose rate is now set",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"peer_id",
"channel_id"
],
"properties": {
"peer_id": {
"type": "pubkey",
"description": "The node_id of the peer"
},
"channel_id": {
"type": "hex",
"description": "The channel_id of the channel",
"minLength": 64,
"maxLength": 64
},
"short_channel_id": {
"type": "short_channel_id",
"description": "the short_channel_id (if locked in)"
}
}
}
}
}
},
"setconfig.request.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
@ -15837,6 +15818,20 @@
}
}
},
"setpsbtversion.schema.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"psbt"
],
"properties": {
"psbt": {
"type": "string",
"description": "a converted PSBT of the requested version"
}
}
},
"showrunes.request.json": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",

View file

@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [],
"properties": {
"any": {
"type": "object",
"description": "the return depends on the *method* invoked"
}
}
}

View file

@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"result"
],
"properties": {
"result": {
"type": "string",
"added": "v24.05",
"enum": [
"Recovery restart in progress"
]
}
}
}

View file

@ -1,48 +0,0 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"base",
"ppm",
"channels"
],
"properties": {
"base": {
"type": "u32",
"description": "The fee_base_msat value"
},
"ppm": {
"type": "u32",
"description": "The fee_proportional_millionths value"
},
"channels": {
"type": "array",
"description": "channel(s) whose rate is now set",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"peer_id",
"channel_id"
],
"properties": {
"peer_id": {
"type": "pubkey",
"description": "The node_id of the peer"
},
"channel_id": {
"type": "hex",
"description": "The channel_id of the channel",
"minLength": 64,
"maxLength": 64
},
"short_channel_id": {
"type": "short_channel_id",
"description": "the short_channel_id (if locked in)"
}
}
}
}
}
}

View file

@ -0,0 +1,12 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": ["psbt"],
"properties": {
"psbt": {
"type": "string",
"description": "a converted PSBT of the requested version"
}
}
}