feat: Update SearxNG connector form validation, enhance connector connect view with additional properties, and refine type handling in connector dialog for improved schema compliance.

This commit is contained in:
Anish Sarkar 2025-12-31 16:33:15 +05:30
parent 21146485e6
commit 4d6186a43a
5 changed files with 17 additions and 8 deletions

View file

@ -40,7 +40,7 @@ export type IndexingConfigState = z.infer<typeof indexingConfigStateSchema>;
* Schema for frequency minutes (must be one of the allowed values)
*/
export const frequencyMinutesSchema = z.enum(["15", "60", "360", "720", "1440", "10080"], {
errorMap: () => ({ message: "Invalid frequency value" }),
message: "Invalid frequency value",
});
export type FrequencyMinutes = z.infer<typeof frequencyMinutesSchema>;