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
..
2018-06-18 12:45:00 +02:00
2022-08-09 16:31:36 -05:00
2015-07-18 10:46:53 +09:30
2022-08-03 21:22:41 -05:00
2018-03-04 03:22:32 +01:00
2019-02-18 02:42:29 +00:00
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-05-14 11:43:46 +09:30
2018-06-08 17:56:48 +02:00
2015-11-20 06:45:19 +10:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-20 14:07:25 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-07-12 13:59:46 -05:00
2020-10-21 19:34:39 +02:00
2022-05-18 10:19:16 +09:30
2015-07-18 10:46:53 +09:30
2015-07-18 10:46:53 +09:30
2022-07-28 12:08:18 +09:30
2022-08-04 11:28:00 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
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
2022-07-14 12:24:48 -05:00
2022-07-19 17:55:31 +02:00
2022-04-07 06:53:26 +09:30
2022-07-14 12:24:48 -05:00
2022-07-29 08:46:14 -07:00
2022-07-17 08:51:02 +09:30
2022-07-18 20:50:04 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-08-09 16:31:36 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-22 16:57:27 +02:00
2022-07-29 16:33:06 +09:30
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-28 12:08:18 +09:30
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-31 21:53:05 +09:30
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-15 22:17:58 +09:30
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-14 12:24:48 -05:00
2022-07-28 12:08:18 +09:30
2022-07-20 19:28:33 +09:30
2015-07-20 14:07:40 +09:30
2015-07-20 14:07:40 +09:30
2022-07-28 12:08:18 +09:30
2021-07-30 19:17:47 +02:00
2022-07-10 21:09:41 -05:00
2022-07-21 15:21:12 -05:00
2022-04-07 06:53:26 +09:30
2022-07-12 13:59:46 -05:00
2022-03-01 09:38:40 +10:30