Skip to content

Commit bcde7bb

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent 6d4cd1e commit bcde7bb

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

oas/import/openapi.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,42 @@ components:
14031403
type: "array"
14041404
items:
14051405
$ref: '#/components/schemas/ErrorObject'
1406+
StrategyEnum:
1407+
type: "string"
1408+
enum:
1409+
- ttl
1410+
x-beta: true
1411+
x-annotation-enumDescriptions:
1412+
ttl: "Time to live"
1413+
RetentionPolicy:
1414+
type: "object"
1415+
discriminator:
1416+
propertyName: strategy
1417+
mapping:
1418+
ttl: '#/components/schemas/TimeToLiveRetentionPolicy'
1419+
required:
1420+
- strategy
1421+
properties:
1422+
strategy:
1423+
$ref: '#/components/schemas/StrategyEnum'
1424+
TimeToLiveConfig:
1425+
type: "object"
1426+
required:
1427+
- timeToLive
1428+
properties:
1429+
timeToLive:
1430+
type: "string"
1431+
TimeToLiveRetentionPolicy:
1432+
allOf:
1433+
- $ref: '#/components/schemas/RetentionPolicy'
1434+
- type: "object"
1435+
required:
1436+
- config
1437+
properties:
1438+
strategy:
1439+
$ref: '#/components/schemas/StrategyEnum'
1440+
config:
1441+
$ref: '#/components/schemas/TimeToLiveConfig'
14061442
ImportContainer:
14071443
type: "object"
14081444
required:
@@ -1418,12 +1454,17 @@ components:
14181454
version:
14191455
type: "number"
14201456
format: "double"
1457+
retentionPolicy:
1458+
$ref: '#/components/schemas/RetentionPolicy'
14211459
createdAt:
14221460
type: "string"
14231461
format: "datetime"
14241462
lastModifiedAt:
14251463
type: "string"
14261464
format: "datetime"
1465+
expiresAt:
1466+
type: "string"
1467+
format: "datetime"
14271468
ImportContainerDraft:
14281469
type: "object"
14291470
required:
@@ -1433,6 +1474,8 @@ components:
14331474
type: "string"
14341475
resourceType:
14351476
$ref: '#/components/schemas/ImportResourceType'
1477+
retentionPolicy:
1478+
$ref: '#/components/schemas/RetentionPolicy'
14361479
ImportContainerUpdateDraft:
14371480
type: "object"
14381481
required:

0 commit comments

Comments
 (0)