{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/commands/array.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": "array",
  "description": "Copies an element in a row (Part V, 2.3.1, rule 7): the k-th copy, of copyIds, moved by k times delta. Run as creates.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "array"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The element's revision as read."
    },
    "delta": {
      "type": "array",
      "minItems": 3,
      "maxItems": 3,
      "prefixItems": [
        {
          "type": "number"
        },
        {
          "type": "number"
        },
        {
          "type": "number"
        }
      ],
      "description": "The step from one copy to the next, [dx, dy, dz], mm, 0.001 mm long or more."
    },
    "copyIds": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 1,
      "maxItems": 99,
      "description": "The copies' ids, one for each copy, each new."
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "delta",
    "copyIds"
  ],
  "additionalProperties": false
}
