Skip to content

Commit 6a557be

Browse files
committed
feat(schema): declare theme metadata properties
1 parent 79a8b3a commit 6a557be

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

‎schema.json‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://sourcegit-scm.github.io/sourcegit-theme.schema.json",
4+
"title": "SourceGit Theme",
5+
"description": "A SourceGit Theme Definition",
6+
"type": "object",
27
"additionalProperties": false,
38
"definitions": {
49
"color": {
@@ -7,6 +12,29 @@
712
}
813
},
914
"properties": {
15+
"Version": {
16+
"type": "string",
17+
"pattern": "^(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$",
18+
"minLength": 1,
19+
"description": "Theme definition format version"
20+
},
21+
"Name": {
22+
"type": "string",
23+
"minLength": 1,
24+
"description": "Display name of the theme"
25+
},
26+
"Author": {
27+
"type": "string",
28+
"minLength": 1,
29+
"description": "Author of the theme"
30+
},
31+
"Url": {
32+
"type": "string",
33+
"format": "uri",
34+
"pattern": "^https?://",
35+
"minLength": 1,
36+
"description": "URL of the author or of the upstream theme this one is based on"
37+
},
1038
"BasicColors": {
1139
"type": "object",
1240
"properties": {

0 commit comments

Comments
 (0)