{
  "type": "object",
  "title": "Operator",
  "description": "Entity operating a logistics network or fleet, responsible for end-to-end delivery service.",
  "required": [
    "id",
    "name"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "OPR-DELHIVERY-001"
    },
    "name": {
      "type": "string",
      "example": "Delhivery"
    },
    "type": {
      "type": "string",
      "enum": [
        "3PL",
        "CAPTIVE",
        "AGGREGATOR",
        "POSTAL"
      ],
      "example": "3PL"
    },
    "contact": {
      "$ref": "https://schema.nfh.global/Contact/v2.0/schema.json"
    },
    "website": {
      "type": "string",
      "format": "uri"
    },
    "supportEmail": {
      "type": "string",
      "format": "email"
    },
    "supportPhone": {
      "type": "string"
    },
    "rating": {
      "type": "number",
      "minimum": 1,
      "maximum": 5
    },
    "activeCarriers": {
      "type": "integer",
      "description": "Number of carriers on the operator's network"
    },
    "activeDrivers": {
      "type": "integer"
    },
    "deliveriesPerDay": {
      "type": "integer"
    },
    "serviceCoverage": {
      "type": "object",
      "properties": {
        "countries": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "cities": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "certifications": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "ISO9001",
        "GDPR_COMPLIANT"
      ]
    }
  },
  "$id": "https://schema.nfh.global/LogisticsOperator/v2.0",
  "x-iri": "https://schema.nfh.global/LogisticsOperator/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
