Skip to content

Commit

Permalink
Fix slot depth unit to 'slot'. Add block type
Browse files Browse the repository at this point in the history
  • Loading branch information
akegalj committed Apr 2, 2019
1 parent 82fa37c commit eb908bb
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,28 @@ numberOfSlots: &numberOfSlots
quantity:
type: integer
minimum: 0
example: 1337
unit:
type: string
enum:
- slot
example: "slot"

numberOfBlocks: &numberOfBlocks
type: object
required:
- quantity
- unit
properties:
quantity:
type: integer
minimum: 0
example: 1337
unit:
type: string
enum:
- block
example: "block"

percentage: &percentage
type: object
Expand Down Expand Up @@ -225,7 +242,7 @@ transactionInsertedAt: &transactionInsertedAt

transactionDepth: &transactionDepth
description: Current depth of the transaction in the local chain
<<: *numberOfSlots
<<: *numberOfBlocks

transactionDirection: &transactionDirection
type: string
Expand Down

0 comments on commit eb908bb

Please sign in to comment.