core-lightning/doc/schemas/getroute.request.json
Christian Decker 990096f904 schema: Fix wrong type of CLTV in route
We were using `number` instead of `u32` which caused it to be
serialized to string with a decimal, which then would be rejected by
lightningd.

Changelog-Fixed: proto: Fixed a wrong number type being used in routes
2023-09-01 07:32:14 +09:30

47 lines
782 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"id",
"amount_msat",
"riskfactor"
],
"properties": {
"id": {
"type": "pubkey",
"description": ""
},
"amount_msat": {
"type": "msat",
"description": ""
},
"riskfactor": {
"type": "u64",
"description": ""
},
"cltv": {
"type": "u32",
"description": ""
},
"fromid": {
"type": "pubkey",
"description": ""
},
"fuzzpercent": {
"type": "u32",
"description": ""
},
"exclude": {
"type": "array",
"description": "",
"items": {
"type": "string"
}
},
"maxhops": {
"type": "u32",
"description": ""
}
}
}