{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/commands/task.progress.schema.json",
  "$comment": "OpenEik 0.6: folded by tools/fold-schemas-0.6.mjs from the proposal workSchedules, which 0.6 makes a rule (open questions, 153). Written by hand, not generated.",
  "title": "task.progress",
  "description": "Reports a task's progress to its schedule's status date (Part XXII, 6, rule 7): its actual start and finish, its elements built each on its day, or its share complete; null takes a member, or an element built, away. Who reports it is the envelope's (Part XVII).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "task.progress"
    },
    "schedule": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "pattern": "^[^/\\s]+$",
      "description": "The work schedule's id."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "pattern": "^[^/\\s]+$",
      "description": "The task's id."
    },
    "actualStart": {
      "anyOf": [
        {
          "$ref": "../project/work-schedules.schema.json#/$defs/date"
        },
        {
          "type": "null"
        }
      ],
      "description": "The day work on it started, or null: not started."
    },
    "actualFinish": {
      "anyOf": [
        {
          "$ref": "../project/work-schedules.schema.json#/$defs/date"
        },
        {
          "type": "null"
        }
      ],
      "description": "The day it was finished, or null: not finished."
    },
    "built": {
      "type": "object",
      "minProperties": 1,
      "maxProperties": 5000,
      "propertyNames": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024
      },
      "additionalProperties": {
        "anyOf": [
          {
            "$ref": "../project/work-schedules.schema.json#/$defs/date"
          },
          {
            "type": "null"
          }
        ],
        "description": "The day it was built, or null: not built."
      },
      "description": "Elements built, each by its id: added to, or with null taken from, those the task holds."
    },
    "percent": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        {
          "type": "null"
        }
      ],
      "description": "Its share complete, in per cent, or null."
    },
    "expectedProgress": {
      "type": "object",
      "description": "The task's progress as read: its actualStart, actualFinish, built and percent where it gives them, {} where it gives none. The command is refused where it changed since (Part V, 3; Part XVII, 9)."
    }
  },
  "required": [
    "kind",
    "schedule",
    "id"
  ],
  "minProperties": 4,
  "additionalProperties": false
}
