Browse Source

docs: API v1.40: fix type for BuildCache CreatedAt and LastUsedAt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 năm trước cách đây
mục cha
commit
a305abb1d1
1 tập tin đã thay đổi với 14 bổ sung2 xóa
  1. 14 2
      docs/api/v1.40.yaml

+ 14 - 2
docs/api/v1.40.yaml

@@ -1838,12 +1838,24 @@ definitions:
       Shared:
       Shared:
         type: "boolean"
         type: "boolean"
       Size:
       Size:
+        description: |
+          Amount of disk space used by the build cache (in bytes).
         type: "integer"
         type: "integer"
       CreatedAt:
       CreatedAt:
-        type: "integer"
+        description: |
+          Date and time at which the build cache was created in
+          [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+        type: "string"
+        format: "dateTime"
+        example: "2016-08-18T10:44:24.496525531Z"
       LastUsedAt:
       LastUsedAt:
-        type: "integer"
+        description: |
+          Date and time at which the build cache was last used in
+          [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+        type: "string"
+        format: "dateTime"
         x-nullable: true
         x-nullable: true
+        example: "2017-08-09T07:09:37.632105588Z"
       UsageCount:
       UsageCount:
         type: "integer"
         type: "integer"