Skip to content

Commit 7267307

Browse files
committed
Fixes examples for compliance with RFC-9535
1 parent 939d06f commit 7267307

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

versions/1.0.0.md

+12-11
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ info:
212212
actions:
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:
238238
paths:
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
254254
actions:
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

266267
This approach allows inversion of control as to where the Overlay updates apply to the target document itself.

0 commit comments

Comments
 (0)