aboutsummaryrefslogtreecommitdiff
path: root/jsonmatch/machinery.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-01 14:29:30 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-01 14:29:32 +0200
commitca7ccbadbc19c2cb28f1b7edfcc845b9d7888adc (patch)
tree78722261410ff806736b3f249cb81bc5732b15d4 /jsonmatch/machinery.go
parente21e702017a5da3224c93caedf0d51b062627311 (diff)
downloadgo-gg-ca7ccbadbc19c2cb28f1b7edfcc845b9d7888adc.tar.gz
jsonmatch: fix destructuring of Array
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 {