{
    "title": "Signature of a JS object",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.sign.SignaturePath",
    "type": "object",
    "required": [
        "objectPath",
        "objectType",
        "signature"
    ],
    "properties": {
        "objectPath": {
            "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": [
                "FOLDER",
                "WORKFLOW",
                "JOBCLASS",
                "LOCK",
                "JUNCTION",
                "WORKINGDAYSCALENDAR",
                "NONWORKINGDAYSCALENDAR",
                "SCHEDULE",
                "JOB"
            ]
        },
        "signature": {
            "javaType": "com.sos.joc.model.sign.Signature",
            "type": "object",
            "required": [
                "TYPE",
                "signatureString"
            ],
            "properties": {
                "signatureType": {
                    "javaType": "com.sos.joc.model.sign.SignatureType",
                    "type": "string",
                    "enum": [
                        "PGP",
                        "X509",
                        "Silly"
                    ],
                    "default": "X509"
                },
                "signatureString": {
                    "type": "string"
                }
            }
        }
    },
    "additionalProperties": false
}