{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "urn:exploder-kit:fronts:1",
 "title": "Fronts",
 "description": "fronts.json (note 102): where F stands for each subject (a building, level, section, room or asset): position, eye height, facing, who set it and when.",
 "type": "object",
 "required": [
  "fronts"
 ],
 "properties": {
  "about": {
   "type": "string"
  },
  "fronts": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "subject",
     "position",
     "eye_m",
     "yaw_deg",
     "pitch_deg",
     "set_by",
     "set_at"
    ],
    "properties": {
     "subject": {
      "type": "string"
     },
     "subject_name": {
      "type": "string"
     },
     "position": {
      "type": "array",
      "minItems": 2,
      "maxItems": 3,
      "items": {
       "type": "number"
      }
     },
     "eye_m": {
      "type": "number",
      "minimum": 0
     },
     "yaw_deg": {
      "type": "number",
      "description": "the way the eye looks, degrees from east, counter-clockwise"
     },
     "pitch_deg": {
      "type": "number"
     },
     "set_by": {
      "type": "string"
     },
     "set_at": {
      "type": "string"
     },
     "note": {
      "type": "string"
     },
     "source": {
      "type": "string"
     },
     "state": {
      "type": "string"
     }
    }
   }
  }
 }
}