Skip to content

Commit c084075

Browse files
Add schemas for: WinUtil (#4077)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2235a8d commit c084075

File tree

7 files changed

+205
-0
lines changed

7 files changed

+205
-0
lines changed

src/api/json/catalog.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6872,6 +6872,18 @@
68726872
"description": "YaWL specification file",
68736873
"fileMatch": ["*.yawl.yaml", "*.yawl.yml"],
68746874
"url": "https://raw.githubusercontent.com/yandex-cloud/json-schema-store/master/serverless/workflows/yawl.json"
6875+
},
6876+
{
6877+
"name": "Application list for a WinUtil",
6878+
"description": "Application list for a WinUtil",
6879+
"fileMatch": ["**/*winutil*/config/applications.json"],
6880+
"url": "https://raw.githubusercontent.com/winutil-applications.json"
6881+
},
6882+
{
6883+
"name": "Preset list for a WinUtil",
6884+
"description": "Preset list for a WinUtil",
6885+
"fileMatch": ["**/*winutil*/config/preset.json"],
6886+
"url": "https://raw.githubusercontent.com/winutil-preset.json"
68756887
}
68766888
]
68776889
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"invalid-category": {
3+
"category": "",
4+
"choco": "1password",
5+
"content": "1Password",
6+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
7+
"link": "https://1password.com/",
8+
"winget": "AgileBits.1Password"
9+
},
10+
"invalid-choco": {
11+
"category": "Utilities",
12+
"choco": "",
13+
"content": "1Password",
14+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
15+
"link": "https://1password.com/",
16+
"winget": "AgileBits.1Password"
17+
},
18+
"invalid-content": {
19+
"category": "Utilities",
20+
"choco": "1password",
21+
"content": "",
22+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
23+
"link": "https://1password.com/",
24+
"winget": "AgileBits.1Password"
25+
},
26+
"invalid-description": {
27+
"category": "Utilities",
28+
"choco": "1password",
29+
"content": "1Password",
30+
"description": "",
31+
"link": "https://1password.com/",
32+
"winget": "AgileBits.1Password"
33+
},
34+
"invalid-empty-link": {
35+
"category": "Utilities",
36+
"choco": "1password",
37+
"content": "1Password",
38+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
39+
"link": "",
40+
"winget": "AgileBits.1Password"
41+
},
42+
"invalid-link-format": {
43+
"category": "Utilities",
44+
"choco": "1password",
45+
"content": "1Password",
46+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
47+
"link": "invalid",
48+
"winget": "AgileBits.1Password"
49+
},
50+
"invalid-winget": {
51+
"category": "Utilities",
52+
"choco": "1password",
53+
"content": "1Password",
54+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
55+
"link": "https://1password.com/",
56+
"winget": ""
57+
}
58+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Minimal": [""]
3+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://raw.githubusercontent.com/winutil-applications.json",
4+
"definitions": {
5+
"string-property": {
6+
"type": "string",
7+
"minLength": 1,
8+
"pattern": "[^ ]"
9+
}
10+
},
11+
"title": "applications",
12+
"description": "Applications\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json",
13+
"type": "object",
14+
"minProperties": 1,
15+
"patternProperties": {
16+
".": {
17+
"title": "application",
18+
"description": "An application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json",
19+
"type": "object",
20+
"required": [
21+
"description",
22+
"category",
23+
"link",
24+
"choco",
25+
"winget",
26+
"content"
27+
],
28+
"properties": {
29+
"description": {
30+
"$ref": "#/definitions/string-property",
31+
"title": "description",
32+
"description": "A description of an application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json"
33+
},
34+
"category": {
35+
"title": "category",
36+
"description": "A category of an application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json",
37+
"type": "string",
38+
"enum": [
39+
"Browsers",
40+
"Communications",
41+
"Development",
42+
"Document",
43+
"Games",
44+
"Microsoft Tools",
45+
"Multimedia Tools",
46+
"Pro Tools",
47+
"Utilities"
48+
]
49+
},
50+
"link": {
51+
"title": "link",
52+
"description": "A link of an application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json",
53+
"type": "string",
54+
"minLength": 1,
55+
"pattern": "^https?://",
56+
"format": "uri"
57+
},
58+
"choco": {
59+
"$ref": "#/definitions/string-property",
60+
"title": "choco",
61+
"description": "A Chocolatey package name of an application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json"
62+
},
63+
"winget": {
64+
"$ref": "#/definitions/string-property",
65+
"title": "winget",
66+
"description": "A WinGet package name of an application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json"
67+
},
68+
"content": {
69+
"$ref": "#/definitions/string-property",
70+
"title": "content",
71+
"description": "A label of an application\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/applications.json"
72+
}
73+
},
74+
"additionalProperties": false
75+
}
76+
},
77+
"additionalProperties": false
78+
}

src/schemas/json/winutil-presets.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "https://raw.githubusercontent.com/winutil-presets.json",
4+
"title": "presets",
5+
"description": "Presets\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/preset.json",
6+
"type": "object",
7+
"minProperties": 1,
8+
"patternProperties": {
9+
".": {
10+
"title": "preset category",
11+
"description": "A preset category\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/preset.json",
12+
"type": "array",
13+
"minItems": 1,
14+
"uniqueItems": true,
15+
"items": {
16+
"description": "A preset\nhttps://github.com/ChrisTitusTech/winutil/blob/main/config/preset.json",
17+
"type": "string",
18+
"minLength": 1,
19+
"pattern": "[^ ]"
20+
}
21+
}
22+
},
23+
"additionalProperties": false
24+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"1password": {
3+
"category": "Utilities",
4+
"choco": "1password",
5+
"content": "1Password",
6+
"description": "1Password is a password manager that allows you to store and manage your passwords securely.",
7+
"link": "https://1password.com/",
8+
"winget": "AgileBits.1Password"
9+
}
10+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"Standard": [
3+
"WPFTweaksAH",
4+
"WPFTweaksConsumerFeatures",
5+
"WPFTweaksDVR",
6+
"WPFTweaksHiber",
7+
"WPFTweaksHome",
8+
"WPFTweaksLoc",
9+
"WPFTweaksServices",
10+
"WPFTweaksStorage",
11+
"WPFTweaksTele",
12+
"WPFTweaksWifi",
13+
"WPFTweaksDiskCleanup",
14+
"WPFTweaksDeleteTempFiles",
15+
"WPFTweaksEndTaskOnTaskbar",
16+
"WPFTweaksRestorePoint",
17+
"WPFTweaksIPv46",
18+
"WPFTweaksPowershell7Tele"
19+
]
20+
}

0 commit comments

Comments
 (0)