{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/allianz-future-cloud-platform/json-schema/allianz-future-cloud-platform-namespace-list-schema.json",
  "title": "NamespaceList",
  "description": "List of platform namespaces",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/allianz-future-cloud-platform-namespaces-api-openapi.yml#/components/schemas/NamespaceList",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "description": "Total number of namespaces"
    },
    "items": {
      "type": "array",
      "description": "List of namespace records",
      "items": {
        "$ref": "#/$defs/Namespace"
      }
    }
  },
  "$defs": {
    "Namespace": {
      "title": "Namespace",
      "type": "object",
      "description": "A Kubernetes namespace managed on the platform",
      "properties": {
        "namespace_id": {
          "type": "string",
          "description": "Unique identifier for the namespace"
        },
        "name": {
          "type": "string",
          "description": "Kubernetes namespace name"
        },
        "team": {
          "type": "string",
          "description": "Team owning this namespace"
        },
        "service_count": {
          "type": "integer",
          "description": "Number of services in this namespace"
        },
        "status": {
          "type": "string",
          "description": "Namespace status",
          "enum": [
            "active",
            "provisioning",
            "decommissioning"
          ]
        }
      }
    }
  }
}