{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spectro-cloud/main/json-schema/spectro-cloud-v1-channel-schema.json",
  "title": "v1Channel",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spectro-cloud-projects-api-openapi.yml#/components/schemas/v1Channel",
  "properties": {
    "alertAllUsers": {
      "type": "boolean",
      "x-omitempty": false
    },
    "createdBy": {
      "type": "string"
    },
    "http": {
      "properties": {
        "body": {
          "type": "string"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          }
        },
        "method": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "identifiers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "isActive": {
      "type": "boolean",
      "x-omitempty": false
    },
    "status": {
      "$ref": "#/$defs/v1AlertNotificationStatus"
    },
    "type": {
      "enum": [
        "email",
        "app",
        "http"
      ],
      "type": "string"
    },
    "uid": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "v1AlertNotificationStatus": {
      "properties": {
        "isSucceeded": {
          "type": "boolean",
          "x-omitempty": false
        },
        "message": {
          "type": "string"
        },
        "time": {
          "$ref": "#/$defs/v1Time"
        }
      },
      "type": "object"
    },
    "v1Time": {
      "description": "Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON.  Wrappers are provided for many of the factory methods that the time package offers.",
      "format": "date-time",
      "type": "string"
    }
  }
}