{
    "title": "lock in a workflow",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.lock.common.WorkflowLock",
    "type": "object",
    "required": [
        "id",
        "type"
    ],
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "type": {
            "javaType": "com.sos.joc.model.lock.common.WorkflowLockType",
            "type": "string",
            "enum": [
                "EXCLUSIVE",
                "SHARED",
                "UNKNOWN"
            ]
        },
        "count": {
            "type": "integer",
            "minimum": 0
        }
    },
    "additionalProperties": false
}