Skip to content

Commit

Permalink
Promote ApiEpochInfo to a top-level definition.
Browse files Browse the repository at this point in the history
Additionally, we rename this structure to `epochInfo`, in keeping with
the convention for top-level definitions.
  • Loading branch information
jonathanknowles authored and KtorZ committed Jul 1, 2020
1 parent a60c277 commit ba78e2c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions specifications/api/swagger.yaml
Expand Up @@ -49,6 +49,15 @@ x-epochNumber: &epochNumber
minimum: 0
example: 14

x-epochInfo: &epochInfo
type: object
required:
- epoch_number
- epoch_start_time
properties:
epoch_number: *epochNumber
epoch_start_time: *date

x-blockId: &blockId
description: The hash of genesis block
type: string
Expand Down Expand Up @@ -759,15 +768,6 @@ components:
id: *addressId
state: *addressState

ApiEpochInfo: &ApiEpochInfo
type: object
required:
- epoch_number
- epoch_start_time
properties:
epoch_number: *epochNumber
epoch_start_time: *date

ApiNetworkTip: &ApiNetworkTip
description: A network tip
type: object
Expand All @@ -789,7 +789,7 @@ components:
sync_progress: *networkInformationSyncProgress
node_tip: *networkInformationNodeTip
network_tip: *ApiNetworkTip
next_epoch: *ApiEpochInfo
next_epoch: *epochInfo

ApiNetworkClock: &ApiNetworkClock
<<: *networkInformationNtpStatus
Expand Down Expand Up @@ -907,7 +907,7 @@ components:
properties:
status: *delegationStatus
target: *delegationTarget
changes_at: *ApiEpochInfo
changes_at: *epochInfo
example:
status: not_delegating
changes_at:
Expand Down

0 comments on commit ba78e2c

Please sign in to comment.