From b4deb7e525d72a80c45bac5fc6652cccd362781e Mon Sep 17 00:00:00 2001 From: odow Date: Fri, 23 Aug 2024 19:45:16 +1200 Subject: [PATCH] Fix for JSON3 --- src/validation.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validation.jl b/src/validation.jl index ac9de73..0e2bb96 100644 --- a/src/validation.jl +++ b/src/validation.jl @@ -130,11 +130,11 @@ _isequal(::Number, ::Bool) = false _isequal(x::Bool, y::Bool) = x == y -function _isequal(x::Vector, y::Vector) +function _isequal(x::AbstractVector, y::AbstractVector) return length(x) == length(y) && all(_isequal.(x, y)) end -function _isequal(x::Dict, y::Dict) +function _isequal(x::AbstractDict, y::AbstractDict) return Set(keys(x)) == Set(keys(y)) && all(_isequal(v, y[k]) for (k, v) in x) end