tibi-types/schemas/api-config/job.json
Sebastian Frank f250ddee2c
All checks were successful
continuous-integration/drone/push Build is passing
allow x- properties in schema
2022-10-12 16:23:32 +02:00

33 lines
941 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,
"patternProperties": {
"^x\\-": {
"description": "template property"
}
},
"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"]
}