{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onboard-io/json-schema/onboard-io-history-map-tasks-serializer-schema.json",
  "title": "HistoryMapTasksSerializer",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onboard-io-openapi.json#/components/schemas/HistoryMapTasksSerializer",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "record_type": {
      "type": "string",
      "readOnly": true
    },
    "description": {
      "type": "string"
    },
    "order": {
      "type": "integer",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "complete"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "is_section": {
      "type": "boolean"
    },
    "client_visibility": {
      "type": "string",
      "enum": [
        "show_when_map_created",
        "hide_when_map_created",
        "show_when_prev_section_complete"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "is_internal": {
      "type": "boolean"
    },
    "is_optional": {
      "type": "boolean"
    },
    "onboardee_user": {
      "type": "string"
    },
    "onboarder_user": {
      "type": "string"
    },
    "due_date": {
      "type": "string",
      "format": "date"
    },
    "completed_by_onboardee_user": {
      "type": "string"
    },
    "completed_by_onboarder_user": {
      "type": "string"
    },
    "completed_at": {
      "type": "string",
      "format": "date-time"
    },
    "history_date": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "roadmap": {
      "type": "string"
    },
    "event_type": {
      "type": "string"
    },
    "estimated_time": {
      "type": "integer"
    },
    "estimated_time_unit": {
      "type": "string",
      "enum": [
        "minutes",
        "hours",
        "days"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "estimated_time_raw": {
      "type": "integer"
    },
    "time_spent": {
      "type": "number",
      "format": "float"
    },
    "time_spent_unit": {
      "type": "string",
      "enum": [
        "minutes",
        "hours",
        "days"
      ],
      "x-onboard-source": "serializer-or-model-choices"
    },
    "time_spent_raw": {
      "type": "integer"
    },
    "external_id": {
      "type": "string"
    },
    "is_ttv": {
      "type": "boolean",
      "description": "Time to Value task - only one task per project template, global tasks, or roadmap can be marked as TTV"
    }
  },
  "required": [
    "name",
    "onboardee_user",
    "onboarder_user",
    "completed_by_onboardee_user",
    "completed_by_onboarder_user",
    "roadmap",
    "event_type"
  ]
}