tibi-types/schemas/api-config/job.json
Sebastian Frank de02d51100
All checks were successful
continuous-integration/drone/push Build is passing
job type and schema
2022-02-21 10:23:11 +01:00

27 lines
822 B
JSON

{
"$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"]
}