From 8bcc0112dffcaadc42e6aaa4e27c3d99ad78795f Mon Sep 17 00:00:00 2001 From: y72wvh Date: Mon, 2 Sep 2024 17:24:24 +0200 Subject: [PATCH] fix: imporve validation message in search contact --- .../contact/validation/ValidContactParam.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/insee/survey/datacollectionmanagement/contact/validation/ValidContactParam.java b/src/main/java/fr/insee/survey/datacollectionmanagement/contact/validation/ValidContactParam.java index caf16d28..14047eff 100644 --- a/src/main/java/fr/insee/survey/datacollectionmanagement/contact/validation/ValidContactParam.java +++ b/src/main/java/fr/insee/survey/datacollectionmanagement/contact/validation/ValidContactParam.java @@ -12,7 +12,7 @@ @Target({ ElementType.FIELD, ElementType.PARAMETER }) @Retention(RetentionPolicy.RUNTIME) public @interface ValidContactParam { - String message() default "Invalid parameter"; + String message() default "Invalid searchParam value.Only identifier, email and name are valid"; Class[] groups() default {}; Class[] payload() default {}; } \ No newline at end of file