{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/piece.adopt.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal pieces, which 0.5 makes a rule (open questions, 124). Written by hand, not generated.",
  "title": "piece.adopt",
  "description": "Writes an element that adopts a piece of an element as its layout lies now (Part XX, 9).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "piece.adopt"
    },
    "element": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The element the piece is a piece of."
    },
    "piece": {
      "type": "string",
      "minLength": 3,
      "maxLength": 400,
      "description": "The id the piece had in its element's layout (Part XX, 4.4 and 5.4)."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The new element's id."
    },
    "typeId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "A board's adoption: the type of the new element, of its element's category."
    },
    "expectedRevision": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ],
      "description": "The element's revision as read."
    }
  },
  "required": [
    "kind",
    "element",
    "piece",
    "id"
  ],
  "additionalProperties": false
}
