{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agstack/json-schema/agstack-patched-farm-calendar-activity-type-schema.json",
  "title": "PatchedFarmCalendarActivityType",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agstack-farmcalendaractivitytypes-api-openapi.yml#/components/schemas/PatchedFarmCalendarActivityType",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "maxLength": 100
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "$ref": "#/$defs/CategoryEnum"
    },
    "background_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$",
      "maxLength": 7
    },
    "border_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$",
      "maxLength": 7
    },
    "text_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$",
      "maxLength": 7
    },
    "activity_endpoint": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The farm activitie API endpoint with the specific details of this activity type."
    }
  },
  "$defs": {
    "CategoryEnum": {
      "enum": [
        "activity",
        "observation",
        "alert"
      ],
      "type": "string",
      "description": "* `activity` - Activity\n* `observation` - Observation\n* `alert` - Alert"
    }
  }
}