@@ -79,21 +79,21 @@ info:
7979 version : 1.0.0
8080updates :
8181- 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 :
9797` ` `
9898
9999##### Targeted Overlays
@@ -107,16 +107,16 @@ info:
107107 version : 1.0.0
108108updates :
109109- target : paths."/foo".get
110- value :
111- description : This is the new description
110+ value :
111+ description : This is the new description
112112- target : paths."/bar".get
113- value :
114- description : This is the updated description
113+ value :
114+ description : This is the updated description
115115- 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
120120` ` `
121121
122122##### Wildcard Overlays Examples
@@ -130,12 +130,12 @@ info:
130130 version : 1.0.0
131131updates :
132132- target : paths.*.get
133- value :
134- x-safe : true
133+ value :
134+ x-safe : true
135135- 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"
139139` ` `
140140
141141##### Array Modification Examples
@@ -149,9 +149,9 @@ info:
149149 version: 1.0.0
150150updates:
151151- target: paths.*.get.parameters[length(@)]
152- value:
153- name: newParam
154- in: query
152+ value:
153+ name: newParam
154+ in: query
155155` ` `
156156
157157` ` ` yaml
@@ -161,7 +161,7 @@ info:
161161 version: 1.0.0
162162updates:
163163- target: $.paths[*].get.parameters[? name == 'dummy']
164- remove: true
164+ remove: true
165165` ` `
166166
167167# # Proposal Summary
0 commit comments