{
    "title": "set versions",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.publish.SetVersionsFilter",
    "type": "object",
    "required": [
        "deployConfigurations"
    ],
    "properties": {
        "deployConfigurations": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.publish.DeploymentVersion",
                "type": "object",
                "required": [
                    "configuration",
                    "version"
                ],
                "properties": {
                    "configuration": {
                        "javaType": "com.sos.joc.model.publish.Configuration",
                        "type": "object",
                        "required": [
                            "path",
                            "objectType"
                        ],
                        "properties": {
                            "path": {
                                "description": "absolute path of an object.",
                                "type": "string",
                                "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                                "maxLength": 255,
                                "minLength": 1
                            },
                            "objectType": {
                                "javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
                                "type": "string",
                                "enum": [
                                    "FOLDER",
                                    "WORKFLOW",
                                    "JOBCLASS",
                                    "JOBRESOURCE",
                                    "LOCK",
                                    "NOTICEBOARD",
                                    "FILEORDERSOURCE",
                                    "WORKINGDAYSCALENDAR",
                                    "NONWORKINGDAYSCALENDAR",
                                    "SCHEDULE",
                                    "INCLUDESCRIPT",
                                    "JOBTEMPLATE",
                                    "DEPLOYMENTDESCRIPTOR",
                                    "DESCRIPTORFOLDER"
                                ]
                            },
                            "commitId": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            },
                            "recursive": {
                                "type": "boolean",
                                "default": false
                            }
                        }
                    },
                    "version": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    }
                }
            }
        },
        "auditLog": {
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "timeSpent": {
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        }
    }
}