-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.yaml
48 lines (47 loc) · 1.59 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
42
43
44
45
46
47
48
overlay: 1.0.0
info:
title: Speakeasy overlay for epilot custom variables API
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
# Custom variables
- target: $["paths"]["/v1/custom-variables"]["post"]
update:
x-speakeasy-entity-operation: CustomVariable#create
- target: $["paths"]["/v1/custom-variables/{id}"]["get"]
update:
x-speakeasy-entity-operation: CustomVariable#get
- target: $["paths"]["/v1/custom-variables/{id}"]["put"]
update:
x-speakeasy-entity-operation: CustomVariable#update
- target: $["paths"]["/v1/custom-variables/{id}"]["delete"]
update:
x-speakeasy-entity-operation: CustomVariable#delete
- target: $["components"]["schemas"]["CustomVariable"]
update:
x-speakeasy-entity: CustomVariable
#- target: $["paths"]["/v1/custom-variables/{id}"]["put"]["parameters"][0]
# update:
# x-speakeasy-match: id
#- target: $["paths"]["/v1/custom-variables/{id}"]["get"]["parameters"][0]
# update:
# x-speakeasy-match: id
#- target: $["paths"]["/v1/custom-variables/{id}"]["delete"]["parameters"][0]
# update:
# x-speakeasy-match: id
- target: $["components"]["schemas"]["CustomVariable"]["properties"]["config"]
remove: true
- target: $["components"]["schemas"]["CustomVariable"]["properties"]
update:
config: {}