core-lightning/doc/schemas/notification
Erik De Smedt 83cc6c44e0 msggen: Schema for ConnectNotification + collisions
The schema in the docs for the `ConnectNotification` was faulty.
I've already fix this in https://github.com/ElementsProject/lightning/pull/7085

The new schema is

```
{
  "connect" :  {
    "address" : {
      "address" : "127.0.0.1",
      "port" : 38012,
      "type" : "ipv4"
  },
  "direction" : "in",
  "id" : "022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59"
  }
}
```

The `address` in the `connect` field will be encoded in protobuf as
`ConnectAddress`. However, this collides with the `ConnectAddress` that
is defined in the `connect` rpc-method.

This commit
- Updates the schema in `doc/schemas/notification/connect.json`
- Changes `msggen` to include an override to `PeerConnect` for any
  notification typename that starts with `Connect`

Both have an `address` field which is a composite type. This results in
naming collisions

schema's: Updated schema for connect-notification

schema for connect notification + overrides

Override ConnectAddress to `PeerConnectAddress` in protobuf
for notifications
2024-05-16 14:00:18 +02:00
..
block_added.request.json Add schema's notifications 2024-05-16 14:00:18 +02:00
block_added.schema.json Add schema's notifications 2024-05-16 14:00:18 +02:00
channel_open_failed.request.json Add schema's notifications 2024-05-16 14:00:18 +02:00
channel_open_failed.schema.json Add schema's notifications 2024-05-16 14:00:18 +02:00
channel_opened.request.json Add schema's notifications 2024-05-16 14:00:18 +02:00
channel_opened.schema.json Add schema's notifications 2024-05-16 14:00:18 +02:00
channel_state_changed.request.json Add schema's notifications 2024-05-16 14:00:18 +02:00
channel_state_changed.schema.json Add schema's notifications 2024-05-16 14:00:18 +02:00
connect.request.json Add schema's notifications 2024-05-16 14:00:18 +02:00
connect.schema.json msggen: Schema for ConnectNotification + collisions 2024-05-16 14:00:18 +02:00
custommsg.request.json Add schema's notifications 2024-05-16 14:00:18 +02:00
custommsg.schema.json Add schema's notifications 2024-05-16 14:00:18 +02:00