Skip to content

Commit

Permalink
Fixes examples for compliance with RFC-9535
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekistler committed Jan 29, 2025
1 parent 939d06f commit 7267307
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions versions/1.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ info:
actions:
- target: $.paths.*.get.parameters
update:
name: newParam
in: query
- name: newParam
in: query
```

```yaml
Expand All @@ -238,7 +238,7 @@ info:
paths:
/items:
get:
x-oai-traits: ['paged']
x-oai-paged: true
responses:
200:
description: OK
Expand All @@ -252,15 +252,16 @@ info:
title: Apply Traits
version: 1.0.0
actions:
- target: $.paths.*.get[[email protected]traits.paged]
- target: $.paths[?@.get && @.get['x-oai-paged']]
update:
parameters:
- name: top
in: query
# ...
- name: skip
in: query
# ...
get:
parameters:
- name: top
in: query
# ...
- name: skip
in: query
# ...
```

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

0 comments on commit 7267307

Please sign in to comment.