diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-18 14:37:01 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-18 14:37:01 -0800 |
commit | e01eb1834e7c65b388e715b156640b6db531931f (patch) | |
tree | a39930caaf5708a2bc19dbe00dc3bd46abd3fa2b | |
parent | 7d9d5e5ed224e96d9d6e8939bf8d074e67c771af (diff) | |
download | fatcat-e01eb1834e7c65b388e715b156640b6db531931f.tar.gz fatcat-e01eb1834e7c65b388e715b156640b6db531931f.zip |
api schema: CDX timestamps as datetime
-rw-r--r-- | fatcat-openapi2.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml index 70a27b76..b35d918e 100644 --- a/fatcat-openapi2.yml +++ b/fatcat-openapi2.yml @@ -249,7 +249,7 @@ definitions: properties: <<: *ENTITYPROPS cdx: - # limit of 200 CDX lines, at least to start + # limit of 200 CDX lines, at least to start? type: array items: type: object @@ -264,7 +264,9 @@ definitions: example: "org,asheesh)/apus/ch1/node15.html" timestamp: type: string - example: "20020429162520" + format: date-time + example: "2016-09-19T17:20:24Z" + description: "UTC, 'Z'-terminated, second (or better) precision" url: type: string # NOTE: not format:url to allow alternatives @@ -302,6 +304,7 @@ definitions: timestamp: type: string format: date-time + description: "same format as CDX line timestamp (UTC, etc). Corresponds to the overall capture timestamp. Can be the earliest or average of CDX timestamps if that makes sense." release_ids: type: array items: |