51 lines
1020 B
JSON
51 lines
1020 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "job.schema.json",
|
|
"title": "Tibi job config",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^x-": {}
|
|
},
|
|
"properties": {
|
|
"cron": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "javascript"
|
|
},
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"description": "Abbruch nach dieser Zeit. Akzeptiert Millisekunden (30000) oder eine Go-Duration (\"30s\", \"5m\").",
|
|
"oneOf": [
|
|
{
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
{
|
|
"type": "string",
|
|
"pattern": "^([0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h))+$"
|
|
}
|
|
]
|
|
},
|
|
"meta": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"engine": {
|
|
"description": "Überschreibt die Projekt-Engine für diesen Job.",
|
|
"enum": [
|
|
"",
|
|
"goja",
|
|
"v8"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"file"
|
|
]
|
|
}
|