mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 10:32:35 -05:00
json-schema adjustments
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"definitions": {
|
||||
"toggle-state": {
|
||||
"type": "string",
|
||||
"enum": ["Enabled", "Disabled"]
|
||||
}
|
||||
},
|
||||
"patternProperties": {
|
||||
"^[a-zA-Z_][a-zA-Z0-9_]*$": {
|
||||
"type": "object",
|
||||
@ -77,6 +83,24 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"ScheduledTask": {
|
||||
"type":"array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"Name": {
|
||||
"type": "string"
|
||||
},
|
||||
"State": {
|
||||
"$ref": "#/definitions/toggle-state"
|
||||
},
|
||||
"OriginalState": {
|
||||
"$ref": "#/definitions/toggle-state"
|
||||
}
|
||||
},
|
||||
"required": ["Name", "State", "OriginalState"]
|
||||
}
|
||||
},
|
||||
"InvokeScript": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@ -90,7 +114,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["Content", "Description", "category", "panel", "Order"]
|
||||
"required": ["Content", "Description", "category", "panel", "Order"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user