Skip to content

Commit 203184f

Browse files
iohk-bors[bot]Piotr Stachyra
andauthored
Merge #1438
1438: Better response example in api doc for network/clock r=piotr-iohk a=piotr-iohk # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> # Overview - 62128be Better response example in api doc for network/clock - e632629 Fix for failng validateEveryToJSON test: "Cardano.Wallet.Api.Types, verify that every type used with JSON content type in a servant API has compatible ToJSON and ToSchema instances using validateToJSON., ApiNetworkClock" # Comments | Before | After | |--|--| |![Screenshot from 2020-03-13 13-13-39](https://user-images.githubusercontent.com/42900201/76620020-8e626180-652c-11ea-9516-64c71cc18a30.png) | ![Screenshot from 2020-03-13 13-13-57](https://user-images.githubusercontent.com/42900201/76620104-b356d480-652c-11ea-97c4-425a9bd6c5c4.png)| Co-authored-by: Piotr Stachyra <piotr.stachyra@iohk.io>
2 parents 7a4112b + e632629 commit 203184f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

specifications/api/swagger.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,10 @@ x-networkInformationNtpStatus: &networkInformationNtpStatus
565565
status:
566566
type: string
567567
enum:
568-
- unavailable
569568
- available
569+
- unavailable
570570
- pending
571-
drift:
571+
offset:
572572
type: object
573573
description: |
574574
<span style="position: relative; left: 35px; top: -21px; vertical-align: middle; background-color: rgba(142, 142, 220, 0.05); color: rgba(50, 50, 159, 0.9); margin: 0 5px; padding: 0 5px; border: 1px solid rgba(50, 50, 159, 0.1); line-height: 20px; font-size: 13px; border-radius: 2px;">
@@ -581,12 +581,11 @@ x-networkInformationNtpStatus: &networkInformationNtpStatus
581581
properties:
582582
quantity:
583583
type: integer
584-
minimum: 0
585584
example: 14
586585
unit:
587586
type: string
588587
enum:
589-
- microseconds
588+
- microsecond
590589

591590
x-networkInformationNodeTip: &networkInformationNodeTip
592591
<<: *blockReference
@@ -661,7 +660,7 @@ components:
661660
next_epoch: *ApiEpochInfo
662661

663662
ApiNetworkClock: &ApiNetworkClock
664-
<<: *networkClockSyncProgress
663+
<<: *networkInformationNtpStatus
665664

666665
ApiNetworkParameters: &ApiNetworkParameters
667666
type: object

0 commit comments

Comments
 (0)