Skip to content

Commit f8a7dd0

Browse files
author
Ronald Holshausen
committed
add a type matcher on arrays where there is a type matcher on each item #21
1 parent ab444ce commit f8a7dd0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

testcases/response/body/array with regex matcher.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
]
1010
},
1111
"matchingRules" : {
12+
"$.body.myDates": {
13+
"match": "type"
14+
},
1215
"$.body.myDates[*]" : {
1316
"match": "regex", "regex" : "\\d{2}/\\d{2}/\\d{4}"
1417
}

testcases/response/body/array with type matcher.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
]
1010
},
1111
"matchingRules" : {
12+
"$.body.myDates" : {
13+
"match": "type"
14+
},
1215
"$.body.myDates[*]" : {
1316
"match": "type"
1417
}

0 commit comments

Comments
 (0)