File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -212,8 +212,8 @@ info:
212
212
actions:
213
213
- target: $.paths.*.get.parameters
214
214
update:
215
- name: newParam
216
- in: query
215
+ - name: newParam
216
+ in: query
217
217
` ` `
218
218
219
219
` ` ` yaml
@@ -238,7 +238,7 @@ info:
238
238
paths:
239
239
/items:
240
240
get:
241
- x-oai-traits: ['paged']
241
+ x-oai-paged: true
242
242
responses:
243
243
200:
244
244
description: OK
@@ -252,15 +252,16 @@ info:
252
252
title: Apply Traits
253
253
version: 1.0.0
254
254
actions:
255
- - target: $.paths.*.get [[email protected] traits. paged]
255
+ - target: $.paths[?@.get && @.get[' x-oai-paged'] ]
256
256
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
+ # ...
264
265
` ` `
265
266
266
267
This 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