Skip to content

Commit

Permalink
Fix for JSON3
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Aug 23, 2024
1 parent 21f34ad commit b4deb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4deb7e

Please sign in to comment.