-
Notifications
You must be signed in to change notification settings - Fork 912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: fix listnodes schema, doc. #4750
doc: fix listnodes schema, doc. #4750
Conversation
Seems to be missing a
|
doc/lightning-listnodes.7.md
Outdated
- **funding_weight** (u32): the onchain weight you'll have to pay for a lease | ||
- **channel_fee_max_base_msat** (msat): the maximum base routing fee this node will charge during the lease | ||
- **channel_fee_max_proportional_thousandths** (msat): the maximum proportional routing fee this node will charge during the lease (in thousandths, not millionths like channel_update) | ||
- **compact_least** (hex, optional): the lease as represented in the node_announcement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **compact_least** (hex, optional): the lease as represented in the node_announcement | |
- **compact_lease** (hex, optional): the lease as represented in the node_announcement |
doc/schemas/listnodes.schema.json
Outdated
"type": "msat", | ||
"description": "the maximum proportional routing fee this node will charge during the lease (in thousandths, not millionths like channel_update)" | ||
}, | ||
"compact_least": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"compact_least": { | |
"compact_lease": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gah, this was clearly untested... :(
8fe650b
to
91eee17
Compare
Shows the dangers of "additionalProperties": true. We didn't have an else clause, so our incorrect (and, with DF, incomplete!) schema was accepted. I despair of getting anyone else to write a decent schema with these semantics :( Changelog-Fixed: doc: listnodes fields now correctly documented. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
91eee17
to
fe5714a
Compare
Regenerated the docs since it was failing with a different source hash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack a68cf25
Shows the dangers of "additionalProperties": true. We didn't have an else
clause, so our incorrect (and, with DF, incomplete!) schema was accepted.
I despair of getting anyone else to write a decent schema with these
semantics :(
Changelog-Fixed: doc: listnodes fields now correctly documented.
Signed-off-by: Rusty Russell rusty@rustcorp.com.au