{
    "title": "Filter For The Deployment History",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.publish.ShowDepHistoryFilter",
    "type": "object",
    "oneOf": [
        {
            "required": [
                "compactFilter"
            ]
        },
        {
            "required": [
                "detailFilter"
            ]
        }
    ],
    "properties": {
        "compactFilter": {
            "javaType": "com.sos.joc.model.publish.DepHistoryCompactFilter",
            "type": "object",
            "properties": {
                "account": {
                    "type": "string"
                },
                "folder": {
                    "type": "string"
                },
                "controllerId": {
                    "type": "string"
                },
                "deployType": {
                    "type": "string"
                },
                "operation": {
                    "type": "string"
                },
                "state": {
                    "type": "string"
                },
                "deploymentDate": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "deleteDate": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "from": {
                    "description": "0 or [number][smhdwMy] (where smhdwMy unit for second, minute, etc) or ISO 8601 timestamp",
                    "type": "string",
                    "pattern": "^([+-]?0|([+-]?[0-9]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([,.]\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
                },
                "to": {
                    "description": "0 or [number][smhdwMy] (where smhdwMy unit for second, minute, etc) or ISO 8601 timestamp",
                    "type": "string",
                    "pattern": "^([+-]?0|([+-]?[0-9]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([,.]\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
                },
                "timeZone": {
                    "description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
                    "type": "string"
                },
                "limit": {
                    "description": "Limits the number of resulting items; -1=unlimited",
                    "type": "integer",
                    "default": 5000
                }
            }
        },
        "detailFilter": {
            "javaType": "com.sos.joc.model.publish.DepHistoryDetailFilter",
            "type": "object",
            "properties": {
                "account": {
                    "type": "string"
                },
                "path": {
                    "type": "string"
                },
                "folder": {
                    "type": "string"
                },
                "controllerId": {
                    "type": "string"
                },
                "commitId": {
                    "type": "string"
                },
                "auditlogId": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                },
                "deployType": {
                    "type": "string"
                },
                "operation": {
                    "type": "string"
                },
                "state": {
                    "type": "string"
                },
                "deploymentDate": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "deleteDate": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "from": {
                    "description": "0 or [number][smhdwMy] (where smhdwMy unit for second, minute, etc) or ISO 8601 timestamp",
                    "type": "string",
                    "pattern": "^([+-]?0|([+-]?[0-9]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([,.]\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
                },
                "to": {
                    "description": "0 or [number][smhdwMy] (where smhdwMy unit for second, minute, etc) or ISO 8601 timestamp",
                    "type": "string",
                    "pattern": "^([+-]?0|([+-]?[0-9]+[smhdwMy])+|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}([,.]\\d{1,3})?)(Z|[+-]\\d{2}(:?\\d{2})?)?$"
                },
                "timeZone": {
                    "description": "see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones",
                    "type": "string"
                },
                "limit": {
                    "description": "Limits the number of resulting items; -1=unlimited",
                    "type": "integer",
                    "default": 5000
                }
            }
        }
    }
}