{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/commands/mep.downpipe.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": "mep.downpipe",
  "description": "A downpipe from a gutter's end (Part V, 2.3.1, rule 26): a pipe of the type and size the command gives, hosted by the gutter, from under the gutter down to its foot, back to the wall under the eave in a swan neck where the facade stands off, and out at its foot in a kick-out; mep.downpipe records what it is worked out from. Run as a create.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "mep.downpipe"
    },
    "gutterId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "typeId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "type",
      "description": "The pipe type: OpenEik names no downpipe type, so the command gives it."
    },
    "size": {
      "type": "number",
      "minimum": 40,
      "maximum": 250,
      "description": "The pipe's diameter, mm: OpenEik sizes no product, so the command gives it."
    },
    "end": {
      "type": "string",
      "enum": [
        "start",
        "end"
      ],
      "description": "The gutter's end it hangs at: end where it is left out."
    },
    "levelId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "level",
      "description": "The level its foot is measured from; the level nearest elevation 0 where it is left out."
    },
    "foot": {
      "type": "number",
      "minimum": -5000,
      "maximum": 5000,
      "description": "Its foot's height over that level, mm; -150 where it is left out."
    },
    "kickOut": {
      "type": "boolean",
      "description": "A kick-out at its foot; true where it is left out."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "The pipe's id; <gutterId>:downpipe, then -2, -3 …, where it is left out."
    },
    "expectedHostRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The gutter's revision as read; optional outside an envelope."
    }
  },
  "required": [
    "kind",
    "gutterId",
    "typeId",
    "size"
  ],
  "additionalProperties": false
}
