Skip to content

Commit

Permalink
docs: date-time example with time-secfrac (#104)
Browse files Browse the repository at this point in the history
Improved precision is already supported by the spec,
but the lack of explicit example made some implementations
round things to a full second, causing issues like
ipfs/kubo#8762
  • Loading branch information
lidel authored Aug 18, 2022
1 parent ca9018e commit e0a6348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipfs-pinning-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ components:
description: Immutable timestamp indicating when a pin request entered a pinning service; can be used for filtering results and pagination
type: string
format: date-time # RFC 3339, section 5.6
example: "2020-07-27T17:32:28Z"
example: "2020-07-27T17:32:28.276Z"
pin:
$ref: '#/components/schemas/Pin'
delegates:
Expand Down Expand Up @@ -595,7 +595,7 @@ components:
schema:
type: string
format: date-time # RFC 3339, section 5.6
example: "2020-07-27T17:32:28Z"
example: "2020-07-27T17:32:28.276Z"

after:
description: Return results created (queued) after provided timestamp
Expand All @@ -605,7 +605,7 @@ components:
schema:
type: string
format: date-time # RFC 3339, section 5.6
example: "2020-07-27T17:32:28Z"
example: "2020-07-27T17:32:28.276Z"

limit:
description: Max records to return
Expand Down

0 comments on commit e0a6348

Please sign in to comment.