{
    "title": "Filter for Releasable Objects",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.publish.ReleasablesFilter",
    "type": "object",
    "anyOf": [
        {
            "required": [
                "draftConfigurations"
            ]
        },
        {
            "required": [
                "releasedConfigurations"
            ]
        }
    ],
    "properties": {
        "draftConfigurations": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.publish.Config",
                "type": "object",
                "required": [
                    "configuration"
                ],
                "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": [
                                    "WORKINGDAYSCALENDAR",
                                    "NONWORKINGDAYSCALENDAR",
                                    "SCHEDULE",
                                    "INCLUDESCRIPT",
                                    "JOBTEMPLATE",
                                    "REPORT",
                                    "FOLDER"
                                ]
                            },
                            "commitId": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            },
                            "recursive": {
                                "type": "boolean",
                                "default": false
                            }
                        }
                    }
                }
            }
        },
        "releasedConfigurations": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.publish.Config",
                "type": "object",
                "required": [
                    "configuration"
                ],
                "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": [
                                    "WORKINGDAYSCALENDAR",
                                    "NONWORKINGDAYSCALENDAR",
                                    "SCHEDULE",
                                    "INCLUDESCRIPT",
                                    "JOBTEMPLATE",
                                    "REPORT",
                                    "FOLDER"
                                ]
                            },
                            "commitId": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            },
                            "recursive": {
                                "type": "boolean",
                                "default": false
                            }
                        }
                    }
                }
            }
        },
        "withoutInvalid": {
            "type": "boolean",
            "default": false
        }
    }
}