{
    "title": "start job command",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.joe.job.StartJob",
    "type": "object",
    "properties": {
        "job": {
            "type": "string"
        },
        "at": {
            "type": "string",
            "default": "now"
        },
        "after": {
            "type": "string"
        },
        "force": {
            "description": "possible values: yes, no, 1, 0, true, false",
            "type": "string"
        },
        "params": {
            "javaType": "com.sos.joc.model.joe.common.Params",
            "type": "object",
            "properties": {
                "includes": {
                    "xmlElement": "include",
                    "type": "array",
                    "items": {
                        "javaType": "com.sos.joc.model.joe.common.ParamInclude",
                        "xmlElement": "include",
                        "type": "object",
                        "properties": {
                            "file": {
                                "type": "string"
                            },
                            "liveFile": {
                                "type": "string"
                            },
                            "node": {
                                "type": "string"
                            }
                        }
                    }
                },
                "copyParams": {
                    "decription": "Only valid in start_job and add_order. Possible values for 'from' is task or order.",
                    "type": "array",
                    "uniqueItems": true,
                    "items": {
                        "type": "object",
                        "javaType": "com.sos.joc.model.joe.common.CopyParams",
                        "xmlElement": "copy_params",
                        "required": [
                            "from"
                        ],
                        "properties": {
                            "from": {
                                "type": "string"
                            }
                        }
                    }
                },
                "paramList": {
                    "xmlElement": "param",
                    "type": "array",
                    "items": {
                        "javaType": "com.sos.joc.model.joe.common.Param",
                        "type": "object",
                        "required": [
                            "name",
                            "value"
                        ],
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "value": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "environment": {
            "type": "object",
            "javaType": "com.sos.joc.model.joe.job.EnviromentVariables",
            "xmlElement": "environment",
            "properties": {
                "variables": {
                    "type": "array",
                    "xmlElement": "variable",
                    "items": {
                        "type": "object",
                        "javaType": "com.sos.joc.model.joe.job.EnviromentVariable",
                        "xmlElement": "variable",
                        "properties": {
                            "name": {
                                "type": "string"
                            },
                            "value": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    }
}