{
    "title": "tag content",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.inventory.common.ResponseTag",
    "type": "object",
    "required": [
        "deliveryDate",
        "path"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "tag": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "workflows": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.inventory.common.ResponseFolderItem",
                "type": "object",
                "required": [
                    "name",
                    "path",
                    "objectType"
                ],
                "properties": {
                    "id": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "name": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "objectType": {
                        "javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
                        "type": "string",
                        "enum": [
                            "FOLDER",
                            "WORKFLOW",
                            "JOBCLASS",
                            "JOBRESOURCE",
                            "LOCK",
                            "NOTICEBOARD",
                            "FILEORDERSOURCE",
                            "WORKINGDAYSCALENDAR",
                            "NONWORKINGDAYSCALENDAR",
                            "SCHEDULE",
                            "INCLUDESCRIPT",
                            "JOBTEMPLATE"
                        ]
                    },
                    "title": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "valid": {
                        "type": "boolean"
                    },
                    "workflowNames": {
                        "description": "additional field only for schedules",
                        "type": "array",
                        "items": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    },
                    "deleted": {
                        "type": "boolean"
                    },
                    "deployed": {
                        "type": "boolean"
                    },
                    "released": {
                        "type": "boolean"
                    },
                    "hasDeployments": {
                        "type": "boolean"
                    },
                    "hasReleases": {
                        "type": "boolean"
                    },
                    "syncState": {
                        "javaType": "com.sos.controller.model.common.SyncState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "type": "integer"
                            },
                            "_text": {
                                "javaType": "com.sos.controller.model.common.SyncStateText",
                                "description": "SUSPENDED, OUTSTANDING only for Workflows",
                                "type": "string",
                                "enum": [
                                    "IN_SYNC",
                                    "NOT_IN_SYNC",
                                    "NOT_DEPLOYED",
                                    "SUSPENDED",
                                    "OUTSTANDING",
                                    "UNKNOWN"
                                ]
                            }
                        }
                    }
                }
            },
            "uniqueItems": true
        }
    },
    "additionalProperties": false
}