doc/schemas: getsharedsecret, help, invoice, listchannels, listforwards

And a new "u8" type.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-06-16 10:35:17 +09:30
parent a9f49b5326
commit 74eeaa8213
16 changed files with 529 additions and 182 deletions

View File

@@ -232,6 +232,12 @@ def _extra_validator():
return False
return instance >= 0 and instance < 2**16
def is_u8(checker, instance):
"""8-bit integer"""
if not checker.is_type(instance, "integer"):
return False
return instance >= 0 and instance < 2**8
def is_short_channel_id(checker, instance):
"""Short channel id"""
if not checker.is_type(instance, "string"):
@@ -307,6 +313,7 @@ def _extra_validator():
"u64": is_u64,
"u32": is_u32,
"u16": is_u16,
"u8": is_u8,
"pubkey": is_pubkey,
"msat": is_msat,
"txid": is_txid,