{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/rotate.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": "rotate",
  "description": "Turns an element in plan by degrees about centre, anticlockwise (Part V, 2.3.1, rule 7), or a copy of it under copyId. Run as updates and creates.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "rotate"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The element's revision as read."
    },
    "centre": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "prefixItems": [
        {
          "type": "number"
        },
        {
          "type": "number"
        }
      ],
      "description": "The point it turns about, [x, y], mm."
    },
    "degrees": {
      "type": "number",
      "description": "The turn, degrees, anticlockwise in plan."
    },
    "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",
    "centre",
    "degrees"
  ],
  "additionalProperties": false
}
