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 19, 2020
1 parent 09a7b5c commit 731ad13
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 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 @@ -741,17 +741,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 @@ -1610,7 +1606,7 @@ components:
payments: *transactionOutputs
withdrawal: *transactionWithdrawalRequestSelf
metadata: *transactionMetadata
ttl: *transactionTTL
time_to_live: *transactionTTL

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

ApiPostRedemptionFeeData: &ApiPostRedemptionFeeData
type: object
Expand Down Expand Up @@ -2976,7 +2972,7 @@ paths:
Random-Improve coin selection algorithm</a>.
<b>Note: </b> Not supported for Byron random wallets.
parameters:
- *parametersWalletId
requestBody:
Expand Down Expand Up @@ -3112,4 +3108,3 @@ paths:
Return the current settings.
responses: *responsesGetSettings

0 comments on commit 731ad13

Please sign in to comment.