{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/mirror.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": "mirror",
  "description": "Mirrors an element about the line through axis's two points (Part V, 2.3.1, rule 7), or a copy of it under copyId. Run as updates and creates.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "mirror"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The element's revision as read."
    },
    "axis": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "prefixItems": [
        {
          "type": "array",
          "minItems": 2,
          "maxItems": 2,
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ]
        },
        {
          "type": "array",
          "minItems": 2,
          "maxItems": 2,
          "prefixItems": [
            {
              "type": "number"
            },
            {
              "type": "number"
            }
          ]
        }
      ],
      "description": "Two points of the mirror's line, [x, y], mm, 0.001 mm apart or more."
    },
    "copyId": {
      "type": "string",
      "minLength": 1,
      "description": "Where given, the element stays and a copy is made under this id, new; its hosted elements are copied under <copyId>:<their id>."
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "axis"
  ],
  "additionalProperties": false
}
