From 5647b345941f7ddf461e615920c571d69ac807d5 Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Fri, 14 Jun 2024 12:47:46 +0200 Subject: [PATCH] feat: narrowed type for categories in icon.schema.json (#2126) --- icon.schema.json | 50 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/icon.schema.json b/icon.schema.json index 44026c3b8..a66821538 100644 --- a/icon.schema.json +++ b/icon.schema.json @@ -53,7 +53,55 @@ "categories": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "accessibility", + "account", + "animals", + "arrows", + "brands", + "buildings", + "charts", + "communication", + "connectivity", + "currency", + "cursors", + "design", + "development", + "devices", + "emoji", + "files", + "food-beverage", + "furniture", + "gaming", + "home", + "layout", + "mail", + "maps", + "maths", + "medical", + "money", + "multimedia", + "nature", + "navigation", + "notifications", + "people", + "photography", + "science", + "seasons", + "security", + "shapes", + "shopping", + "social", + "sports", + "sustainability", + "text", + "time", + "tools", + "transportation", + "travel", + "weather" + ] }, "uniqueItems": true },