{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "$id": "https://ordiva.actum360.com/data/people.v1.schema.json",
 "title": "Ordiva people behind the launches, export v1",
 "description": "Every person named as a launch's leader or co-leader (at most three per launch), with their launches. Cited people (W10 research) carry their source, grade and ladder label; the rest come from research notes and are not yet cited.",
 "type": "object",
 "properties": {
  "export_version": {
   "const": "1"
  },
  "generated_at": {
   "type": "string"
  },
  "site": {
   "type": "string"
  },
  "label": {
   "type": "string"
  },
  "method_version": {
   "type": "string"
  },
  "about": {
   "type": "string"
  },
  "counts": {
   "type": "object"
  },
  "industries": {
   "type": "object",
   "additionalProperties": {
    "type": "string"
   }
  },
  "eras": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "key": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "start": {
      "type": "integer"
     },
     "end": {
      "type": "integer"
     }
    },
    "required": [
     "key",
     "name",
     "start",
     "end"
    ],
    "additionalProperties": false
   }
  },
  "decades": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "key": {
      "type": "string"
     },
     "start": {
      "type": "integer"
     },
     "end": {
      "type": "integer"
     }
    },
    "required": [
     "key",
     "start",
     "end"
    ],
    "additionalProperties": false
   }
  },
  "as_of_year": {
   "type": "integer"
  },
  "launches": {
   "type": "object",
   "additionalProperties": {
    "type": "object",
    "properties": {
     "product": {
      "type": "string"
     },
     "year": {
      "type": "integer"
     },
     "company": {
      "type": "string"
     },
     "industry": {
      "type": "string"
     },
     "score": {
      "type": [
       "number",
       "null"
      ]
     },
     "band": {
      "type": [
       "string",
       "null"
      ]
     },
     "status": {
      "enum": [
       "scored",
       "modeled",
       "too-new",
       "not-scored"
      ]
     },
     "modeled_score": {
      "type": [
       "number",
       "null"
      ]
     },
     "decade": {
      "type": "string"
     },
     "era": {
      "type": "string"
     }
    },
    "required": [
     "product",
     "year",
     "company",
     "industry",
     "score",
     "band",
     "status",
     "modeled_score",
     "decade",
     "era"
    ],
    "additionalProperties": false
   }
  },
  "people": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "slug": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "disambig": {
      "type": [
       "string",
       "null"
      ]
     },
     "launch_count": {
      "type": "integer"
     },
     "co_led_count": {
      "type": "integer"
     },
     "median_score": {
      "type": [
       "number",
       "null"
      ]
     },
     "best_launch": {
      "type": [
       "string",
       "null"
      ]
     },
     "first_year": {
      "type": [
       "integer",
       "null"
      ]
     },
     "last_year": {
      "type": [
       "integer",
       "null"
      ]
     },
     "industries": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "companies": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "eras": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "launches": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "co_leaders": {
         "type": "array",
         "items": {
          "type": "string"
         },
         "maxItems": 2
        },
        "note": {
         "type": "string"
        },
        "role": {
         "type": "string"
        },
        "cited": {
         "type": "object",
         "properties": {
          "level": {
           "type": "string"
          },
          "label": {
           "type": [
            "string",
            "null"
           ]
          },
          "source_url": {
           "type": "string"
          },
          "grade": {
           "enum": [
            "A",
            "B",
            "C"
           ]
          },
          "wikipedia_only": {
           "type": "boolean"
          }
         },
         "required": [
          "level",
          "label",
          "source_url",
          "grade",
          "wikipedia_only"
         ],
         "additionalProperties": false
        }
       },
       "required": [
        "id",
        "co_leaders"
       ],
       "additionalProperties": false
      }
     },
     "photo": {
      "type": "object",
      "properties": {
       "src": {
        "type": "string"
       },
       "w": {
        "type": "integer"
       },
       "h": {
        "type": "integer"
       },
       "credit": {
        "type": "string"
       },
       "file_page": {
        "type": [
         "string",
         "null"
        ]
       },
       "license_url": {
        "type": [
         "string",
         "null"
        ]
       }
      },
      "required": [
       "src",
       "w",
       "h",
       "credit",
       "file_page",
       "license_url"
      ],
      "additionalProperties": false
     }
    },
    "required": [
     "slug",
     "name",
     "disambig",
     "launch_count",
     "co_led_count",
     "median_score",
     "best_launch",
     "first_year",
     "last_year",
     "industries",
     "companies",
     "eras",
     "launches"
    ],
    "additionalProperties": false
   }
  },
  "entities": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     },
     "kind": {
      "enum": [
       "team",
       "organisation",
       "unclear"
      ]
     },
     "launches": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    },
    "required": [
     "name",
     "kind",
     "launches"
    ],
    "additionalProperties": false
   }
  },
  "held": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "launch": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "reason": {
      "type": "string"
     }
    },
    "required": [
     "launch",
     "name",
     "reason"
    ],
    "additionalProperties": false
   }
  }
 },
 "required": [
  "export_version",
  "label",
  "counts",
  "launches",
  "people",
  "entities",
  "held"
 ],
 "additionalProperties": false
}