Skip to content

Commit

Permalink
doc: fix schema for listconfigs.
Browse files Browse the repository at this point in the history
We never call `listconfigs` in our tests with `experimental-offers` enabled,
so we didn't notice that the schema is wrong: it does not expect the
"plugin" field in 'fetchinvoice-noconnect'.

The next patch folds the fetchinvoice plugin into the offers plugin,
which is enabled even if `experimental-offers` isn't (for `decode`),
so we notice it.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and vincenzopalazzo committed Jul 9, 2024
1 parent 991f6dc commit 7f71e63
Show file tree
Hide file tree
Showing 8 changed files with 166 additions and 142 deletions.
5 changes: 5 additions & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@
"ListConfigs.configs.fee-per-satoshi.value_int": 1
},
"ListconfigsConfigsFetchinvoice-noconnect": {
"ListConfigs.configs.fetchinvoice-noconnect.plugin": 3,
"ListConfigs.configs.fetchinvoice-noconnect.set": 1,
"ListConfigs.configs.fetchinvoice-noconnect.source": 2
},
Expand Down Expand Up @@ -7047,6 +7048,10 @@
"added": "pre-v0.10.1",
"deprecated": false
},
"ListConfigs.configs.fetchinvoice-noconnect.plugin": {
"added": "v23.08",
"deprecated": false
},
"ListConfigs.configs.fetchinvoice-noconnect.set": {
"added": "pre-v0.10.1",
"deprecated": false
Expand Down
1 change: 1 addition & 0 deletions cln-grpc/proto/node.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cln-grpc/src/convert.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cln-rpc/src/model.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15426,6 +15426,13 @@
"description": [
"Source of configuration setting."
]
},
"plugin": {
"added": "v23.08",
"type": "string",
"description": [
"Plugin which registered this configuration setting."
]
}
}
},
Expand Down
284 changes: 142 additions & 142 deletions contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions contrib/pyln-testing/pyln/testing/grpc2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -2257,6 +2257,7 @@ def listconfigs_configs_fee_per_satoshi2py(m):

def listconfigs_configs_fetchinvoice_noconnect2py(m):
return remove_default({
"plugin": m.plugin, # PrimitiveField in generate_composite
"set": m.set, # PrimitiveField in generate_composite
"source": m.source, # PrimitiveField in generate_composite
})
Expand Down
7 changes: 7 additions & 0 deletions doc/schemas/lightning-listconfigs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,13 @@
"description": [
"Source of configuration setting."
]
},
"plugin": {
"added": "v23.08",
"type": "string",
"description": [
"Plugin which registered this configuration setting."
]
}
}
},
Expand Down

0 comments on commit 7f71e63

Please sign in to comment.