Accept . as a query string delimiter.

This commit is contained in:
Dermot Duffy
2023-09-06 21:22:21 -07:00
parent 97dac5332b
commit 568a5cea35
5 changed files with 125 additions and 13 deletions
+4 -1
View File
@@ -217,7 +217,10 @@ const frigateCardCustomActionsBaseSchema = customActionSchema.extend({
.or(z.literal('fire-dom-event')),
// Card this command is intended for.
card_id: z.string().optional(),
card_id: z
.string()
.regex(/^\w+$/, 'card_id parameter can only contain [a-z][A-Z][0-9_]')
.optional(),
});
const FRIGATE_CARD_GENERAL_ACTIONS = [