core-lightning/doc/schemas/checkrune.request.json
Rusty Russell bb38f83b88 checkrune: make nodeid and method optional.
nodeid is only useful when we know the peer we're talking to (e.g. commando).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
No-schema-diff-check: We're simply making optional, not deprecating!
2023-09-12 15:19:02 +09:30

35 lines
801 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"rune"
],
"added": "v23.08",
"properties": {
"rune": {
"type": "string",
"description": "rune to check for authorization"
},
"nodeid": {
"type": "string",
"description": "node id of requesting node *(required until v23.11)*"
},
"method": {
"type": "string",
"description": "method for which rune needs to be validated *(required until v23.11)*"
},
"params": {
"oneOf": [
{
"type": "array",
"description": "array of positional parameters"
},
{
"type": "object",
"description": "parameters for method"
}
]
}
}
}