{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "protocol": {
            "type": "string",
            "enum": [
                "choria:secure:request:1"
            ]
        },
        "message": {
            "type": "string",
            "description": "YAML encoded choria:request:1"
        },
        "signature": {
            "type": "string",
            "description": "SHA256 based signature of the message using the senders private key"
        },
        "pubcert": {
            "type": "string",
            "description": "PEM format X509 certificate of the sender"
        }
    },
    "required": [
        "protocol",
        "message",
        "signature",
        "pubcert"
    ]
}