From fe0fab0d3326deb0048f5972e85279fc89abbce1 Mon Sep 17 00:00:00 2001 From: Ibnu Ramdhan Assaumi Date: Fri, 17 Dec 2021 10:22:03 +0700 Subject: [PATCH] replace error message when invalid type --- errors.go | 1 - 1 file changed, 1 deletion(-) diff --git a/errors.go b/errors.go index 8bc0da3..9536654 100644 --- a/errors.go +++ b/errors.go @@ -225,7 +225,6 @@ func newError(currentSubSchema *subSchema, err ResultError, context *JsonContext t = "required" d = locale.Required() case *InvalidTypeError: - isReplaceError = false t = "invalid_type" d = locale.InvalidType() case *NumberAnyOfError: