Rusty Russell
25b4249f54
doc: fix decode schema for bolt11 routehints.
I decode a routehint in the next patch, and it barfed:
```
> assert only_one(l1.rpc.decode(inv['bolt11'])['routes'])['short_channel_id'] == alias23
tests/test_opening.py:1515:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
contrib/pyln-client/pyln/client/lightning.py:321: in wrapper
return self.call(name, payload=args)
contrib/pyln-testing/pyln/testing/utils.py:691: in call
schemas[1].validate(res)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Validator(schema={'$schema': 'http://json-...ft-07/schema#', 'allOf': [{'if': {'properties': {'type': {'enum': [...], ...iption': 'if this is f... diagnostics!', 'type': 'boolean'}}, 'required': ['type', 'valid'], ...}, format_checker=None)
args = ({'amount_msat': 10msat, 'created_at': 1659923931, 'currency': 'bcrt', 'description': 'desc', ...},), kwargs = {}
error = <ValidationError: "1msat is not of type 'u32'">
def validate(self, *args, **kwargs):
for error in self.iter_errors(*args, **kwargs):
> raise error
E jsonschema.exceptions.ValidationError: 1msat is not of type 'u32'
E
E Failed validating 'type' in schema['allOf'][6]['then']['properties']['routes']['items']['items']['properties']['fee_base_msat']:
E {'description': 'the base fee for payments', 'type': 'u32'}
E
E On instance['routes'][0][0]['fee_base_msat']:
E 1msat
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-08-09 16:31:36 -05:00
..
2022-02-11 16:02:25 +01:00
2021-11-28 10:55:48 +10:30
2022-02-11 16:02:25 +01:00
2021-11-28 10:55:48 +10:30
2022-07-28 12:08:18 +09:30
2022-07-28 12:08:18 +09:30
2022-07-28 12:08:18 +09:30
2022-08-09 11:57:18 +09:30
2022-07-28 12:08:18 +09:30
2022-07-28 12:08:18 +09:30
2021-11-28 10:55:48 +10:30
2022-02-11 16:02:25 +01:00
2022-07-19 17:55:31 +02:00
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-07-17 08:51:02 +09:30
2022-07-29 08:46:14 -07:00
2022-07-17 08:51:02 +09:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-08-09 16:31:36 -05:00
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-06-21 06:52:35 +09:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2022-07-04 22:14:06 +02:00
2022-07-21 14:19:06 +09:30
2022-07-04 22:14:06 +02:00
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-02-11 16:02:25 +01:00
2022-04-25 21:03:22 +09:30
2021-11-28 10:55:48 +10:30
2022-06-21 06:52:35 +09:30
2022-03-24 13:19:10 +10:30
2021-11-28 10:55:48 +10:30
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2022-02-11 16:02:25 +01:00
2022-02-08 12:06:16 +01:00
2022-07-28 12:08:18 +09:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2022-07-12 06:38:11 +09:30
2022-02-11 16:02:25 +01:00
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-30 09:38:17 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2022-04-04 20:26:04 +09:30
2022-02-11 16:02:25 +01:00
2022-07-31 21:53:05 +09:30
2022-04-02 09:46:01 +10:30
2022-04-04 20:26:04 +09:30
2022-04-02 09:46:01 +10:30
2022-06-21 06:52:35 +09:30
2022-07-15 22:17:58 +09:30
2022-07-14 12:24:48 -05:00
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-07-10 21:09:41 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-06-21 06:52:35 +09:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-03-22 18:45:41 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-21 14:19:06 +09:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2022-04-02 09:46:01 +10:30
2021-11-28 10:55:48 +10:30
2021-11-28 10:55:48 +10:30