{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/commands/calendar.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": "calendar.upsert",
  "description": "Writes a calendar 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": "calendar.upsert"
    },
    "calendar": {
      "$ref": "../project/work-schedules.schema.json#/$defs/calendar"
    },
    "expectedCalendar": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "The calendar as read, whole; null in an envelope for a new one."
    }
  },
  "required": [
    "kind",
    "calendar"
  ],
  "additionalProperties": false
}
