-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.yaml
41 lines (41 loc) · 1.32 KB
/
overlay.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
overlay: 1.0.0
info:
title: Overlay epilot file to make a file resource
version: 0.0.1
actions:
- target: $
update:
x-speakeasy-retries:
strategy: backoff
backoff:
initialInterval: 5000 # 5 seconds
maxInterval: 60000 # 60 seconds
maxElapsedTime: 3600000 # 5 minutes
exponent: 1.5
statusCodes:
- 5XX
retryConnectionErrors: true
- target: $["paths"]["/v2/files/{id}"]["get"]
update:
x-speakeasy-entity-operation: File#get
- target: $["paths"]["/v2/files/{id}"]["get"]["parameters"][1]
remove: yes
- target: $["paths"]["/v2/files/{id}"]["delete"]
update:
x-speakeasy-entity-operation: File#delete
- target: $["paths"]["/v2/files"]["post"]
update:
x-speakeasy-entity-operation: File#create,update
- target: $["components"]["schemas"]["FileEntity"]
update:
x-speakeasy-entity: File
- target: $["components"]["schemas"]["FileEntity"]["allOf"][2]["required"]
remove: yes
- target: $["components"]["schemas"]["SaveFilePayloadV2"]
update:
$ref: "#/components/schemas/FileEntity"
- target: $["components"]["schemas"]["SaveFilePayloadV2"]["anyOf"]
remove: yes
- target: $["components"]["schemas"]["FileEntity"]["allOf"][2]
update:
x-speakeasy-param-suppress-computed-diff: true