{
    "title": "start job command",
    "id": "schemas/job/startJob",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "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"
                }
            ]
        },
        "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"
                    }
                }
            }
        }
    }
}