{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/pit.upsert.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal ground, which 0.5 makes a rule (open questions, 132). Written by hand, not generated.",
  "title": "pit.upsert",
  "description": "Writes a pit whole, under its id: a new one at the end of its list, one that is there in its place (Part XIX, 8).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "pit.upsert"
    },
    "pit": {
      "$ref": "../project/ground.schema.json#/$defs/pit"
    },
    "expectedPit": {
      "anyOf": [
        {
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "description": "The pit as read, whole; null in an envelope for a new one."
    }
  },
  "required": [
    "kind",
    "pit"
  ],
  "additionalProperties": false
}
