File tree Expand file tree Collapse file tree 1 file changed +20
-12
lines changed Expand file tree Collapse file tree 1 file changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -3,24 +3,32 @@ openapi: 3.0.3
3
3
info :
4
4
title : Library
5
5
version : 1.0.0
6
+ paths : {}
6
7
components :
7
- schema :
8
+ schemas :
8
9
Book :
9
10
description : This book will self-destruct.
11
+ type : object
10
12
properties :
11
13
name :
12
14
type : string
13
15
description : |
14
16
The name of the book.
15
17
Format: publishers/{publisher}/books/{book}
16
- expire_time :
17
- type : string
18
- format : date-time
19
- description : |
20
- Timestamp in UTC of when this resource is considered expired.
21
- This is *always* provided on output, regardless of what was sent
22
- on input.
23
- ttl_seconds :
24
- type : integer
25
- description : The TTL for this resource.
26
- writeOnly : true
18
+ oneOf :
19
+ - type : object
20
+ properties :
21
+ expireTime :
22
+ type : string
23
+ format : date-time
24
+ description : |
25
+ Timestamp in UTC of when this resource is considered expired.
26
+ - type : object
27
+ properties :
28
+ ttlSeconds :
29
+ type : integer
30
+ description : |
31
+ The TTL for this resource in seconds.
32
+ When this value is passed as input it is returned as the equivalent
33
+ expireTime on output.
34
+ writeOnly : true
You can’t perform that action at this time.
0 commit comments