Skip to content

Commit

Permalink
fix(coral): Update validation for service accounts field (#1676)
Browse files Browse the repository at this point in the history
Update validation for service accounts field.

Signed-off-by: Mirjam Aulbach <[email protected]>
Co-authored-by: aindriu-aiven <[email protected]>
  • Loading branch information
programmiri and aindriu-aiven authored Aug 22, 2023
1 parent f3d4a52 commit 68c4211
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const acl_ssl = z
.max(5, { message: "Maximum 5 elements allowed." })
.refine(
(values) => {
return values.find((value) => value.length < 4) === undefined;
return values.find((value) => value.length < 3) === undefined;
},
{
message: "Every element must be more than 3 characters.",
message: "Every element must have at least 3 characters.",
}
)
.optional();
Expand Down

0 comments on commit 68c4211

Please sign in to comment.