Skip to content

Commit 66cf68d

Browse files
committed
add minItems validation for tags, mirrors, maintainers, and funding in schema
1 parent 672331c commit 66cf68d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gitinfo.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"type": "string",
3636
"minLength": 1
3737
},
38+
"minItems": 1,
3839
"description": "A list of tags or keywords associated with the repository for easier categorization and searchability."
3940
},
4041
"mirrors": {
@@ -43,6 +44,7 @@
4344
"type": "string",
4445
"format": "uri"
4546
},
47+
"minItems": 1,
4648
"description": "A list of URLs representing mirror repositories."
4749
},
4850
"maintainers": {
@@ -63,6 +65,7 @@
6365
"minItems": 2,
6466
"maxItems": 2
6567
},
68+
"minItems": 1,
6669
"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], ...]."
6770
},
6871
"license": {
@@ -105,6 +108,7 @@
105108
"type": "string",
106109
"format": "uri"
107110
},
111+
"minItems": 1,
108112
"description": "A list of URLs for sponsorship or funding platforms (e.g., GitHub Sponsors, Open Collective, Patreon)."
109113
},
110114
"version": {

0 commit comments

Comments
 (0)