{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://verio.dev/schema/risks.schema.json",
  "title": "Risk analysis file",
  "description": "The ISO 14971 analysis kept in a file of its own beside the design \u2014 `risks.yaml`, whose root is the `risks:` the design would otherwise hold. Each risk carries its own hazard and harm in its own words; they are fields of the risk, not items defined elsewhere and referred to. A design keeps the analysis in one place or the other, never both.",
  "type": "object",
  "required": [
    "risks"
  ],
  "additionalProperties": false,
  "properties": {
    "risks": {
      "type": "object",
      "description": "The risk analysis itself, keyed by identifier: hazard, sequence of events, hazardous situation, harm, the initial and residual estimates, and the control measures with what verifies them.",
      "additionalProperties": {
        "$ref": "risk.schema.json#/$defs/risk"
      }
    }
  }
}
