-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.yaml
98 lines (89 loc) · 3.21 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
overlay: 1.0.0
info:
title: Overlay for epilot API
version: 0.0.1
actions:
- target: $["servers"]
remove: true
- target: $
update:
servers:
- url: https://design-builder-api.sls.epilot.io
- 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"]["/v1/designs"]["post"]
update:
x-speakeasy-entity-operation: Design#create
- target: $["paths"]["/v1/designs/{designId}"]["get"]
update:
x-speakeasy-entity-operation: Design#get
- target: $["paths"]["/v1/designs/{designId}"]["get"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/designs/{designId}"]["put"]
update:
x-speakeasy-entity-operation: Design#update
- target: $["paths"]["/v1/designs/{designId}"]["put"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["paths"]["/v1/designs/{designId}"]["delete"]
update:
x-speakeasy-entity-operation: Design#delete
- target: $["paths"]["/v1/designs/{designId}"]["delete"]["parameters"][0]
update:
x-speakeasy-match: id
- target: $["components"]["schemas"]["AddDesignReq"]["properties"]["design"]
update:
x-speakeasy-entity: Design
- target: $["components"]["schemas"]["AddDesignRes"]["properties"]["design"]
update:
x-speakeasy-entity: Design
- target: $["components"]["schemas"]["GetDesignReq"]["properties"]["design"]
update:
x-speakeasy-entity: Design
- target: $["components"]["schemas"]["GetDesignRes"]["properties"]["design"]
update:
x-speakeasy-entity: Design
- target: $["components"]["schemas"]["UpdateDesignReq"]["properties"]["design"]
update:
x-speakeasy-entity: Design
- target: $["components"]["schemas"]["DesignItem"]["properties"]["brand_id"]
update:
x-speakeasy-type-override: any
- target: $["components"]["schemas"]["DesignItem"]["properties"]["style"]
update:
x-speakeasy-type-override: any
# - target: $["components"]["schemas"]["Custom_Style"]["properties"]["custom_theme"]
# update:
# x-speakeasy-type-override: any
- target: $["components"]["schemas"]["ConsumerData"]["properties"]["widgets"]["items"]
remove: true
- target: $["components"]["schemas"]["ConsumerData"]["properties"]["widgets"]
update:
items: {}
- target: $["components"]["schemas"]["FontData"]["properties"]["urls"]["items"]
remove: true
- target: $["components"]["schemas"]["FontData"]["properties"]["urls"]
update:
items: {}
# these aren't actually date-time
- target: $["components"]["schemas"]["ItemMetada"]["properties"]["created_at"]["format"]
remove: true
- target: $["components"]["schemas"]["ItemMetada"]["properties"]["last_modified_at"]["format"]
remove: true
- target: $["components"]["schemas"]["ItemMetada"]["properties"]["created_at"]
update:
readOnly: true
- target: $["components"]["schemas"]["ItemMetada"]["properties"]["last_modified_at"]
update:
readOnly: true