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: