Skip to content

Commit

Permalink
ttl type inconsistent - issue#343
Browse files Browse the repository at this point in the history
  • Loading branch information
emmayank committed Oct 30, 2023
1 parent 538c5a6 commit 8ecce13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions api/meta/build/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ components:
description: The encryption public key of the sender
type: string
ttl:
description: The duration in ISO8601 format after timestamp for which this message holds valid
type: string
$ref: 'https://raw.githubusercontent.com/beckn/protocol-specifications/master/api/transaction/build/transaction.yaml#/components/schemas/Duration'

Option:
description: Describes a selectable option
type: object
Expand Down
15 changes: 5 additions & 10 deletions api/transaction/build/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,7 @@ components:
type: string
format: date-time
ttl:
description: Duration in seconds after which this catalog will expire
type: string
$ref: '#/components/schemas/Duration'
Category:
description: A label under which a collection of items can be grouped.
type: object
Expand All @@ -903,7 +902,7 @@ components:
time:
$ref: '#/components/schemas/Time'
ttl:
description: Time to live for an instance of this schema
$ref: '#/components/schemas/Duration'
tags:
type: array
items:
Expand Down Expand Up @@ -990,8 +989,7 @@ components:
description: The encryption public key of the sender
type: string
ttl:
description: The duration in ISO8601 format after timestamp for which this message holds valid
type: string
$ref: '#/components/schemas/Duration'
Country:
description: Describes a country
type: object
Expand Down Expand Up @@ -1411,8 +1409,7 @@ components:
description: Whether this item is a recommended item to a response
type: boolean
ttl:
description: Time to live in seconds for an instance of this schema
type: string
$ref: '#/components/schemas/Duration'
tags:
type: array
items:
Expand Down Expand Up @@ -1825,9 +1822,7 @@ components:
description: Whether this provider can be rated or not
type: boolean
ttl:
description: 'The time-to-live in seconds, for this object. This can be overriden at deeper levels. A value of -1 indicates that this object is not cacheable.'
type: integer
minimum: -1
$ref: '#/components/schemas/Duration'
tags:
type: array
items:
Expand Down

0 comments on commit 8ecce13

Please sign in to comment.