@@ -79,21 +79,21 @@ info:
79
79
version : 1.0.0
80
80
updates :
81
81
- target : " @"
82
- value :
83
- info :
84
- x-overlay-applied : structured-overlay
85
- paths :
86
- " / " :
87
- summary : " The root resource"
88
- get :
89
- summary : " Retrieve the root resource"
90
- x-rate-limit : 100
91
- " /pets " :
92
- get :
93
- summary : " Retrieve a list of pets"
94
- x-rate-limit : 100
95
- components :
96
- tags :
82
+ value :
83
+ info :
84
+ x-overlay-applied : structured-overlay
85
+ paths :
86
+ " / " :
87
+ summary : " The root resource"
88
+ get :
89
+ summary : " Retrieve the root resource"
90
+ x-rate-limit : 100
91
+ " /pets " :
92
+ get :
93
+ summary : " Retrieve a list of pets"
94
+ x-rate-limit : 100
95
+ components :
96
+ tags :
97
97
` ` `
98
98
99
99
##### Targeted Overlays
@@ -107,16 +107,16 @@ info:
107
107
version : 1.0.0
108
108
updates :
109
109
- target : paths."/foo".get
110
- value :
111
- description : This is the new description
110
+ value :
111
+ description : This is the new description
112
112
- target : paths."/bar".get
113
- value :
114
- description : This is the updated description
113
+ value :
114
+ description : This is the updated description
115
115
- target : paths."/bar"
116
- value :
117
- post :
118
- description : This is an updated description of a child object
119
- x-safe : false
116
+ value :
117
+ post :
118
+ description : This is an updated description of a child object
119
+ x-safe : false
120
120
` ` `
121
121
122
122
##### Wildcard Overlays Examples
@@ -130,12 +130,12 @@ info:
130
130
version : 1.0.0
131
131
updates :
132
132
- target : paths.*.get
133
- value :
134
- x-safe : true
133
+ value :
134
+ x-safe : true
135
135
- target : paths.*.get.parameters[?name=='filter' && in=='query']
136
- value :
137
- schema :
138
- $ref : " /components/schemas/filterSchema"
136
+ value :
137
+ schema :
138
+ $ref : " /components/schemas/filterSchema"
139
139
` ` `
140
140
141
141
##### Array Modification Examples
@@ -149,9 +149,9 @@ info:
149
149
version: 1.0.0
150
150
updates:
151
151
- target: paths.*.get.parameters[length(@)]
152
- value:
153
- name: newParam
154
- in: query
152
+ value:
153
+ name: newParam
154
+ in: query
155
155
` ` `
156
156
157
157
` ` ` yaml
@@ -161,7 +161,7 @@ info:
161
161
version: 1.0.0
162
162
updates:
163
163
- target: $.paths[*].get.parameters[? name == 'dummy']
164
- remove: true
164
+ remove: true
165
165
` ` `
166
166
167
167
# # Proposal Summary
0 commit comments