Skip to content

Commit ceb1b5b

Browse files
committed
made sure to test with and without spaces.
1 parent 5d201ab commit ceb1b5b

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/test/resources/custom/query-examples/query-examples-overlay.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ info:
33
title: Add example to x parameter
44
version: 1.0.0
55
actions:
6-
- target: "$['paths']['/api/overlay']['get']['parameters'][?@.name=='x']"
6+
- target: "$['paths']['/api/overlay']['get']['parameters'][?@.name == 'x']"
77
update:
88
examples:
99
foo:
10-
value: foo
10+
value: foo
11+
- target: "$['paths']['/api/overlay']['get']['parameters'][?@.name=='y']"
12+
update:
13+
examples:
14+
bar:
15+
value: bar

src/test/resources/custom/query-examples/query-examples-result.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ paths:
2525
required: true
2626
schema:
2727
type: string
28+
examples:
29+
bar:
30+
value: bar
2831
responses:
2932
"200":
3033
description: OK

0 commit comments

Comments
 (0)