From 66cf68d7a0ec4d9c220a16c58380eefbe40b6ad6 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 5 Feb 2026 16:46:19 +0000 Subject: add minItems validation for tags, mirrors, maintainers, and funding in schema --- gitinfo.schema.json | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gitinfo.schema.json') diff --git a/gitinfo.schema.json b/gitinfo.schema.json index 8cb8837..dcaa23a 100644 --- a/gitinfo.schema.json +++ b/gitinfo.schema.json @@ -35,6 +35,7 @@ "type": "string", "minLength": 1 }, + "minItems": 1, "description": "A list of tags or keywords associated with the repository for easier categorization and searchability." }, "mirrors": { @@ -43,6 +44,7 @@ "type": "string", "format": "uri" }, + "minItems": 1, "description": "A list of URLs representing mirror repositories." }, "maintainers": { @@ -63,6 +65,7 @@ "minItems": 2, "maxItems": 2 }, + "minItems": 1, "description": "A list of maintainers or contributors to the repository, provided as a 2D array with names and email addresses in the format [[name, email], ...]." }, "license": { @@ -105,6 +108,7 @@ "type": "string", "format": "uri" }, + "minItems": 1, "description": "A list of URLs for sponsorship or funding platforms (e.g., GitHub Sponsors, Open Collective, Patreon)." }, "version": { -- cgit v1.2.3