Skip to content

Commit

Permalink
schemas: "description" field in "wait(any)invoice" is optional since …
Browse files Browse the repository at this point in the history
…BOLT12

For BOLT12 invoices, the "description" is field missing in the invoice
responses. Update the schemas accordingly:

- `doc/schemas/lightning-waitanyinvoice.json`
- `doc/schemas/lightning-waitinvoice.json`

Also commit the generated msggen, cln-grpc, cln-rpc and pyln-grpc-proto files.

Changelog-Fixed: schemas: Make description in `Wait(any)invoiceResponse` optional to handle BOLT12
  • Loading branch information
laanwj committed Sep 13, 2024
1 parent c5fc1b5 commit 308c173
Show file tree
Hide file tree
Showing 9 changed files with 2,368 additions and 1,184 deletions.
4 changes: 2 additions & 2 deletions cln-grpc/proto/node.proto

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

4 changes: 2 additions & 2 deletions cln-grpc/src/convert.rs

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

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

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

2 changes: 0 additions & 2 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -33516,7 +33516,6 @@
"response": {
"required": [
"label",
"description",
"payment_hash",
"status",
"created_index",
Expand Down Expand Up @@ -33877,7 +33876,6 @@
"response": {
"required": [
"label",
"description",
"payment_hash",
"status",
"created_index",
Expand Down
1,414 changes: 707 additions & 707 deletions contrib/pyln-grpc-proto/pyln/grpc/node_pb2.py

Large diffs are not rendered by default.

2,114 changes: 1,650 additions & 464 deletions contrib/pyln-grpc-proto/pyln/grpc/node_pb2_grpc.py

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions contrib/pyln-grpc-proto/pyln/grpc/primitives_pb2.py

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

1 change: 0 additions & 1 deletion doc/schemas/lightning-waitanyinvoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"response": {
"required": [
"label",
"description",
"payment_hash",
"status",
"created_index",
Expand Down
1 change: 0 additions & 1 deletion doc/schemas/lightning-waitinvoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"response": {
"required": [
"label",
"description",
"payment_hash",
"status",
"created_index",
Expand Down

0 comments on commit 308c173

Please sign in to comment.