{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/guidecx/json-schema/guidecx-create-task-input-schema.json",
  "title": "CreateTaskInput",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/guidecx-openapi-v2.json#/components/schemas/CreateTaskInput",
  "properties": {
    "assigneeId": {
      "$ref": "#/$defs/GlobalId"
    },
    "description": {
      "type": "string"
    },
    "dueDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "estimatedHours": {
      "type": "number",
      "format": "double"
    },
    "estimatedPoints": {
      "type": "number",
      "format": "double"
    },
    "milestoneId": {
      "$ref": "#/$defs/GlobalId"
    },
    "name": {
      "type": "string"
    },
    "priority": {
      "type": "string",
      "enum": [
        "LOW",
        "MEDIUM",
        "HIGH"
      ],
      "nullable": false
    },
    "responsibility": {
      "type": "string",
      "enum": [
        "CUSTOMER",
        "THIRD_PARTY",
        "INTERNAL"
      ],
      "nullable": false
    },
    "sortOrder": {
      "type": "number",
      "format": "double"
    },
    "startDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "VISIBLE",
        "NAME_ONLY",
        "HIDDEN"
      ],
      "nullable": false
    },
    "dependencyInfo": {
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "TASK",
            "MILESTONE",
            "TEMPLATE",
            "TASK_GROUP"
          ],
          "nullable": false
        },
        "id": {
          "$ref": "#/$defs/GlobalId"
        }
      },
      "required": [
        "type",
        "id"
      ],
      "type": "object"
    },
    "customFields": {
      "items": {
        "properties": {
          "value": {
            "type": "string"
          },
          "customFieldId": {
            "$ref": "#/$defs/GlobalId"
          }
        },
        "required": [
          "customFieldId"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "milestoneId",
    "name"
  ],
  "type": "object",
  "additionalProperties": false,
  "$defs": {
    "GlobalId": {
      "type": "string",
      "description": "Unique ID for GUIDEcx platform resources"
    }
  }
}