tibi-types/schemas/api-config/job.json

27 lines
830 B
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema tibi-server cronjob configuration",
"description": "tibi-server 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"]
}