-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes examples for compliance with RFC-9535
- Loading branch information
1 parent
939d06f
commit 7267307
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,8 +212,8 @@ info: | |
actions: | ||
- target: $.paths.*.get.parameters | ||
update: | ||
name: newParam | ||
in: query | ||
- name: newParam | ||
in: query | ||
``` | ||
|
||
```yaml | ||
|
@@ -238,7 +238,7 @@ info: | |
paths: | ||
/items: | ||
get: | ||
x-oai-traits: ['paged'] | ||
x-oai-paged: true | ||
responses: | ||
200: | ||
description: OK | ||
|
@@ -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. | ||
|