File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ info:
212212actions:
213213 - target: $.paths.*.get.parameters
214214 update:
215- name: newParam
216- in: query
215+ - name: newParam
216+ in: query
217217` ` `
218218
219219` ` ` yaml
@@ -238,7 +238,7 @@ info:
238238paths:
239239 /items:
240240 get:
241- x-oai-traits: ['paged']
241+ x-oai-paged: true
242242 responses:
243243 200:
244244 description: OK
@@ -252,15 +252,16 @@ info:
252252 title: Apply Traits
253253 version: 1.0.0
254254actions:
255- - target: $.paths.*.get [[email protected] traits. paged] 255+ - target: $.paths[?@.get && @.get[' x-oai-paged'] ]
256256 update:
257- parameters:
258- - name: top
259- in: query
260- # ...
261- - name: skip
262- in: query
263- # ...
257+ get:
258+ parameters:
259+ - name: top
260+ in: query
261+ # ...
262+ - name: skip
263+ in: query
264+ # ...
264265` ` `
265266
266267This approach allows inversion of control as to where the Overlay updates apply to the target document itself.
You can’t perform that action at this time.
0 commit comments