{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "IT Support Chicago Vendor Feed v1",
  "type": "object",
  "required": ["version", "company"],
  "properties": {
    "version": { "type": "integer", "const": 1 },
    "company": {
      "type": "object",
      "required": ["legal_name", "url"],
      "properties": {
        "legal_name": { "type": "string", "maxLength": 200 },
        "dba": { "type": "string", "maxLength": 200 },
        "url": { "type": "string", "format": "uri", "maxLength": 500 },
        "hq_address": { "type": "string", "maxLength": 500 },
        "office_locations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "city": { "type": "string", "maxLength": 200 },
              "state": { "type": "string", "maxLength": 50 },
              "address": { "type": "string", "maxLength": 500 }
            }
          },
          "maxItems": 20
        },
        "headcount": { "type": "integer", "minimum": 1 },
        "year_founded": { "type": "integer", "minimum": 1900 }
      }
    },
    "certifications": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "status"],
        "properties": {
          "name": { "type": "string", "maxLength": 200 },
          "status": { "type": "string", "enum": ["current", "expired", "pending"] },
          "issuer": { "type": "string", "maxLength": 200 },
          "valid_through": { "type": "string", "format": "date" },
          "evidence_url": { "type": "string", "format": "uri", "maxLength": 500 }
        }
      },
      "maxItems": 50
    },
    "services": {
      "type": "array",
      "items": { "type": "string", "maxLength": 200 },
      "maxItems": 50
    },
    "industries_served": {
      "type": "array",
      "items": { "type": "string", "maxLength": 200 },
      "maxItems": 50
    },
    "support": {
      "type": "object",
      "properties": {
        "hours": { "type": "string", "enum": ["business", "extended", "24x7"] },
        "sla_response_minutes": { "type": "integer", "minimum": 1 },
        "onsite_available": { "type": "boolean" },
        "onsite_cities": {
          "type": "array",
          "items": { "type": "string", "maxLength": 200 },
          "maxItems": 50
        }
      }
    },
    "contract": {
      "type": "object",
      "properties": {
        "typical_term_years": { "type": "number", "minimum": 0, "maximum": 10 },
        "month_to_month_available": { "type": "boolean" },
        "exit_notice_days": { "type": "integer", "minimum": 0 },
        "price_lock_years": { "type": "number", "minimum": 0, "maximum": 10 }
      }
    },
    "review_urls": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["platform", "url"],
        "properties": {
          "platform": { "type": "string", "maxLength": 200 },
          "url": { "type": "string", "format": "uri", "maxLength": 500 }
        }
      },
      "maxItems": 50
    },
    "notable_events": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["title", "date"],
        "properties": {
          "title": { "type": "string", "maxLength": 500 },
          "date": { "type": "string", "format": "date" },
          "description": { "type": "string", "maxLength": 2000 },
          "url": { "type": "string", "format": "uri", "maxLength": 500 },
          "type": { "type": "string", "enum": ["award", "partnership", "acquisition", "milestone", "expansion", "press"] }
        }
      },
      "maxItems": 20
    },
    "corrections": {
      "type": "object",
      "properties": {
        "note": { "type": "string", "maxLength": 2000 },
        "contact_email": { "type": "string", "format": "email", "maxLength": 200 }
      }
    },
    "$schema": { "type": "string", "format": "uri" }
  },
  "additionalProperties": false
}
