{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TaskCreateOrUpdate",
  "title": "TaskCreateOrUpdate",
  "externalDocs": {
    "url": "https://developer.xero.com/documentation/projects/projects"
  },
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the task. Max length 100 characters.",
      "maximum": 100
    },
    "rate": {
      "$ref": "#/components/schemas/Amount",
      "type": "number"
    },
    "chargeType": {
      "$ref": "#/components/schemas/ChargeType",
      "type": "string"
    },
    "estimateMinutes": {
      "type": "integer",
      "description": "An estimated time to perform the task"
    }
  },
  "required": [
    "name",
    "rate",
    "chargeType"
  ]
}