{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/commands/workSchedule.upsert.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": "workSchedule.upsert",
  "description": "Writes a work schedule whole, under its id: a new one at the end of the list, one that is there in its place (Part XXII, 6, rule 1).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "workSchedule.upsert"
    },
    "schedule": {
      "$ref": "../project/work-schedules.schema.json#/$defs/schedule"
    },
    "expectedSchedule": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "The schedule as read, whole; null in an envelope for a new one."
    }
  },
  "required": [
    "kind",
    "schedule"
  ],
  "additionalProperties": false
}
