{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/checks/waivers.schema.json",
  "$comment": "OpenEik 0.7: folded by tools/fold-schemas-0.7.mjs from the proposal checks, which 0.7 makes a rule (open questions, 169). Written by hand, not generated.",
  "title": "A building's waivers, checks/waivers.json",
  "description": "The findings a building accepts for a time (Part XXIII, 8): each of one check at one version, on one element, with the reason, who answers for it and the last day it holds.",
  "type": "object",
  "required": [
    "format",
    "waivers"
  ],
  "additionalProperties": false,
  "properties": {
    "format": {
      "const": "openeik-waivers/0.1"
    },
    "waivers": {
      "type": "array",
      "maxItems": 10000,
      "items": {
        "type": "object",
        "required": [
          "check",
          "version",
          "element",
          "reason",
          "owner",
          "until"
        ],
        "additionalProperties": false,
        "properties": {
          "check": {
            "description": "The check's qualified id, <suite>/<check> (rule 1).",
            "type": "string",
            "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*/[a-z][a-z0-9]*(-[a-z0-9]+)*$",
            "maxLength": 129
          },
          "version": {
            "description": "The check's version it waives a finding of (rule 2).",
            "type": "integer",
            "minimum": 1,
            "maximum": 1000000
          },
          "element": {
            "description": "The element's id (rule 1).",
            "type": "string",
            "minLength": 1,
            "maxLength": 1000
          },
          "reason": {
            "description": "Why the finding is accepted (rule 3).",
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "owner": {
            "description": "Who answers for it: a party of project/owners.json by its id where the building has the file (Part XVI), else a person or a firm by name (rule 3).",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "until": {
            "description": "The last day it holds, YYYY-MM-DD (rule 4).",
            "type": "string",
            "pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$"
          }
        }
      }
    }
  }
}
