Skip to content

Commit

Permalink
swagger: ttl.seconds=n -> ttl.{ unit="seconds", quantity=n }
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Oct 22, 2020
1 parent 9748a3e commit eae42f4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions specifications/api/swagger.yaml
Expand Up @@ -469,7 +469,7 @@ x-transactionExpiresAt: &transactionExpiresAt
<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;">
<strong>if:</strong> status == pending OR status == expired
</span><br/>
Absolute time and slot at which the pending transaction TTL will expire.
Absolute time and slot at which the pending transaction TTL (time to live) will lapse.
<<: *slotReference

x-transactionPendingSince: &transactionPendingSince
Expand Down Expand Up @@ -756,17 +756,13 @@ x-transactionTTL: &transactionTTL
that - in the event of failures - UTxO are returned to the wallet
in a timely manner.
The TTL value is given in seconds. It will be converted to a slot
number internally.
If the TTL is not provided for a payment, a reasonable default
value will be used.
type: object
required:
- seconds
properties:
seconds:
type: integer
minimum: 0
description: TTL in seconds. Will be converted to a slot number internally.
<<: *numberOfSeconds

x-stakePoolApparentPerformance: &stakePoolApparentPerformance
description: |
Expand Down Expand Up @@ -1636,7 +1632,7 @@ components:
payments: *transactionOutputs
withdrawal: *transactionWithdrawalRequestSelf
metadata: *transactionMetadata
ttl: *transactionTTL
time_to_live: *transactionTTL

ApiPostRedemptionData: &ApiPostRedemptionData
type: object
Expand Down Expand Up @@ -1666,7 +1662,7 @@ components:
payments: *transactionOutputs
withdrawal: *transactionWithdrawalRequestSelf
metadata: *transactionMetadata
ttl: *transactionTTL
time_to_live: *transactionTTL

ApiPostRedemptionFeeData: &ApiPostRedemptionFeeData
type: object
Expand Down Expand Up @@ -3192,4 +3188,3 @@ paths:
Return the current settings.
responses: *responsesGetSettings

0 comments on commit eae42f4

Please sign in to comment.