{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/commands/system.assign.schema.json",
  "$comment": "OpenEik 0.6: folded by tools/fold-schemas-0.6.mjs from the proposal systems, which 0.6 makes a rule (open questions, 145). Written by hand, not generated.",
  "title": "system.assign",
  "description": "Puts a pipe or a duct in a system, a kind and a number (Part II, 6.9.1, rule 1), and with follow every run its fittings join it to, of its category and its kind before the change, through ends that meet and ends that lie on a run, ports left out (Part IV, 12.8, rule 1; Part V, 2.3.3, rule 1). Run as an update of each run's mep.system and mep.number; a component in a run goes with it.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "system.assign"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element",
      "description": "The pipe or the duct."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The run's revision as read."
    },
    "system": {
      "type": "string",
      "enum": [
        "sewage",
        "storm",
        "coldWater",
        "hotWater",
        "hotWaterCirculation",
        "heating",
        "brine",
        "compressedAir",
        "districtHeating",
        "greaseWaste",
        "oilWaste",
        "gas",
        "supplyAir",
        "extractAir",
        "outdoorAir",
        "exhaustAir",
        "kitchenExhaust"
      ],
      "description": "The system's kind, of Part II, 6.9's table."
    },
    "number": {
      "type": "integer",
      "minimum": 1,
      "maximum": 99,
      "description": "The system's number; 1 where it is left out, which writes no mep.number."
    },
    "follow": {
      "type": "boolean",
      "description": "Every run its fittings join it to too (Part IV, 12.8, rule 1), each at its revision as the model holds it (Part V, 2.3.3, rule 1); false where it is left out."
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "system"
  ],
  "additionalProperties": false
}
