mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
jsonrpc: Add request schemas for decode and decodepay
This commit is contained in:
committed by
Rusty Russell
parent
90ede052ad
commit
1e614dfb8a
14
doc/schemas/decode.request.json
Normal file
14
doc/schemas/decode.request.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
17
doc/schemas/decodepay.request.json
Normal file
17
doc/schemas/decodepay.request.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user