From 791fc2ae646abef535206d8d74d5dae30038c45f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96=2E=20Efe=20D=2E?= <67526259+skyline69@users.noreply.github.com> Date: Thu, 2 Jan 2025 02:41:20 +0100 Subject: [PATCH] changed category -> categories --- README.md | 4 ++-- mods/InertSteak@Pokermon/meta.json | 2 +- schema/meta.schema.json | 11 ++++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f091f00e..54878a3c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This file stores essential metadata in JSON format. **Make sure you adhere to th { "title": "Extended Cards", "requires-steamodded": true, - "category": "Content", + "categories": ["Content"], "author": "Joe Mama", "repo": "https://github.com/joemama/extended-cards", "downloadURL": "https://github.com/joemama/extended-cards/releases/latest/extended-cards.tar.gz" @@ -40,7 +40,7 @@ This file stores essential metadata in JSON format. **Make sure you adhere to th - **title**: The name of your mod. - **requires-steamodded**: If your mod requires the Steamodded mod loader, set this to `true`. -- **category**: Must be one of `Content`, `Joker`, `Quality of Life`, `Technical`, `Miscellaneous`, `Resource Packs` or `API`. +- **categories**: Must be of `Content`, `Joker`, `Quality of Life`, `Technical`, `Miscellaneous`, `Resource Packs` or `API`. - **author**: Your chosen username or handle. - **repo**: A link to your mod’s repository. - **downloadURL**: A direct link to the latest version of your released mod. (Can be same as `repo` if no separate download link exists.) diff --git a/mods/InertSteak@Pokermon/meta.json b/mods/InertSteak@Pokermon/meta.json index 23ed4c45..fff19c58 100644 --- a/mods/InertSteak@Pokermon/meta.json +++ b/mods/InertSteak@Pokermon/meta.json @@ -1,7 +1,7 @@ { "title": "Pokermon", "requires-steamodded": true, - "category": "Content", + "category": ["Content"], "author": "InertSteak", "repo":"https://github.com/InertSteak/Pokermon", "downloadURL": "https://github.com/InertSteak/Pokermon/archive/refs/tags/2.1.0b.tar.gz" diff --git a/schema/meta.schema.json b/schema/meta.schema.json index d52e42b2..97a071c4 100644 --- a/schema/meta.schema.json +++ b/schema/meta.schema.json @@ -9,9 +9,14 @@ "requires-steamodded": { "type": "boolean" }, - "category": { - "type": "string", - "enum": ["Content", "Joker", "Quality of Life", "Technical", "Miscellaneous", "Resource Packs", "API"] + "categories": { + "type": "array", + "items": { + "type": "string", + "enum": ["Content", "Joker", "Quality of Life", "Technical", "Miscellaneous", "Resource Packs", "API"] + }, + "minItems": 1, + "uniqueItems": true }, "author": { "type": "string"