From c3c43e4468e73219b5275ac52fdd33c0389c5b96 Mon Sep 17 00:00:00 2001 From: Dezoito Date: Thu, 14 Mar 2024 16:56:47 -0300 Subject: [PATCH] Validation messages now explain how to properly delimit values --- src/components/ui/form-grid-params.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ui/form-grid-params.tsx b/src/components/ui/form-grid-params.tsx index 1fb29f5..7911d99 100644 --- a/src/components/ui/form-grid-params.tsx +++ b/src/components/ui/form-grid-params.tsx @@ -62,31 +62,31 @@ export const ParamsFormSchema = z.object({ temperatureList: z.custom( (value) => validateNumberOrArray("float")(value as string | number), { - message: `Invalid float array format. Please enter at least one valid float number.`, + message: `Invalid float array format. Please enter at least one valid float number. Use commas to delimit values.`, }, ), repeatPenaltyList: z.custom( (value) => validateNumberOrArray("float")(value as string | number), { - message: `Invalid float array format. Please enter at least one valid float number.`, + message: `Invalid float array format. Please enter at least one valid float number. Use commas to delimit values.`, }, ), topKList: z.custom( (value) => validateNumberOrArray("int")(value as string | number), { - message: `Invalid int array format. Please enter at least one valid integer number.`, + message: `Invalid int array format. Please enter at least one valid integer number. Use commas to delimit values.`, }, ), topPList: z.custom( (value) => validateNumberOrArray("float")(value as string | number), { - message: `Invalid float array format. Please enter at least one valid float number.`, + message: `Invalid float array format. Please enter at least one valid float number. Use commas to delimit values.`, }, ), repeatLastNList: z.custom( (value) => validateNumberOrArray("int")(value as string | number), { - message: `Invalid float array format. Please enter at least one valid integer number.`, + message: `Invalid float array format. Please enter at least one valid integer number. Use commas to delimit values.`, }, ), });