jsonrpc: Add request schemas for decode and decodepay

This commit is contained in:
Christian Decker
2023-05-03 10:49:11 +02:00
committed by Rusty Russell
parent 90ede052ad
commit 1e614dfb8a
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"added": "v23.05",
"required": [
"string"
],
"properties": {
"string": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,17 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"added": "v23.05",
"required": [
"bolt11"
],
"properties": {
"bolt11": {
"type": "string"
},
"description": {
"type": "string"
}
}
}