{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/workers_dispatch_namespace_binding",
  "title": "workers_dispatch_namespace_binding",
  "properties": {
    "name": {
      "$ref": "#/components/schemas/workers_binding_name"
    },
    "namespace": {
      "description": "Namespace to bind to",
      "example": "my-namespace",
      "type": "string"
    },
    "outbound": {
      "description": "Outbound worker",
      "properties": {
        "params": {
          "description": "Pass information from the Dispatch Worker to the Outbound Worker through the parameters",
          "items": {
            "example": "url",
            "type": "string"
          },
          "type": "array"
        },
        "worker": {
          "description": "Outbound worker",
          "properties": {
            "environment": {
              "description": "Environment of the outbound worker",
              "type": "string"
            },
            "service": {
              "description": "Name of the outbound worker",
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "type": {
      "description": "The class of resource that the binding provides.",
      "enum": [
        "dispatch_namespace"
      ],
      "example": "dispatch_namespace",
      "type": "string"
    }
  },
  "required": [
    "name",
    "type",
    "namespace"
  ],
  "type": "object"
}