diff icon indicating copy to clipboard operation
diff copied to clipboard

unsupported type: array when ID withh uuid.UUID

Open LangPham opened this issue 4 years ago • 3 comments

unsupported type: array when ID withh uuid.UUID

LangPham avatar Apr 15 '21 08:04 LangPham

I was able to get this to work using a custom differ for uuid.UUID. Also, make sure to DisableStructValues if you are using uuid.UUID as an identifier for items that appear in slices or maps.

MarkDavidGoddard avatar Jul 09 '21 21:07 MarkDavidGoddard

Any concrete way of avoiding or fixing this?

FarhanSajid1 avatar Sep 04 '21 22:09 FarhanSajid1

I was able to avoid this by adding arrays as a type, not sure if there are some implications that I'm missing, but it satisfies my usecase. https://github.com/r3labs/diff/pull/66

FarhanSajid1 avatar Sep 05 '21 07:09 FarhanSajid1