From fafa1fb0de9df388ea494f4d44c0ff921cd345c0 Mon Sep 17 00:00:00 2001 From: Breezebuilder Date: Fri, 7 Mar 2025 12:56:16 +1100 Subject: [PATCH] Add optional property "folderName" which rejects names containing any invalid characters. Rejected characters are /< > : " / \ | ? * Does not protect against strings containing non-printable control characters, or strings of reserved filenames like CON, PRN, AUX, NUL. --- schema/meta.schema.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schema/meta.schema.json b/schema/meta.schema.json index e033fca8..6586bae4 100644 --- a/schema/meta.schema.json +++ b/schema/meta.schema.json @@ -31,6 +31,10 @@ "downloadURL": { "type": "string", "format": "uri" + }, + "folderName": { + "type": "string", + "pattern": "^[^<>:\"/\\|?*]+$" } }, "required": ["title", "requires-steamodded", "categories", "author", "repo", "downloadURL"]