{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "urn:exploder-kit:handover-maps:1",
 "title": "Handover mappings",
 "description": "handover-maps.json: how the asset record maps to COBie, i3, Maximo, Brick and Haystack (studio/handover.py). Mappings marked to confirm are read from public formats.",
 "type": "object",
 "required": [
  "contact",
  "cobie",
  "i3",
  "maximo",
  "brick"
 ],
 "properties": {
  "contact": {
   "type": "object",
   "required": [
    "email",
    "company",
    "category"
   ]
  },
  "cobie": {
   "type": "object",
   "required": [
    "version",
    "unknown",
    "not_applicable",
    "required",
    "basis"
   ],
   "properties": {
    "required": {
     "type": "object",
     "additionalProperties": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    }
   }
  },
  "i3": {
   "type": "object",
   "required": [
    "state",
    "columns"
   ],
   "properties": {
    "columns": {
     "type": "array",
     "items": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2
     }
    }
   }
  },
  "maximo": {
   "type": "object",
   "required": [
    "state",
    "columns"
   ]
  },
  "brick": {
   "type": "object",
   "required": [
    "version",
    "state",
    "sensors"
   ]
  }
 }
}