diff --git a/Project.toml b/Project.toml index 04f4031..f1f4676 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SearchLight" uuid = "340e8cb6-72eb-11e8-37ce-c97ebeb32050" authors = ["Adrian Salceanu "] -version = "0.21.0" +version = "0.21.1" [deps] DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" diff --git a/src/Validation.jl b/src/Validation.jl index 306595b..e49b68c 100644 --- a/src/Validation.jl +++ b/src/Validation.jl @@ -86,6 +86,8 @@ function haserrorsfor(mv::ModelValidator, field::Symbol) :: Bool ! isempty(errorsfor(mv, field)) end +const has_errors_for = haserrorsfor # for Genie compatibility + function errorsfor(mv::ModelValidator, field::Union{Symbol,Nothing} = nothing) :: Vector{ValidationError} result = ValidationError[]