Be slightly more restrictive in actions schema

This commit is contained in:
Jon Evans 2025-01-05 20:53:00 -05:00
parent d64226f144
commit 4bf852e6b9

View File

@ -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$"
}
}
},