{
    "title": "workflows order count",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.workflow.WorkflowsOrderCount",
    "type": "object",
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "surveyDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "workflows": {
            "type": "array",
            "items": {
                "type": "object",
                "javaType": "com.sos.joc.model.workflow.WorkflowOrderCount",
                "properties": {
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "versionId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "numOfOrders": {
                        "javaType": "com.sos.joc.model.order.OrdersSummary",
                        "type": "object",
                        "properties": {
                            "pending": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "scheduled": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "inProgress": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "running": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "prompting": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "suspended": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "waiting": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "blocked": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "failed": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "terminated": {
                                "type": "integer",
                                "minimum": 0
                            }
                        }
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}