{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/when-i-work/json-schema/when-i-work-annotation-schema.json",
  "title": "Annotation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/when-i-work-annotations-api-openapi.yml#/components/schemas/Annotation",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "account_id": {
      "type": "integer",
      "readOnly": true
    },
    "all_locations": {
      "type": "boolean"
    },
    "announcement": {
      "type": "boolean"
    },
    "business_closed": {
      "type": "boolean"
    },
    "color": {
      "type": "string"
    },
    "creator_id": {
      "type": "integer",
      "readOnly": true
    },
    "end_date": {
      "type": "string",
      "format": "date-time"
    },
    "locations": {
      "type": "array",
      "items": {
        "ref": "schedules.yaml#/components/schemas/Schedule"
      }
    },
    "message": {
      "type": "string"
    },
    "no_time_off": {
      "type": "boolean"
    },
    "start_date": {
      "type": "string",
      "format": "date-time"
    },
    "title": {
      "type": "string",
      "required": true
    },
    "relevant_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "description": "Read only date set to 2 weeks before start date"
    },
    "created_at": {
      "readOnly": true,
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "readOnly": true,
      "type": "string",
      "format": "date-time"
    }
  }
}