{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/costSchedules/selection.schema.json",
  "$comment": "OpenEik 0.6: folded by tools/fold-schemas-0.6.mjs from the proposal costSchedules, which 0.6 makes a rule (open questions, 151). Written by hand, not generated.",
  "title": "A selection of elements",
  "description": "The elements a cost item measures or a task builds (Part XXII, 2): those every criterion it gives keeps, each criterion keeping an element that matches any of its values. An element that gives no status is new.",
  "type": "object",
  "properties": {
    "elementIds": {
      "description": "These elements, by their ids: a stored element's, or an instance's of a placed copy (Part IV, 13).",
      "type": "array",
      "minItems": 1,
      "maxItems": 5000,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024
      }
    },
    "typeIds": {
      "description": "The elements of these types.",
      "type": "array",
      "minItems": 1,
      "maxItems": 1000,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024
      }
    },
    "categories": {
      "description": "The elements of these categories.",
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^[a-z][A-Za-z0-9]*$",
        "maxLength": 64
      }
    },
    "levelIds": {
      "description": "The elements on these levels, by their levelId.",
      "type": "array",
      "minItems": 1,
      "maxItems": 1000,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1024
      }
    },
    "status": {
      "description": "The elements of these statuses (Part II, 6), an element that gives none being new.",
      "type": "array",
      "minItems": 1,
      "maxItems": 3,
      "uniqueItems": true,
      "items": {
        "enum": [
          "existing",
          "new",
          "demolished"
        ]
      }
    },
    "tenderParts": {
      "description": "The elements bought in these tender parts (Part II, 11.1, rule 2), compared as they are written.",
      "type": "array",
      "minItems": 1,
      "maxItems": 100,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 40
      }
    }
  },
  "minProperties": 1,
  "x-eik-closed": true
}
