{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/joint.upsert.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal domainCommands, which 0.5 makes a rule (open questions, 139). Written by hand, not generated.",
  "title": "joint.upsert",
  "description": "Writes a joint of a fabrication whole (Part V, 2.3.1, rule 18): one that is there in its place at its revision plus one, a new one at the end of its list at revision 0; a given expectedRevision is the joint's, and refused for a new one.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "joint.upsert"
    },
    "joint": {
      "$ref": "../fabrication/joint.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The joint's revision as read, where given."
    }
  },
  "required": [
    "kind",
    "joint"
  ],
  "additionalProperties": false
}
