{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tascan-io/json-schema/tascan-io-task-schema.json",
  "title": "Task",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tascan-io-openapi.json#/components/schemas/Task",
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "response_type": {
      "type": "string",
      "enum": [
        "checkbox",
        "text",
        "number",
        "date",
        "choice",
        "photo",
        "file",
        "url",
        "voice",
        "video"
      ],
      "description": "How the worker responds.  checkbox = tap done; text/number/date collect a value; choice shows options from response_config.options; photo requires a photo."
    },
    "response_config": {
      "type": "object",
      "description": "Type-specific config, e.g. {\"options\":[\"Pass\",\"Fail\"]} for choice, {\"multiline\":true} for text"
    },
    "requires_photo": {
      "type": "boolean"
    },
    "is_safety_checkpoint": {
      "type": "boolean"
    },
    "sort_order": {
      "type": "integer"
    }
  },
  "required": [
    "title"
  ]
}