Skip to content

Commit

Permalink
Move KnownHydraVersions to logs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed May 2, 2024
1 parent 8aacb1b commit b8b83e8
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
32 changes: 0 additions & 32 deletions hydra-node/json-schemas/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2033,35 +2033,3 @@ components:
enum: ["IPv6"]
ipv6:
type: string

MkHydraVersionedProtocolNumber:
type: object
required:
- hydraVersionedProtocolNumber
properties:
hydraVersionedProtocolNumber:
type: integer
minimum: 0

KnownHydraVersions:
oneOf:
- title: NoKnownHydraVersions
required:
- tag
properties:
tag:
type: string
enum: ["NoKnownHydraVersions"]
- title: KnownHydraVersions
type: object
required:
- tag
- fromKnownHydraVersions
properties:
tag:
type: string
enum: ["KnownHydraVersions"]
fromKnownHydraVersions:
type: array
items:
$ref: "api.yaml#/components/schemas/MkHydraVersionedProtocolNumber"
36 changes: 34 additions & 2 deletions hydra-node/json-schemas/logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1661,9 +1661,9 @@ definitions:
type: object
$ref: "api.yaml#/components/schemas/IP"
ourVersion:
$ref: "api.yaml#/components/schemas/MkHydraVersionedProtocolNumber"
$ref: "logs.yaml#/components/schemas/HydraVersionedProtocolNumber"
theirVersions:
$ref: "api.yaml#/components/schemas/KnownHydraVersions"
$ref: "logs.yaml#/components/schemas/KnownHydraVersions"

- title: ReceivedMessage
type: object
Expand Down Expand Up @@ -2262,3 +2262,35 @@ definitions:
type: string
party:
$ref: "api.yaml#/components/schemas/Party"

HydraVersionedProtocolNumber:
type: object
required:
- hydraVersionedProtocolNumber
properties:
hydraVersionedProtocolNumber:
type: integer
minimum: 0

KnownHydraVersions:
oneOf:
- title: NoKnownHydraVersions
required:
- tag
properties:
tag:
type: string
enum: ["NoKnownHydraVersions"]
- title: KnownHydraVersions
type: object
required:
- tag
- fromKnownHydraVersions
properties:
tag:
type: string
enum: ["KnownHydraVersions"]
fromKnownHydraVersions:
type: array
items:
$ref: "logs.yaml#/components/schemas/HydraVersionedProtocolNumber"

0 comments on commit b8b83e8

Please sign in to comment.