From 4bf852e6b992264cfb632f35263cd44abfdc4247 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sun, 5 Jan 2025 20:53:00 -0500 Subject: [PATCH] Be slightly more restrictive in actions schema --- api/schemas/api.v1.schema.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/schemas/api.v1.schema.json b/api/schemas/api.v1.schema.json index f83366a087..086975a0b6 100644 --- a/api/schemas/api.v1.schema.json +++ b/api/schemas/api.v1.schema.json @@ -56,10 +56,12 @@ }, "name": { "type": "string", + "maxLength": 200, "description": "A human-readable name for the action (normally a verb or verb phrase)" }, "description": { "type": "string", + "maxLength": 500, "description": "A human-readable description for the action" }, "show-button": { @@ -88,14 +90,16 @@ "type": "array", "description": "A list of one or more paths to PNG files (use multiple files for high DPI support) to be shown in light mode", "items": { - "type": "string" + "type": "string", + "pattern": "^.*\\.png$" } }, "icons-dark": { "type": "array", "description": "A list of one or more paths to PNG files (use multiple files for high DPI support) to be shown in dark mode", "items": { - "type": "string" + "type": "string", + "pattern": "^.*\\.png$" } } },