{
    "title": "start job commands",
    "id": "schemas/job/startJobs",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.job.StartJobs",
    "type": "object",
    "required": [
        "jobschedulerId",
        "jobs"
    ],
    "properties": {
        "jobschedulerId": {
            "type": "string"
        },
        "jobs": {
            "type": "array",
            "items": {
                "id": "schemas/job/startJob",
                "javaType": "com.sos.joc.model.job.StartJob",
                "type": "object",
                "required": [
                    "job"
                ],
                "properties": {
                    "job": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "at": {
                        "id": "schemas/common/timestampWithNow",
                        "description": "ISO format yyyy-mm-dd HH:MM[:SS] or now or now + HH:MM[:SS] or now + SECONDS",
                        "type": "string",
                        "oneOf": [
                            {
                                "pattern": "now(\\s*\\+\\s*(\\d+|\\d{1,2}:\\d{1,2}(:\\d{1,2})?))?"
                            },
                            {
                                "format": "date-time"
                            }
                        ]
                    },
                    "timeZone": {
                        "description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
                        "type": "string"
                    },
                    "params": {
                        "id": "schemas/common/nameValuePairs",
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.common.NameValuePair",
                            "type": "object",
                            "required": [
                                "name",
                                "value"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "environment": {
                        "id": "schemas/common/nameValuePairs",
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.common.NameValuePair",
                            "type": "object",
                            "required": [
                                "name",
                                "value"
                            ],
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "value": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        },
        "auditLog": {
            "id": "schemas/common/auditParams",
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string"
                },
                "timeSpent": {
                    "id": "schemas/common/nonNegativeInteger",
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string"
                }
            }
        }
    }
}