{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildworkpro-com/json-schema/buildworkpro-com-calendar-event-schema.json",
  "title": "CalendarEvent",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buildworkpro-com-calendar-api-openapi.yml#/components/schemas/CalendarEvent",
  "type": "object",
  "properties": {
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ]
    },
    "type": {
      "type": "string",
      "enum": [
        "task",
        "phase",
        "project",
        "lead",
        "activity",
        "bid"
      ]
    },
    "title": {
      "type": "string"
    },
    "start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "projectId": {
      "type": [
        "integer",
        "null"
      ]
    },
    "assignedTo": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "type",
    "title",
    "start",
    "end"
  ]
}