Skip to content

Notification schema

{
    "$schema": "http://json-schema.org/draft/2019-09/schema#",
    "title": "JSON SCHEMA for opentestfactory.org/v1alpha1 Notification manifests",
    "type": "object",

    "properties": {
        "apiVersion": { "const": "opentestfactory.org/v1alpha1" },
        "kind": { "const": "Notification" },
        "metadata": {
            "type": "object",
            "properties": {
                "name": { "type": "string" },
                "workflow_id": { "type": "string" }
            },
            "additionalProperties": true,
            "required": [ "name" ]
        },
        "spec": {
            "type": "object",
            "properties": {
                "worker": {
                    "type": "object",
                    "properties": {
                        "worker_id": { "type": "string" },
                        "status": { "type": "string", "enum": [ "setup", "teardown" ] }
                    },
                    "additionalProperties": false,
                    "required": [ "worker_id", "status" ]
                }
            },
            "additionalProperties": true
        }
    },
    "required": [ "apiVersion", "kind", "metadata", "spec" ],
    "additionalProperties": false
}