{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lexgo-be/json-schema/lexgo-be-event-list-schema.json",
  "title": "EventList",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lexgo-be-openapi.json#/components/schemas/EventList",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Event"
      }
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "CompanyName": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Event": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "integer"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "click_url": {
          "type": "string",
          "format": "uri"
        },
        "domain": {
          "type": "string",
          "enum": [
            "be",
            "lu"
          ]
        },
        "languages": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "nl",
              "fr",
              "en"
            ]
          }
        },
        "event_starts_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "event_ends_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "titles": {
          "$ref": "#/$defs/LocalizedStrings"
        },
        "summaries": {
          "$ref": "#/$defs/LocalizedStrings"
        },
        "company": {
          "$ref": "#/$defs/CompanyName"
        }
      }
    },
    "LocalizedStrings": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "nl": {
          "type": [
            "string",
            "null"
          ]
        },
        "fr": {
          "type": [
            "string",
            "null"
          ]
        },
        "en": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}