aboutsummaryrefslogtreecommitdiff
path: root/jsonmatch/machinery.go
diff options
context:
space:
mode:
Diffstat (limited to 'jsonmatch/machinery.go')
-rw-r--r--jsonmatch/machinery.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonmatch/machinery.go b/jsonmatch/machinery.go
index 172c82a..7f91f67 100644
--- a/jsonmatch/machinery.go
+++ b/jsonmatch/machinery.go
@@ -130,6 +130,8 @@ func getDiffsForValue(path []pathElement, expected, actual any) []Diff {
return getDiffsForObject(path, expected, actual)
case []any:
return getDiffsForArray(path, expected, actual)
+ case Array:
+ return getDiffsForArray(path, expected, actual)
case []map[string]any:
downcasted := make([]any, len(expected))
for idx, val := range expected {