{
    "anyOf": [
        {
            "additionalProperties": false,
            "properties": {
                "client": {
                    "type": "string"
                },
                "client_url": {
                    "type": "string"
                },
                "contexts": {
                    "items": {
                        "anyOf": [
                            {
                                "additionalProperties": false,
                                "properties": {
                                    "href": {
                                        "type": "string"
                                    },
                                    "text": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "enum": [
                                            "link"
                                        ]
                                    }
                                },
                                "required": [
                                    "type",
                                    "href"
                                ]
                            },
                            {
                                "additionalProperties": false,
                                "properties": {
                                    "alt": {
                                        "type": "string"
                                    },
                                    "href": {
                                        "type": "string"
                                    },
                                    "src": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "enum": [
                                            "image"
                                        ]
                                    }
                                },
                                "required": [
                                    "type",
                                    "src"
                                ]
                            }
                        ],
                        "type": "object"
                    },
                    "type": "array"
                },
                "description": {
                    "type": "string"
                },
                "details": {
                    "additionalProperties": true,
                    "properties": {},
                    "type": "object"
                },
                "event_type": {
                    "enum": [
                        "trigger"
                    ]
                },
                "incident_key": {
                    "type": "string"
                },
                "service_key": {
                    "type": "string"
                }
            },
            "required": [
                "service_key",
                "event_type",
                "description"
            ]
        },
        {
            "additionalProperties": false,
            "properties": {
                "description": {
                    "type": "string"
                },
                "details": {
                    "additionalProperties": true,
                    "properties": {},
                    "type": "object"
                },
                "event_type": {
                    "enum": [
                        "acknowledge",
                        "resolve"
                    ]
                },
                "incident_key": {
                    "type": "string"
                },
                "service_key": {
                    "type": "string"
                }
            },
            "required": [
                "service_key",
                "event_type",
                "incident_key"
            ]
        }
    ],
    "description": "Schema for a PagerDuty event command",
    "self": {
        "format": "jsonschema",
        "name": "create_event",
        "vendor": "com.pagerduty.sauna.commands",
        "version": "1-0-0"
    },
    "type": "object"
}