rgb-cln/doc/schemas/commando.request.json

41 lines
869 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"peer_id",
"method"
],
"properties": {
"peer_id": {
"type": "pubkey",
"description": "peer to command"
},
"method": {
"type": "string",
"description": "method to invoke on peer"
},
"params": {
"oneOf": [
{
"type": "array",
"description": "array of positional parameters"
},
{
"type": "object",
"description": "parameters for method"
}
]
},
"rune": {
"type": "string",
"description": "rune to authorize the command"
},
"filter": {
"type": "object",
"additionalProperties": true,
"description": "filter to peer to apply to any successful result"
}
}
}