From e847e2df0a24cc3f085f49b972f9c93b07ffed66 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Fri, 27 Sep 2019 09:29:21 -0400 Subject: [PATCH] Dedupe --- lib/src/validator.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/validator.dart b/lib/src/validator.dart index 88455bc9..5b524e6e 100644 --- a/lib/src/validator.dart +++ b/lib/src/validator.dart @@ -387,7 +387,7 @@ class ValidationException extends AngelHttpException { statusCode: 400, errors: (errors ?? []).toSet().toList(), stackTrace: StackTrace.current) { - if (errors != null) this.errors.addAll(errors); + if (errors != null) this.errors.addAll(errors.toSet()); } @override