Skip to content

Commit

Permalink
Fix logs json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Apr 17, 2024
1 parent 4524157 commit 66bc7b6
Showing 1 changed file with 57 additions and 4 deletions.
61 changes: 57 additions & 4 deletions hydra-node/json-schemas/logs.yaml
Expand Up @@ -1579,19 +1579,16 @@ definitions:
- tag
- ttl
- message
- party
description: >-
Input representing some message received from peers on the network.
properties:
tag:
type: string
enum: ["NetworkInput"]
message:
$ref: "logs.yaml#/definitions/Message"
$ref: "logs.yaml#/definitions/NetworkMessage"
ttl:
type: number
party:
$ref: "api.yaml#/components/schemas/Party"
- title: ChainInput
type: object
additionalProperties: false
Expand All @@ -1608,6 +1605,62 @@ definitions:
chainEvent:
$ref: "logs.yaml#/definitions/ChainEvent"

NetworkMessage:
oneOf:
- title: ConnectivityMessage
type: object
additionalProperties: false
required:
- tag
- contents
properties:
tag:
type: string
enum: ["ConnectivityMessage"]
contents:
oneOf:
- title: Connected
type: object
additionalProperties: false
required:
- tag
- nodeId
properties:
tag:
type: string
enum: ["Connected"]
nodeId:
type: string

- title: Disconnected
type: object
additionalProperties: false
required:
- tag
- nodeId
properties:
tag:
type: string
enum: ["Disconnected"]
nodeId:
type: string

- title: OffchainProtocolMessage
type: object
additionalProperties: false
required:
- tag
- sender
- msg
properties:
tag:
type: string
enum: ["OffchainProtocolMessage"]
sender:
$ref: "api.yaml#/components/schemas/Party"
msg:
$ref: "logs.yaml#/definitions/Message"

Message:
description: >-
Messages exchanged by Hydra network peers over a broadcasting network.
Expand Down

0 comments on commit 66bc7b6

Please sign in to comment.