{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xtiles-app/json-schema/xtiles-app-task-response-schema.json",
  "title": "TaskResponse",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xtiles-app-openapi.json#/components/schemas/TaskResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "$ref": "#/$defs/TitleDto"
    },
    "description": {
      "$ref": "#/$defs/DescriptionDto"
    },
    "completed": {
      "type": "boolean"
    },
    "due_date": {
      "type": "string",
      "format": "date"
    },
    "due_date_time": {
      "type": "string",
      "format": "date-time"
    },
    "priority": {
      "type": "string",
      "enum": [
        "LOW",
        "MEDIUM",
        "HIGH",
        "UNKNOWN"
      ]
    },
    "assignees": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserProfileDto"
      }
    },
    "created_by": {
      "$ref": "#/$defs/UserProfileDto"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "DescriptionDto": {
      "type": "object",
      "properties": {
        "text": {
          "maxLength": 50000,
          "minLength": 0,
          "type": "string"
        }
      }
    },
    "TitleDto": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        }
      }
    },
    "UserProfileDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    }
  }
}