This commit is contained in:
27
schemas/api-config/job.json
Normal file
27
schemas/api-config/job.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "JSON Schema WMBasic cronjob configuration",
|
||||
"description": "WMBasic cronjob linter",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"meta": {
|
||||
"type": "object",
|
||||
"description": "meta object used to pass parameters to identify cronjob",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"cron": {
|
||||
"type": "string",
|
||||
"description": "cronjob time/interval specification"
|
||||
},
|
||||
"type": {
|
||||
"const": "javascript",
|
||||
"description": "type of job"
|
||||
},
|
||||
"file": {
|
||||
"type": "string",
|
||||
"description": "javascript file relative to config.yml"
|
||||
}
|
||||
},
|
||||
"required": ["type", "file"]
|
||||
}
|
||||
Reference in New Issue
Block a user