Skip to content

Commit 4dbebab

Browse files
committed
update openapi spec
1 parent a345b6e commit 4dbebab

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

hydra-node/json-schemas/api.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ channels:
7676
- $ref: "api.yaml#/components/messages/CommandFailed"
7777
- $ref: "api.yaml#/components/messages/RejectedInputBecauseUnsynced"
7878
- $ref: "api.yaml#/components/messages/SideLoadSnapshotRejected"
79+
- $ref: "api.yaml#/components/messages/SyncedStatusReport"
7980
- $ref: "api.yaml#/components/messages/PostTxOnChainFailed"
8081
- $ref: "api.yaml#/components/messages/PeerConnected"
8182
- $ref: "api.yaml#/components/messages/PeerDisconnected"
@@ -749,6 +750,13 @@ components:
749750
payload:
750751
$ref: "api.yaml#/components/schemas/SideLoadSnapshotRejected"
751752

753+
SyncedStatusReport:
754+
title: SyncedStatusReport
755+
description: |
756+
Emitted by the server while the node is catching-up with the chain or while in sync but near to become unsynced.
757+
payload:
758+
$ref: "api.yaml#/components/schemas/SyncedStatusReport"
759+
752760
IgnoredHeadInitializing:
753761
title: IgnoredHeadInitializing
754762
description: |
@@ -937,6 +945,7 @@ components:
937945
- $ref: "api.yaml#/components/schemas/CommandFailed"
938946
- $ref: "api.yaml#/components/schemas/RejectedInputBecauseUnsynced"
939947
- $ref: "api.yaml#/components/schemas/SideLoadSnapshotRejected"
948+
- $ref: "api.yaml#/components/schemas/SyncedStatusReport"
940949

941950
Greetings:
942951
type: object
@@ -1549,6 +1558,27 @@ components:
15491558
requirementFailure:
15501559
$ref: "api.yaml#/components/schemas/SideLoadRequirementFailure"
15511560

1561+
SyncedStatusReport:
1562+
type: object
1563+
required:
1564+
- tag
1565+
- chainSlot
1566+
- chainTime
1567+
- drift
1568+
- synced
1569+
properties:
1570+
tag:
1571+
type: string
1572+
enum: ["SyncedStatusReport"]
1573+
chainSlot:
1574+
$ref: "api.yaml#/components/schemas/ChainSlot"
1575+
chainTime:
1576+
$ref: "api.yaml#/components/schemas/UTCTime"
1577+
drift:
1578+
$ref: "api.yaml#/components/schemas/Natural"
1579+
synced:
1580+
$ref: "api.yaml#/components/schemas/SyncedStatus"
1581+
15521582
SideLoadRequirementFailure:
15531583
oneOf:
15541584
- title: SideLoadInitialSnapshotMismatch

0 commit comments

Comments
 (0)