Skip to content

Commit 0df6791

Browse files
committed
Make sure to catch all targeted items in the remove
1 parent 2496500 commit 0df6791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/overlay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function applyOverlayToOpenAPI(spec, overlay) {
99
// Is it a remove?
1010
if (a.hasOwnProperty('remove')) {
1111
while(true) {
12-
var path = jsonpath.paths(spec, a.target, 1)
12+
var path = jsonpath.paths(spec, a.target)
1313
if (path.length == 0) {
1414
break
1515
}

0 commit comments

Comments
 (0)