From 6fded55811a745463234244bc0adc9dd5174d8df Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Tue, 22 Oct 2024 09:38:55 +0100 Subject: [PATCH] Update MultiSelect Form doc --- apps/showcase/doc/multiselect/FormDoc.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/showcase/doc/multiselect/FormDoc.vue b/apps/showcase/doc/multiselect/FormDoc.vue index 550d5658a..74b8ee046 100644 --- a/apps/showcase/doc/multiselect/FormDoc.vue +++ b/apps/showcase/doc/multiselect/FormDoc.vue @@ -31,7 +31,13 @@ export default { ], resolver: null, schema: z.object({ - city: z.array(z.object()).min(1, { message: 'At least one city should be selected.' }) + city: z + .array( + z.object({ + name: z.string().min(1, 'Option cannot be empty') + }) + ) + .min(1, 'At least one city should be selected.') }), code: { basic: `