docs: drop dead example_hooks key from openchannel2_sign
What changed, and why it matters
This commit removes an unused documentation key called example_hooks from two JSON schema files. The key was never read by any tool and had no effect on the software's behavior. It is purely a cleanup of dead documentation content.
No security action needed. This is a documentation-only cleanup with no runtime effect.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit deletes the example_hooks array from doc/schemas/hook/openchannel2_sign.json and its generated copy in contrib/msggen/msggen/schema.json. The commit message explains that example_hooks is not part of the RPC meta-schema and is not consumed by tools/fromschema.py, whose FOOTER_KEY_SEQUENCE only recognizes examples and example_notifications. The same file already contains a valid examples block, so no rendered documentation is lost. No code logic changes.
Changed components
doc/schemas/hook/openchannel2_sign.jsoncontrib/msggen/msggen/schema.jsonInspect captured patch +0 / −22
### contrib/msggen/msggen/schema.json
@@ -44994,17 +44994,6 @@
}
}
},
- "example_hooks": [
- {
- "method": "openchannel2_sign",
- "params": {
- "openchannel2_sign": {
- "channel_id": "252d1b0a1e57895e841...",
- "psbt": "cHNidP8BADMCAAAAAQ+yBipSVZr..."
- }
- }
- }
- ],
"examples": [
{
"request": {
### doc/schemas/hook/openchannel2_sign.json
@@ -71,17 +71,6 @@
}
}
},
- "example_hooks": [
- {
- "method": "openchannel2_sign",
- "params": {
- "openchannel2_sign": {
- "channel_id": "252d1b0a1e57895e841...",
- "psbt": "cHNidP8BADMCAAAAAQ+yBipSVZr..."
- }
- }
- }
- ],
"examples": [
{
"request": {Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.