mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-15 09:20:36 -06:00
added json-schema for config/applications.json
This commit is contained in:
parent
8844b85531
commit
e2a870f746
@ -1,4 +1,5 @@
|
||||
{
|
||||
"$schema": "../schemas/config/applications.json",
|
||||
"1password": {
|
||||
"category": "Utilities",
|
||||
"choco": "1password",
|
||||
|
55
schemas/config/applications.json
Normal file
55
schemas/config/applications.json
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"definitions": {
|
||||
"url": {
|
||||
"type": "string",
|
||||
"format": "uri"
|
||||
}
|
||||
},
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Utilities",
|
||||
"Document",
|
||||
"Pro Tools",
|
||||
"Multimedia Tools",
|
||||
"Development",
|
||||
"Games",
|
||||
"Microsoft Tools",
|
||||
"Browsers",
|
||||
"Communications"
|
||||
]
|
||||
},
|
||||
"choco": {
|
||||
"type": "string"
|
||||
},
|
||||
"winget": {
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"$ref": "#/definitions/url"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"content",
|
||||
"description",
|
||||
"category",
|
||||
"link",
|
||||
"choco",
|
||||
"winget"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user