Skip to content

Commit 0a1b97b

Browse files
authored
Merge pull request #709 from bbiggerr/fix/x-filter-examples
Fix curl X-Filter examples by using single-line header data
2 parents 387661b + 64e014d commit 0a1b97b

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

openapi.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,7 @@ info:
230230

231231
```Shell
232232
curl "https://api.linode.com/v4/linode/types" \
233-
-H '
234-
X-Filter: {
235-
"class": "standard"
236-
}'
233+
-H 'X-Filter: { "class": "standard" }'
237234
```
238235

239236
The filter object's keys are the keys of the object you're filtering,
@@ -243,11 +240,7 @@ info:
243240

244241
```Shell
245242
curl "https://api.linode.com/v4/linode/types" \
246-
-H '
247-
X-Filter: {
248-
"class": "standard",
249-
"vcpus": 1
250-
}'
243+
-H 'X-Filter: { "class": "standard", "vcpus": 1 }'
251244
```
252245

253246
In the above example, both filters are combined with an "and" operation.
@@ -256,13 +249,7 @@ info:
256249

257250
```Shell
258251
curl "https://api.linode.com/v4/linode/types" \
259-
-H '
260-
X-Filter: {
261-
"+or": [
262-
{ "vcpus": 1 },
263-
{ "class": "standard" }
264-
]
265-
}'
252+
-H 'X-Filter: { "+or": [ { "vcpus": 1 }, { "class": "standard" } ] }'
266253
```
267254

268255
Each filter in the `+or` array is its own filter object, and all conditions

0 commit comments

Comments
 (0)