Ver código fonte

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

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9a6402d761bc88bcf2c044c90a5d685e9e2cbc98)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 anos atrás
pai
commit
ad0278f002
1 arquivos alterados com 14 adições e 2 exclusões
  1. 14 2
      docs/api/v1.39.yaml

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

@@ -1815,12 +1815,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"