{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fareeqy-com/json-schema/fareeqy-com-event-schema.json",
  "title": "Event",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fareeqy-com-openapi.yaml#/components/schemas/Event",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Numeric id (events have no slug)."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Absolute address of the page a person opens in فريقي."
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "starts_at": {
      "type": "string",
      "format": "date-time"
    },
    "ends_at": {
      "type": "string",
      "format": "date-time"
    },
    "all_day": {
      "type": "boolean"
    },
    "meeting_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "organizer": {
      "type": [
        "string",
        "null"
      ],
      "description": "The person who organized the event. A key can edit or delete any event in its company, whoever organized it."
    },
    "organizer_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "attendees": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserRef"
      }
    }
  },
  "$defs": {
    "UserRef": {
      "type": "object",
      "description": "A user reference — name for humans, email as the write handle.",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email"
        }
      }
    }
  }
}