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