2021-06-16 03:10:17 +02:00
|
|
|
{
|
2021-11-04 15:15:51 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": true,
|
|
|
|
"required": [
|
|
|
|
"command"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"command": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"start",
|
|
|
|
"stop",
|
|
|
|
"rescan",
|
|
|
|
"startdir",
|
|
|
|
"list"
|
|
|
|
],
|
|
|
|
"description": "the subcommand this is responding to"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"command": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"start",
|
|
|
|
"startdir",
|
|
|
|
"rescan",
|
|
|
|
"list"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"command",
|
|
|
|
"plugins"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"command": {},
|
|
|
|
"plugins": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"name",
|
2022-07-04 10:23:06 +02:00
|
|
|
"active",
|
|
|
|
"dynamic"
|
2021-11-04 15:15:51 +01:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "full pathname of the plugin"
|
|
|
|
},
|
|
|
|
"active": {
|
|
|
|
"type": "boolean",
|
2022-06-22 18:37:46 +02:00
|
|
|
"description": "status; plugin completed init and is operational, plugins are configured asynchronously."
|
2022-07-04 10:23:06 +02:00
|
|
|
},
|
|
|
|
"dynamic": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "plugin can be stopped or started without restarting lightningd"
|
2021-11-04 15:15:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-16 03:10:17 +02:00
|
|
|
},
|
2021-11-04 15:15:51 +01:00
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"command": {
|
|
|
|
"type": "string",
|
|
|
|
"enum": [
|
|
|
|
"stop"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"additionalProperties": false,
|
|
|
|
"required": [
|
|
|
|
"command",
|
|
|
|
"result"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"command": {},
|
|
|
|
"result": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "A message saying it successfully stopped"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2021-06-16 03:10:17 +02:00
|
|
|
}
|