{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://gavr.gadvisory.org/schemas/gavr-record-1.0-consumer.json",
  "title": "GAVR Record 1.0, for consumers",
  "description": "A GAVR record document as a consumer reads it: every object accepts members this edition does not define, so a record written under a later edition still validates; ignore them and keep them verbatim, because signatures cover them. It carries the structure and every cross-field rule expressible in JSON Schema draft-07. It is necessary but NOT sufficient: 42 companion rules cannot be expressed here and are specified in prose beside it. The conformance corpus is what settles the verdicts.",
  "$ref": "#/definitions/GavrRecord",
  "definitions": {
    "Party": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "AUTHORITY",
            "PUBLISHER",
            "USER",
            "REGISTRY",
            "TOOL",
            "NODE",
            "REGULATOR"
          ]
        },
        "id": {
          "type": "string",
          "minLength": 1
        },
        "displayName": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "additionalProperties": true
    },
    "LocalizedText": {
      "type": "object",
      "properties": {
        "lang": {
          "type": "string",
          "pattern": "^[a-z]{2,3}(-[a-z0-9]{2,8})*$",
          "description": "BCP 47 language tag, lowercase"
        },
        "format": {
          "type": "string",
          "enum": [
            "text/plain",
            "text/markdown; variant=gfm"
          ],
          "default": "text/plain"
        },
        "audience": {
          "type": "string",
          "enum": [
            "public",
            "coordinating-parties",
            "customers",
            "regulators",
            "internal"
          ],
          "default": "public"
        },
        "value": {
          "type": "string",
          "minLength": 1
        },
        "primary": {
          "type": "boolean"
        }
      },
      "required": [
        "lang",
        "value"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "primary": {
                "const": true
              }
            },
            "required": [
              "primary"
            ]
          },
          "then": {
            "anyOf": [
              {
                "not": {
                  "required": [
                    "audience"
                  ]
                }
              },
              {
                "properties": {
                  "audience": {
                    "const": "public"
                  }
                }
              }
            ]
          }
        }
      ]
    },
    "LocalizedTextList": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/LocalizedText"
      },
      "minItems": 1,
      "contains": {
        "type": "object",
        "properties": {
          "primary": {
            "const": true
          }
        },
        "required": [
          "primary"
        ]
      }
    },
    "Identifier": {
      "type": "object",
      "properties": {
        "namespace": {
          "type": "string",
          "minLength": 1
        },
        "value": {
          "type": "string",
          "minLength": 1
        },
        "environment": {
          "type": "string",
          "enum": [
            "prod",
            "test"
          ],
          "default": "prod"
        },
        "role": {
          "type": "string",
          "enum": [
            "PRIMARY",
            "CANONICAL",
            "DUPLICATE",
            "SUPERSEDED",
            "REJECTED"
          ],
          "default": "CANONICAL"
        },
        "assignedBy": {
          "$ref": "#/definitions/Party"
        },
        "assignedAt": {
          "type": "string",
          "format": "date-time",
          "description": "RFC 3339 timestamp"
        },
        "supersededBy": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "namespace",
        "value"
      ],
      "additionalProperties": true
    },
    "Relation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "same-as",
            "duplicate-of",
            "superseded-by",
            "supersedes",
            "subset-of",
            "superset-of",
            "overlaps",
            "related",
            "disputed-by",
            "disputes",
            "inherited-from",
            "propagates-to",
            "variant-of",
            "regression-of",
            "split-from",
            "split-into",
            "merged-into",
            "merged-from"
          ]
        },
        "target": {
          "type": "string",
          "minLength": 1
        },
        "targetNamespace": {
          "type": "string",
          "minLength": 1
        },
        "basis": {
          "type": "string",
          "enum": [
            "asserted-by-owner",
            "verified-by-registry",
            "community-reported",
            "automated-match"
          ]
        },
        "facet": {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9-]{0,31}$"
        },
        "assertedBy": {
          "$ref": "#/definitions/Party"
        },
        "assertedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "type",
        "target",
        "targetNamespace",
        "basis"
      ],
      "additionalProperties": true
    },
    "ProductIdentity": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "software",
            "library",
            "hardware",
            "firmware",
            "firmware-component",
            "service",
            "model",
            "dataset",
            "agent-tool",
            "specification",
            "algorithm",
            "protocol-profile",
            "smart-contract",
            "key",
            "certificate",
            "trust-anchor",
            "template-or-snippet",
            "document-format",
            "domain-or-endpoint",
            "physical-installation",
            "configuration-data"
          ]
        },
        "purl": {
          "type": "string",
          "minLength": 1
        },
        "cpes": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "repository": {
          "type": "string",
          "format": "uri"
        },
        "vendor": {
          "type": "string",
          "minLength": 1
        },
        "product": {
          "type": "string",
          "minLength": 1
        },
        "ecosystem": {
          "type": "string",
          "minLength": 1
        },
        "packageName": {
          "type": "string",
          "minLength": 1
        },
        "platforms": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "skus": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "modelNumbers": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "hardwareRevisions": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "serialNumbers": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "sectors": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "regions": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "assetIds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scheme": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9.-]{0,63}$"
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              }
            },
            "required": [
              "scheme",
              "value"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "digests": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Digest"
          },
          "minItems": 1
        },
        "skuPatterns": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?=.*[^*])\\S{1,200}$"
          },
          "minItems": 1
        },
        "modelPatterns": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ProductIdentity/properties/skuPatterns/items"
          },
          "minItems": 1
        },
        "revisionPatterns": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ProductIdentity/properties/skuPatterns/items"
          },
          "minItems": 1
        },
        "lineage": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "relation": {
                "type": "string",
                "enum": [
                  "predecessor-of",
                  "successor-of",
                  "fork-of",
                  "relabel-of",
                  "acquired-by"
                ]
              },
              "identity": {
                "$ref": "#/definitions/LineageIdentity"
              },
              "at": {
                "$ref": "#/definitions/Identifier/properties/assignedAt",
                "description": "RFC 3339 timestamp"
              }
            },
            "required": [
              "relation",
              "identity"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "names": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "of": {
                "type": "string",
                "enum": [
                  "vendor",
                  "product"
                ]
              },
              "lang": {
                "type": "string",
                "pattern": "^[a-z]{2,3}(-[a-z0-9]{2,8})*$"
              },
              "script": {
                "type": "string",
                "pattern": "^[A-Z][a-z]{3}$"
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "primary": {
                "type": "boolean"
              }
            },
            "required": [
              "of",
              "lang",
              "value"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scheme": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9.-]{0,63}$"
              },
              "code": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "scheme",
              "code"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "specification": {
          "type": "object",
          "properties": {
            "body": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "document": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "version": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "section": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "errata": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uri"
              },
              "minItems": 1
            },
            "status": {
              "type": "string",
              "enum": [
                "draft",
                "active",
                "superseded",
                "withdrawn",
                "historic"
              ]
            },
            "successor": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "citedBy": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "minItems": 1
            }
          },
          "required": [
            "body",
            "document"
          ],
          "additionalProperties": true
        },
        "certificateSerial": {
          "type": "object",
          "properties": {
            "issuer": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "serial": {
              "type": "string",
              "pattern": "^[0-9a-f]{1,64}$"
            }
          },
          "required": [
            "issuer",
            "serial"
          ],
          "additionalProperties": true
        }
      },
      "additionalProperties": true,
      "allOf": [
        {
          "anyOf": [
            {
              "required": [
                "purl"
              ]
            },
            {
              "required": [
                "cpes"
              ],
              "properties": {
                "cpes": {
                  "minItems": 1
                }
              }
            },
            {
              "required": [
                "repository"
              ]
            },
            {
              "required": [
                "product"
              ]
            },
            {
              "required": [
                "packageName"
              ]
            },
            {
              "required": [
                "modelNumbers"
              ],
              "properties": {
                "modelNumbers": {
                  "minItems": 1
                }
              }
            },
            {
              "required": [
                "skus"
              ],
              "properties": {
                "skus": {
                  "minItems": 1
                }
              }
            },
            {
              "required": [
                "assetIds"
              ]
            },
            {
              "required": [
                "digests"
              ]
            },
            {
              "required": [
                "skuPatterns"
              ]
            },
            {
              "required": [
                "modelPatterns"
              ]
            },
            {
              "required": [
                "specification"
              ]
            },
            {
              "required": [
                "certificateSerial"
              ]
            }
          ]
        },
        {
          "properties": {
            "vendor": {
              "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$"
            },
            "product": {
              "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$"
            },
            "packageName": {
              "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$"
            },
            "names": {
              "items": {
                "properties": {
                  "value": {
                    "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$"
                  }
                }
              }
            }
          }
        }
      ]
    },
    "VersionRange": {
      "type": "object",
      "properties": {
        "introduced": {
          "type": "object",
          "properties": {
            "version": {
              "type": "string",
              "minLength": 1
            },
            "inclusive": {
              "type": "boolean"
            }
          },
          "required": [
            "version",
            "inclusive"
          ],
          "additionalProperties": true
        },
        "fixed": {
          "$ref": "#/definitions/VersionRange/properties/introduced"
        },
        "status": {
          "type": "string",
          "enum": [
            "affected",
            "unaffected",
            "unknown",
            "affected-versions-unknown",
            "under-investigation"
          ]
        },
        "unaffectedReason": {
          "type": "string",
          "enum": [
            "code-not-present",
            "code-not-reachable",
            "component-not-present",
            "not-attacker-controllable",
            "requires-configuration",
            "requires-dependency",
            "requires-environment",
            "protected-by-compiler",
            "protected-at-runtime",
            "protected-at-perimeter",
            "inline-mitigation-present",
            "fixed",
            "out-of-support-unassessed",
            "not-assessed"
          ]
        },
        "versionType": {
          "type": "string",
          "minLength": 1
        },
        "applicability": {
          "$ref": "#/definitions/Predicate"
        },
        "impactStatement": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/LocalizedText"
          }
        },
        "statusNotes": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/LocalizedText"
          }
        },
        "confidence": {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "high",
                "medium",
                "low"
              ]
            },
            "basis": {
              "type": "string",
              "enum": [
                "vendor-confirmed",
                "researcher-tested",
                "maintainer-confirmed",
                "static-analysis",
                "dynamic-analysis",
                "fuzzing",
                "telemetry",
                "formal-verification",
                "third-party-confirmed",
                "reported",
                "inferred"
              ]
            },
            "note": {
              "type": "string"
            }
          },
          "required": [
            "level",
            "basis"
          ],
          "additionalProperties": true
        }
      },
      "required": [
        "status"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "const": "unaffected"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "unaffectedReason"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "const": "affected-versions-unknown"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "allOf": [
              {
                "not": {
                  "required": [
                    "introduced"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "fixed"
                  ]
                }
              }
            ]
          }
        }
      ]
    },
    "SeverityScore": {
      "type": "object",
      "properties": {
        "scale": {
          "type": "string",
          "enum": [
            "CVSS_V4_0",
            "CVSS_V3_1",
            "CVSS_V3_0",
            "CVSS_V2_0",
            "EPSS",
            "SSVC",
            "QUALITATIVE"
          ]
        },
        "vector": {
          "type": "string",
          "minLength": 1
        },
        "score": {
          "type": "number"
        },
        "qualitative": {
          "type": "string",
          "enum": [
            "none",
            "low",
            "medium",
            "high",
            "critical"
          ]
        },
        "author": {
          "$ref": "#/definitions/Party"
        },
        "assessedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "confidence": {
          "$ref": "#/definitions/VersionRange/properties/confidence"
        },
        "rationale": {
          "type": "string"
        }
      },
      "required": [
        "scale",
        "author"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "scale": {
                "const": "QUALITATIVE"
              }
            },
            "required": [
              "scale"
            ]
          },
          "then": {
            "required": [
              "qualitative"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "scale": {
                "enum": [
                  "CVSS_V2_0",
                  "CVSS_V3_0",
                  "CVSS_V3_1",
                  "CVSS_V4_0"
                ]
              }
            },
            "required": [
              "scale"
            ]
          },
          "then": {
            "required": [
              "vector"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "scale": {
                "const": "EPSS"
              }
            },
            "required": [
              "scale"
            ]
          },
          "then": {
            "required": [
              "score"
            ]
          }
        }
      ]
    },
    "Remediation": {
      "type": "object",
      "properties": {
        "facet": {
          "$ref": "#/definitions/Relation/properties/facet"
        },
        "kind": {
          "type": "string",
          "enum": [
            "upgrade",
            "patch-commit",
            "backport",
            "vendor-fix",
            "firmware-update",
            "service-side-fix",
            "signature-update",
            "configuration",
            "workaround",
            "mitigation",
            "optional-patch",
            "none-available",
            "no-fix-planned",
            "rotate-secrets",
            "reissue-certificates",
            "revoke",
            "blocklist",
            "kill-switch",
            "replace-hardware",
            "decommission",
            "rebuild",
            "reimage",
            "user-action",
            "domain-sinkhole",
            "pause-or-freeze",
            "migrate",
            "erratum",
            "new-spec-revision",
            "implementation-guidance",
            "other"
          ]
        },
        "description": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/LocalizedText"
          }
        },
        "fixedVersion": {
          "type": "string",
          "minLength": 1
        },
        "commit": {
          "type": "string",
          "minLength": 1
        },
        "repository": {
          "type": "string",
          "format": "uri"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "appliesTo": {
          "type": "array",
          "items": {
            "type": "integer",
            "minimum": 0
          }
        },
        "appliesToContainer": {
          "type": "string",
          "minLength": 1
        },
        "appliesToFacets": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Relation/properties/facet"
          },
          "minItems": 1
        },
        "confidence": {
          "$ref": "#/definitions/VersionRange/properties/confidence"
        },
        "targets": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/RemediationTarget"
          },
          "minItems": 1
        },
        "verifiedBy": {
          "type": "object",
          "properties": {
            "containerId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "artefact": {
              "$ref": "#/definitions/Digest"
            }
          },
          "required": [
            "containerId"
          ],
          "additionalProperties": true
        },
        "ids": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scheme": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9.-]{0,63}$"
              },
              "value": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "scheme",
              "value"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "origin": {
          "type": "string",
          "enum": [
            "vendor",
            "community",
            "third-party-commercial",
            "self-made"
          ]
        },
        "endorsedBy": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "upstreamStatus": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "not-submitted",
                "submitted",
                "accepted",
                "rejected",
                "withdrawn"
              ]
            },
            "url": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "state"
          ],
          "additionalProperties": true
        },
        "deployability": {
          "type": "object",
          "properties": {
            "actor": {
              "type": "string",
              "enum": [
                "end-user",
                "administrator",
                "vendor-technician",
                "dealer",
                "clinician",
                "operator-over-uplink"
              ]
            },
            "location": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "downtimeMinutes": {
              "type": "number",
              "minimum": 0
            },
            "reboot": {
              "type": "boolean"
            },
            "physicalAccess": {
              "type": "boolean"
            },
            "after": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "containerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "facet": {
                    "$ref": "#/definitions/Relation/properties/facet"
                  }
                },
                "required": [
                  "facet"
                ],
                "additionalProperties": true
              },
              "minItems": 1
            },
            "channel": {
              "type": "string",
              "enum": [
                "auto-update",
                "store",
                "manual",
                "carrier",
                "dealer",
                "ota-campaign"
              ]
            },
            "recertification": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "none",
                    "notify-authority",
                    "approval-required"
                  ]
                },
                "instrument": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": true
            },
            "sideEffects": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "performance",
                  "feature-loss",
                  "compatibility",
                  "other"
                ]
              },
              "minItems": 1
            },
            "windows": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "contact",
                      "maintenance"
                    ]
                  },
                  "from": {
                    "$ref": "#/definitions/Identifier/properties/assignedAt",
                    "description": "RFC 3339 timestamp"
                  },
                  "until": {
                    "$ref": "#/definitions/Identifier/properties/assignedAt",
                    "description": "RFC 3339 timestamp"
                  },
                  "note": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": true
              },
              "minItems": 1
            }
          },
          "additionalProperties": true
        },
        "efficacy": {
          "type": "object",
          "properties": {
            "level": {
              "type": "string",
              "enum": [
                "complete",
                "known-exploits-only",
                "partial",
                "unknown"
              ]
            },
            "evidence": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uri"
              },
              "minItems": 1
            },
            "bypassKnown": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "level"
          ],
          "additionalProperties": true
        },
        "verifiedWith": {
          "$ref": "#/definitions/Remediation/properties/deployability/properties/after/items"
        },
        "status": {
          "type": "string",
          "enum": [
            "available",
            "recalled",
            "superseded"
          ]
        },
        "supersededBy": {
          "$ref": "#/definitions/Remediation/properties/deployability/properties/after/items"
        },
        "knownIssues": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "cohort": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "at": {
                "$ref": "#/definitions/Identifier/properties/assignedAt",
                "description": "RFC 3339 timestamp"
              },
              "workaround": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              }
            },
            "required": [
              "text"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "postExposure": {
          "type": "object",
          "properties": {
            "compromiseAssumption": {
              "type": "string",
              "enum": [
                "none",
                "possible",
                "likely",
                "confirmed-for-window"
              ]
            },
            "actions": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "upgrade",
                  "patch-commit",
                  "backport",
                  "vendor-fix",
                  "firmware-update",
                  "service-side-fix",
                  "signature-update",
                  "configuration",
                  "workaround",
                  "mitigation",
                  "optional-patch",
                  "none-available",
                  "no-fix-planned",
                  "rotate-secrets",
                  "reissue-certificates",
                  "revoke",
                  "blocklist",
                  "kill-switch",
                  "replace-hardware",
                  "decommission",
                  "rebuild",
                  "reimage",
                  "user-action",
                  "domain-sinkhole",
                  "pause-or-freeze",
                  "migrate",
                  "erratum",
                  "new-spec-revision",
                  "implementation-guidance",
                  "other"
                ]
              },
              "minItems": 1
            },
            "indicators": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/Remediation/properties/deployability/properties/after/items"
              },
              "minItems": 1
            },
            "window": {
              "type": "object",
              "properties": {
                "from": {
                  "$ref": "#/definitions/Identifier/properties/assignedAt"
                },
                "until": {
                  "$ref": "#/definitions/Identifier/properties/assignedAt",
                  "description": "RFC 3339 timestamp"
                }
              },
              "required": [
                "from"
              ],
              "additionalProperties": true
            }
          },
          "required": [
            "compromiseAssumption"
          ],
          "additionalProperties": true
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "kind": {
                "enum": [
                  "upgrade",
                  "patch-commit",
                  "backport",
                  "vendor-fix",
                  "firmware-update",
                  "service-side-fix",
                  "signature-update",
                  "configuration",
                  "workaround",
                  "mitigation",
                  "optional-patch",
                  "none-available",
                  "no-fix-planned",
                  "user-action"
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "not": {
              "required": [
                "targets"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "rotate-secrets"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "secret-class"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "reissue-certificates"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "certificate-sha256"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "revoke"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "certificate-sha256",
                        "key-fingerprint",
                        "secret-class"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "blocklist"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "digest",
                        "domain",
                        "network-address",
                        "chain-address",
                        "key-fingerprint",
                        "certificate-sha256"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "kill-switch"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "product",
                        "domain"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "replace-hardware"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "hardware-revision"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "enum": [
                  "decommission",
                  "migrate"
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "product"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "rebuild"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "product",
                        "digest"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "reimage"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "digest"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "domain-sinkhole"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "domain"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "pause-or-freeze"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "chain-address"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "enum": [
                  "erratum",
                  "new-spec-revision",
                  "implementation-guidance"
                ]
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "spec-section"
                      ]
                    }
                  }
                }
              }
            },
            "required": [
              "targets"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "other"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "properties": {
              "targets": {
                "items": {
                  "properties": {
                    "type": {
                      "enum": [
                        "secret-class",
                        "certificate-sha256",
                        "key-fingerprint",
                        "digest",
                        "domain",
                        "network-address",
                        "chain-address",
                        "hardware-revision",
                        "spec-section",
                        "product"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "upgrade"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "required": [
              "fixedVersion"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "patch-commit"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "required": [
              "commit"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "kind": {
                "const": "other"
              }
            },
            "required": [
              "kind"
            ]
          },
          "then": {
            "required": [
              "description"
            ],
            "properties": {
              "description": {
                "minItems": 1
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "efficacy"
            ]
          },
          "then": {
            "required": [
              "kind"
            ],
            "properties": {
              "kind": {
                "enum": [
                  "workaround",
                  "mitigation",
                  "configuration"
                ]
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "const": "superseded"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "supersededBy"
            ]
          }
        },
        {
          "if": {
            "required": [
              "supersededBy"
            ]
          },
          "then": {
            "required": [
              "status"
            ],
            "properties": {
              "status": {
                "const": "superseded"
              }
            }
          }
        }
      ]
    },
    "RemediationTarget": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "secret-class",
            "certificate-sha256",
            "key-fingerprint",
            "digest",
            "domain",
            "network-address",
            "chain-address",
            "hardware-revision",
            "spec-section",
            "product"
          ]
        },
        "value": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      },
      "required": [
        "type",
        "value"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "certificate-sha256"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "pattern": "^[0-9a-f]{64}$"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "digest"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "pattern": "^[a-z0-9][a-z0-9.+-]{0,31}:[^\\s]+$"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "domain"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "pattern": "^(\\*\\.)?(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "chain-address"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "pattern": "^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}:[-.%a-zA-Z0-9]{1,128}$"
              }
            }
          }
        }
      ]
    },
    "Assessment": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string",
          "enum": [
            "intended-behaviour",
            "not-reproducible",
            "outside-threat-model",
            "requires-prior-compromise",
            "not-a-security-boundary",
            "unsupported-configuration",
            "flaw-elsewhere",
            "other"
          ]
        },
        "explanation": {
          "$ref": "#/definitions/LocalizedTextList"
        },
        "evidence": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "name": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "broken-link",
                    "customer-entitlement",
                    "exploit",
                    "government-resource",
                    "issue-tracking",
                    "mailing-list",
                    "media-coverage",
                    "mitigation",
                    "not-applicable",
                    "patch",
                    "permissions-required",
                    "product",
                    "related",
                    "release-notes",
                    "signature",
                    "technical-description",
                    "third-party-advisory",
                    "vdb-entry",
                    "vendor-advisory"
                  ]
                },
                "minItems": 1
              },
              "snapshot": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "digest": {
                    "$ref": "#/definitions/Digest"
                  },
                  "fetchedAt": {
                    "$ref": "#/definitions/Identifier/properties/assignedAt"
                  }
                },
                "required": [
                  "url",
                  "digest",
                  "fetchedAt"
                ],
                "additionalProperties": true
              }
            },
            "required": [
              "url",
              "tags"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "assessedBy": {
          "$ref": "#/definitions/Party"
        },
        "assessedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        }
      },
      "required": [
        "reason",
        "explanation",
        "assessedAt"
      ],
      "additionalProperties": true
    },
    "SummaryText": {
      "type": "object",
      "properties": {
        "lang": {
          "type": "string",
          "pattern": "^[a-z]{2,3}(-[a-z0-9]{2,8})*$",
          "description": "BCP 47 language tag, lowercase"
        },
        "format": {
          "type": "string",
          "const": "text/plain",
          "default": "text/plain"
        },
        "audience": {
          "type": "string",
          "enum": [
            "public",
            "coordinating-parties",
            "customers",
            "regulators",
            "internal"
          ],
          "default": "public"
        },
        "value": {
          "type": "string",
          "minLength": 1,
          "maxLength": 280
        },
        "primary": {
          "type": "boolean"
        },
        "reader": {
          "type": "string",
          "enum": [
            "executive",
            "administrator",
            "operator",
            "clinician",
            "end-user",
            "developer"
          ]
        },
        "readingLevel": {
          "type": "string",
          "enum": [
            "plain",
            "standard",
            "technical"
          ]
        }
      },
      "required": [
        "lang",
        "value"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "primary": {
                "const": true
              }
            },
            "required": [
              "primary"
            ]
          },
          "then": {
            "anyOf": [
              {
                "not": {
                  "required": [
                    "audience"
                  ]
                }
              },
              {
                "properties": {
                  "audience": {
                    "const": "public"
                  }
                }
              }
            ]
          }
        }
      ]
    },
    "SummaryList": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/SummaryText"
      },
      "minItems": 1,
      "contains": {
        "type": "object",
        "properties": {
          "primary": {
            "const": true
          }
        },
        "required": [
          "primary"
        ]
      }
    },
    "Exposure": {
      "type": "object",
      "properties": {
        "defaultConfiguration": {
          "type": "string",
          "enum": [
            "exposed",
            "not-exposed",
            "unknown"
          ]
        },
        "attackerPositions": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/AttackerPosition"
          },
          "minItems": 1
        },
        "adversaryClasses": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "opportunistic",
              "targeted",
              "state-level",
              "passive-observer"
            ]
          },
          "minItems": 1
        },
        "authentication": {
          "type": "string",
          "enum": [
            "none",
            "user",
            "administrator",
            "unknown"
          ]
        },
        "userInteraction": {
          "type": "string",
          "enum": [
            "none",
            "passive",
            "active",
            "unknown"
          ]
        },
        "prerequisites": {
          "$ref": "#/definitions/LocalizedTextList"
        },
        "impacts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "enum": [
                  "confidentiality",
                  "integrity",
                  "availability",
                  "safety",
                  "privacy",
                  "financial",
                  "competitive-fairness",
                  "environmental",
                  "legal",
                  "reputational"
                ]
              },
              "level": {
                "type": "string",
                "enum": [
                  "none",
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              }
            },
            "required": [
              "domain",
              "level"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        }
      },
      "additionalProperties": true
    },
    "AttackerPosition": {
      "type": "object",
      "properties": {
        "position": {
          "type": "string",
          "enum": [
            "internet",
            "adjacent-network",
            "local",
            "physical-proximity",
            "physical-access",
            "purdue-level",
            "interconnect-partner",
            "supply-chain-position",
            "insider",
            "cloud-co-tenant"
          ]
        },
        "purdueLevel": {
          "type": "string",
          "enum": [
            "0",
            "1",
            "2",
            "3",
            "3.5",
            "4",
            "5"
          ]
        }
      },
      "required": [
        "position"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "position": {
                "const": "purdue-level"
              }
            },
            "required": [
              "position"
            ]
          },
          "then": {
            "required": [
              "purdueLevel"
            ]
          }
        },
        {
          "if": {
            "required": [
              "purdueLevel"
            ]
          },
          "then": {
            "required": [
              "position"
            ],
            "properties": {
              "position": {
                "const": "purdue-level"
              }
            }
          }
        }
      ]
    },
    "Digest": {
      "type": "object",
      "properties": {
        "scheme": {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9.-]{0,63}$"
        },
        "value": {
          "type": "string",
          "minLength": 1,
          "maxLength": 512
        },
        "normalisation": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "artefact": {
          "type": "string",
          "enum": [
            "binary",
            "package",
            "container-image",
            "image-layer",
            "firmware-image",
            "model-weights",
            "dataset",
            "source-archive",
            "bytecode",
            "certificate",
            "other"
          ]
        },
        "threshold": {
          "type": "number",
          "minimum": 0
        }
      },
      "required": [
        "scheme",
        "value"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "scheme": {
                "enum": [
                  "ssdeep",
                  "tlsh"
                ]
              }
            },
            "required": [
              "scheme"
            ]
          },
          "then": {
            "required": [
              "threshold"
            ]
          }
        },
        {
          "if": {
            "required": [
              "threshold"
            ]
          },
          "then": {
            "required": [
              "scheme"
            ],
            "properties": {
              "scheme": {
                "enum": [
                  "ssdeep",
                  "tlsh"
                ]
              }
            }
          }
        }
      ]
    },
    "AffectedProduct": {
      "type": "object",
      "properties": {
        "facet": {
          "$ref": "#/definitions/Relation/properties/facet"
        },
        "identity": {
          "$ref": "#/definitions/ProductIdentity"
        },
        "defaultStatus": {
          "type": "string",
          "enum": [
            "affected",
            "unaffected",
            "unknown",
            "affected-versions-unknown",
            "under-investigation"
          ],
          "default": "unknown"
        },
        "ranges": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/VersionRange"
          },
          "default": []
        },
        "locations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "function",
                  "method",
                  "symbol",
                  "file",
                  "module",
                  "endpoint"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "path": {
                "type": "string"
              },
              "confidence": {
                "$ref": "#/definitions/VersionRange/properties/confidence"
              }
            },
            "required": [
              "kind",
              "name"
            ],
            "additionalProperties": true
          }
        },
        "severity": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/SeverityScore"
          }
        },
        "notes": {
          "type": "string"
        },
        "exposure": {
          "$ref": "#/definitions/Exposure"
        },
        "deployment": {
          "type": "string",
          "enum": [
            "installed",
            "hosted"
          ]
        },
        "exposureWindow": {
          "type": "object",
          "properties": {
            "from": {
              "$ref": "#/definitions/Identifier/properties/assignedAt"
            },
            "fixedAt": {
              "$ref": "#/definitions/Identifier/properties/assignedAt",
              "description": "RFC 3339 timestamp"
            }
          },
          "required": [
            "from"
          ],
          "additionalProperties": true
        },
        "supportPeriod": {
          "type": "object",
          "properties": {
            "start": {
              "$ref": "#/definitions/Identifier/properties/assignedAt",
              "description": "RFC 3339 timestamp"
            },
            "end": {
              "$ref": "#/definitions/Identifier/properties/assignedAt",
              "description": "RFC 3339 timestamp"
            },
            "extensions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "by": {
                    "$ref": "#/definitions/Party"
                  },
                  "until": {
                    "$ref": "#/definitions/Identifier/properties/assignedAt"
                  }
                },
                "required": [
                  "by",
                  "until"
                ],
                "additionalProperties": true
              },
              "minItems": 1
            }
          },
          "additionalProperties": true
        },
        "patchability": {
          "$ref": "#/definitions/Patchability"
        },
        "applicability": {
          "$ref": "#/definitions/VersionRange/properties/applicability"
        },
        "activeFrom": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "activeUntil": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "embeds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "purl": {
                "type": "string",
                "minLength": 1
              },
              "version": {
                "type": "string",
                "minLength": 1
              },
              "mode": {
                "type": "string",
                "enum": [
                  "vendored",
                  "statically-linked",
                  "copied-source"
                ]
              },
              "patchDigest": {
                "$ref": "#/definitions/Digest"
              }
            },
            "required": [
              "purl",
              "mode"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "distrustAfter": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "distrustBefore": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "population": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Population"
          },
          "minItems": 1
        },
        "availability": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/FixAvailability"
          },
          "minItems": 1
        },
        "operators": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "role": {
                "type": "string",
                "enum": [
                  "manufacturer",
                  "importer",
                  "distributor",
                  "open-source-steward",
                  "integrator",
                  "maintainer",
                  "hosting-operator",
                  "component-supplier"
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              "legalEntityId": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 50
                  },
                  "value": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": [
                  "scheme",
                  "value"
                ],
                "additionalProperties": true
              }
            },
            "required": [
              "role",
              "name"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        }
      },
      "required": [
        "identity"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "required": [
              "exposureWindow"
            ]
          },
          "then": {
            "required": [
              "deployment"
            ],
            "properties": {
              "deployment": {
                "const": "hosted"
              }
            }
          }
        }
      ]
    },
    "Patchability": {
      "type": "object",
      "properties": {
        "class": {
          "type": "string",
          "enum": [
            "patchable",
            "patchable-with-hardware-revision",
            "mitigable-only",
            "unpatchable",
            "replace-required"
          ]
        },
        "fixedRevision": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "required": [
        "class"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "class": {
                "const": "patchable-with-hardware-revision"
              }
            },
            "required": [
              "class"
            ]
          },
          "then": {
            "required": [
              "fixedRevision"
            ]
          }
        },
        {
          "if": {
            "required": [
              "fixedRevision"
            ]
          },
          "then": {
            "required": [
              "class"
            ],
            "properties": {
              "class": {
                "const": "patchable-with-hardware-revision"
              }
            }
          }
        }
      ]
    },
    "Granularity": {
      "type": "object",
      "properties": {
        "rule": {
          "type": "string",
          "enum": [
            "root-cause",
            "per-product",
            "per-fix",
            "per-report",
            "campaign",
            "other"
          ]
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        }
      },
      "required": [
        "rule"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "rule": {
                "const": "other"
              }
            },
            "required": [
              "rule"
            ]
          },
          "then": {
            "required": [
              "note"
            ]
          }
        }
      ]
    },
    "ChainStep": {
      "type": "object",
      "properties": {
        "stage": {
          "type": "string",
          "enum": [
            "initial-access",
            "escalation",
            "sandbox-escape",
            "persistence",
            "other"
          ]
        },
        "target": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1000
        }
      },
      "required": [
        "stage",
        "target"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "stage": {
                "const": "other"
              }
            },
            "required": [
              "stage"
            ]
          },
          "then": {
            "required": [
              "note"
            ]
          }
        }
      ]
    },
    "FixGroup": {
      "type": "object",
      "properties": {
        "facet": {
          "$ref": "#/definitions/Relation/properties/facet"
        },
        "mode": {
          "type": "string",
          "enum": [
            "all-of",
            "any-of"
          ]
        },
        "members": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "containerId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "facet": {
                "$ref": "#/definitions/Relation/properties/facet"
              },
              "layer": {
                "type": "string",
                "enum": [
                  "silicon",
                  "firmware",
                  "hypervisor",
                  "os",
                  "application",
                  "other"
                ]
              },
              "owner": {
                "$ref": "#/definitions/Party"
              }
            },
            "required": [
              "facet"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        }
      },
      "required": [
        "mode",
        "members"
      ],
      "additionalProperties": true
    },
    "Partition": {
      "type": "object",
      "properties": {
        "record": {
          "type": "string"
        },
        "mappings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "facet": {
                "$ref": "#/definitions/Relation/properties/facet"
              },
              "targets": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                },
                "minItems": 1
              }
            },
            "required": [
              "facet",
              "targets"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        }
      },
      "required": [
        "record",
        "mappings"
      ],
      "additionalProperties": true
    },
    "Predicate": {
      "type": "object",
      "properties": {
        "all": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Predicate"
          },
          "minItems": 1
        },
        "any": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Predicate"
          },
          "minItems": 1
        },
        "not": {
          "$ref": "#/definitions/Predicate"
        },
        "fact": {
          "type": "string",
          "pattern": "^(hardwareRevision|region|deviceState|time|(config|build|os|module)\\.[A-Za-z0-9_.-]{1,100})$"
        },
        "eq": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            }
          ]
        },
        "in": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Predicate/properties/eq"
          },
          "minItems": 1
        },
        "exists": {
          "type": "boolean"
        },
        "version": {
          "type": "object",
          "properties": {
            "versionType": {
              "type": "string",
              "minLength": 1,
              "maxLength": 50
            },
            "introduced": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "inclusive": {
                  "type": "boolean"
                }
              },
              "required": [
                "version",
                "inclusive"
              ],
              "additionalProperties": true
            },
            "fixed": {
              "$ref": "#/definitions/Predicate/properties/version/properties/introduced"
            }
          },
          "required": [
            "versionType"
          ],
          "additionalProperties": true
        }
      },
      "additionalProperties": true,
      "allOf": [
        {
          "oneOf": [
            {
              "required": [
                "all"
              ]
            },
            {
              "required": [
                "any"
              ]
            },
            {
              "required": [
                "not"
              ]
            },
            {
              "required": [
                "fact"
              ]
            }
          ]
        },
        {
          "if": {
            "required": [
              "fact"
            ]
          },
          "then": {
            "oneOf": [
              {
                "required": [
                  "eq"
                ]
              },
              {
                "required": [
                  "in"
                ]
              },
              {
                "required": [
                  "exists"
                ]
              },
              {
                "required": [
                  "version"
                ]
              }
            ]
          },
          "else": {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "eq"
                  ]
                },
                {
                  "required": [
                    "in"
                  ]
                },
                {
                  "required": [
                    "exists"
                  ]
                },
                {
                  "required": [
                    "version"
                  ]
                }
              ]
            }
          }
        }
      ]
    },
    "LineageIdentity": {
      "type": "object",
      "properties": {
        "vendor": {
          "type": "string",
          "minLength": 1
        },
        "product": {
          "type": "string",
          "minLength": 1
        },
        "purl": {
          "type": "string",
          "minLength": 1
        },
        "cpes": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          },
          "minItems": 1
        }
      },
      "additionalProperties": true,
      "allOf": [
        {
          "anyOf": [
            {
              "required": [
                "vendor"
              ]
            },
            {
              "required": [
                "product"
              ]
            },
            {
              "required": [
                "purl"
              ]
            },
            {
              "required": [
                "cpes"
              ]
            }
          ]
        }
      ]
    },
    "Population": {
      "type": "object",
      "properties": {
        "units": {
          "type": "integer",
          "minimum": 0
        },
        "shareOfFleet": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "capacityMw": {
          "type": "number",
          "minimum": 0
        },
        "valueAtRisk": {
          "type": "object",
          "properties": {
            "amount": {
              "type": "number",
              "minimum": 0
            },
            "unit": {
              "type": "string",
              "minLength": 1,
              "maxLength": 20
            }
          },
          "required": [
            "amount",
            "unit"
          ],
          "additionalProperties": true
        },
        "basis": {
          "type": "string",
          "enum": [
            "telemetry",
            "sales-data",
            "scan-counts",
            "estimate"
          ]
        },
        "asOf": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "confidence": {
          "$ref": "#/definitions/VersionRange/properties/confidence"
        },
        "assertedBy": {
          "$ref": "#/definitions/Party"
        }
      },
      "required": [
        "basis",
        "asOf"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "anyOf": [
            {
              "required": [
                "units"
              ]
            },
            {
              "required": [
                "shareOfFleet"
              ]
            },
            {
              "required": [
                "capacityMw"
              ]
            },
            {
              "required": [
                "valueAtRisk"
              ]
            }
          ]
        }
      ]
    },
    "FixAvailability": {
      "type": "object",
      "properties": {
        "cohort": {
          "type": "object",
          "properties": {
            "region": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "carrier": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "hardwareRevision": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "channel": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "additionalProperties": true
        },
        "state": {
          "type": "string",
          "enum": [
            "planned",
            "staged",
            "available",
            "withheld"
          ]
        },
        "percentage": {
          "type": "number",
          "minimum": 0,
          "maximum": 100
        },
        "from": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "until": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        }
      },
      "required": [
        "cohort",
        "state"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "state": {
                "const": "staged"
              }
            },
            "required": [
              "state"
            ]
          },
          "then": {
            "required": [
              "percentage"
            ]
          }
        },
        {
          "if": {
            "required": [
              "percentage"
            ]
          },
          "then": {
            "required": [
              "state"
            ],
            "properties": {
              "state": {
                "const": "staged"
              }
            }
          }
        }
      ]
    },
    "DetectionArtifact": {
      "type": "object",
      "properties": {
        "facet": {
          "$ref": "#/definitions/Relation/properties/facet"
        },
        "kind": {
          "type": "string",
          "minLength": 1
        },
        "purpose": {
          "type": "string",
          "enum": [
            "detect",
            "verify-mitigation"
          ]
        },
        "content": {
          "type": "string",
          "minLength": 1
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": "string"
        },
        "intrusiveness": {
          "type": "string",
          "enum": [
            "passive",
            "active",
            "disruptive"
          ],
          "default": "passive"
        },
        "confidence": {
          "$ref": "#/definitions/VersionRange/properties/confidence"
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "anyOf": [
            {
              "required": [
                "content"
              ]
            },
            {
              "required": [
                "url"
              ]
            }
          ]
        }
      ]
    },
    "TimelineEntry": {
      "type": "object",
      "properties": {
        "event": {
          "type": "string",
          "enum": [
            "discovered",
            "reported",
            "acknowledged",
            "assigned",
            "triaged",
            "reproduced",
            "vendor-notified",
            "fix-started",
            "fixed",
            "fix-released",
            "disclosed",
            "embargo-set",
            "embargo-lifted",
            "embargo-broken",
            "exploited-in-the-wild",
            "exploit-published",
            "regulator-notified",
            "regulator-final-report",
            "ownership-offered",
            "ownership-transferred",
            "ownership-declined",
            "withdrawn",
            "restored",
            "fix-committed-public",
            "rollout-started",
            "rollout-paused",
            "rollout-completed",
            "recalled",
            "workaround-published",
            "customer-notified",
            "bypass-reported",
            "retest-passed",
            "end-of-support-declared",
            "vendor-dissolved",
            "disclosure-date-proposed",
            "disclosure-date-extended",
            "other"
          ]
        },
        "at": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "precision": {
          "type": "string",
          "enum": [
            "year",
            "month",
            "day",
            "hour",
            "minute",
            "second"
          ]
        },
        "basis": {
          "type": "string",
          "enum": [
            "asserted",
            "observed",
            "derived",
            "estimated"
          ]
        },
        "timezone": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "actor": {
          "$ref": "#/definitions/Party"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "event",
        "at"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "event": {
                "const": "other"
              }
            },
            "required": [
              "event"
            ]
          },
          "then": {
            "required": [
              "note"
            ],
            "properties": {
              "note": {
                "minLength": 1
              }
            }
          }
        }
      ]
    },
    "RecordContainer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "withdrawn",
            "superseded"
          ],
          "default": "active"
        },
        "author": {
          "$ref": "#/definitions/Party"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "peer",
            "contributor",
            "publisher",
            "registry",
            "root",
            "translator",
            "reviewer",
            "regulator"
          ]
        },
        "descriptions": {
          "$ref": "#/definitions/LocalizedTextList"
        },
        "summary": {
          "$ref": "#/definitions/SummaryList"
        },
        "exposure": {
          "$ref": "#/definitions/Exposure"
        },
        "operators": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/AffectedProduct/properties/operators/items"
          },
          "minItems": 1
        },
        "claimStates": {
          "type": "object",
          "properties": {
            "affected": {
              "type": "string",
              "enum": [
                "requested",
                "not-scheduled",
                "owner-declined",
                "none-exists",
                "pending"
              ]
            },
            "severity": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "weaknesses": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "remediations": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "detection": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "exposure": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "fixGroups": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "boundary": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "safety": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "dataImpact": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "techniques": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "reproduction": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "selfCheck": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "cryptanalysis": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "quantum": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "certification": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            },
            "legalDefinitions": {
              "$ref": "#/definitions/RecordContainer/properties/claimStates/properties/affected"
            }
          },
          "additionalProperties": true
        },
        "affected": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/AffectedProduct"
          }
        },
        "severity": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/SeverityScore"
          }
        },
        "weaknesses": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "facet": {
                "$ref": "#/definitions/Relation/properties/facet"
              },
              "id": {
                "type": "string",
                "minLength": 1
              },
              "taxonomy": {
                "type": "string",
                "minLength": 1,
                "default": "CWE"
              },
              "description": {
                "type": "string"
              },
              "confidence": {
                "$ref": "#/definitions/VersionRange/properties/confidence"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": true
          }
        },
        "remediations": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Remediation"
          }
        },
        "fixGroups": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/FixGroup"
          },
          "minItems": 1
        },
        "detection": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/DetectionArtifact"
          }
        },
        "references": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Assessment/properties/evidence/items"
          }
        },
        "timeline": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/TimelineEntry"
          }
        },
        "credits": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "finder",
                  "reporter",
                  "analyst",
                  "coordinator",
                  "remediation-developer",
                  "remediation-reviewer",
                  "remediation-verifier",
                  "tool",
                  "sponsor",
                  "other"
                ]
              },
              "displayName": {
                "type": "string",
                "minLength": 1
              },
              "consent": {
                "type": "boolean"
              },
              "nameCommitment": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "const": "sha256-jcs"
                  },
                  "digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  }
                },
                "required": [
                  "scheme",
                  "digest"
                ],
                "additionalProperties": true
              },
              "handle": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "type",
              "displayName"
            ],
            "additionalProperties": true
          }
        },
        "relations": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Relation"
          }
        },
        "partitions": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Partition"
          },
          "minItems": 1
        },
        "boundary": {
          "type": "object",
          "properties": {
            "crossed": {
              "type": "string",
              "enum": [
                "process",
                "sandbox",
                "vm",
                "tenant",
                "privilege",
                "network-zone",
                "trust-level",
                "other"
              ]
            },
            "policy": {
              "type": "string",
              "format": "uri"
            },
            "position": {
              "type": "string",
              "enum": [
                "in-policy",
                "out-of-policy",
                "disputed"
              ]
            }
          },
          "required": [
            "crossed",
            "position"
          ],
          "additionalProperties": true
        },
        "safety": {
          "type": "object",
          "properties": {
            "functions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1000
                  },
                  "hazardId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  }
                },
                "required": [
                  "text"
                ],
                "additionalProperties": true
              },
              "minItems": 1
            },
            "integrityLevel": {
              "type": "object",
              "properties": {
                "scheme": {
                  "type": "string",
                  "enum": [
                    "sil",
                    "asil",
                    "dal",
                    "iec-62304",
                    "performance-level"
                  ]
                },
                "level": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 20
                }
              },
              "required": [
                "scheme",
                "level"
              ],
              "additionalProperties": true
            },
            "caseImpact": {
              "type": "string",
              "enum": [
                "none",
                "review-required",
                "invalidated"
              ]
            }
          },
          "additionalProperties": true
        },
        "dataImpact": {
          "type": "object",
          "properties": {
            "classes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "credentials",
                  "payment",
                  "health",
                  "location",
                  "childrens-data",
                  "special-category",
                  "other"
                ]
              },
              "minItems": 1
            },
            "subjects": {
              "type": "object",
              "properties": {
                "min": {
                  "type": "integer",
                  "minimum": 0
                },
                "max": {
                  "type": "integer",
                  "minimum": 0
                }
              },
              "required": [
                "min"
              ],
              "additionalProperties": true
            },
            "access": {
              "type": "string",
              "enum": [
                "accessible",
                "accessed",
                "exfiltrated",
                "unknown"
              ]
            },
            "jurisdictions": {
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "minItems": 1
            }
          },
          "required": [
            "classes",
            "access"
          ],
          "additionalProperties": true
        },
        "techniques": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scheme": {
                "type": "string",
                "pattern": "^[a-z0-9][a-z0-9.-]{0,63}$"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              }
            },
            "required": [
              "scheme",
              "id"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "reproduction": {
          "type": "object",
          "properties": {
            "environment": {
              "$ref": "#/definitions/Digest"
            },
            "seeds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "minItems": 1
            },
            "hardware": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "successes": {
              "type": "integer",
              "minimum": 0
            },
            "trials": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "determinism": {
              "type": "string",
              "enum": [
                "deterministic",
                "seed-dependent",
                "probabilistic",
                "hardware-dependent"
              ]
            },
            "harness": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "determinism"
          ],
          "additionalProperties": true
        },
        "selfCheck": {
          "type": "object",
          "properties": {
            "questions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "fact": {
                    "type": "string",
                    "pattern": "^(hardwareRevision|region|deviceState|time|(config|build|os|module)\\.[A-Za-z0-9_.-]{1,100})$"
                  },
                  "text": {
                    "$ref": "#/definitions/LocalizedTextList"
                  },
                  "answer": {
                    "type": "string",
                    "enum": [
                      "yes-no",
                      "choice",
                      "version",
                      "text"
                    ]
                  },
                  "choices": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "minItems": 1
                  }
                },
                "required": [
                  "fact",
                  "text",
                  "answer"
                ],
                "additionalProperties": true
              },
              "minItems": 1
            },
            "steps": {
              "type": "object",
              "properties": {
                "affected": {
                  "$ref": "#/definitions/LocalizedTextList"
                },
                "notAffected": {
                  "$ref": "#/definitions/LocalizedTextList"
                },
                "unknown": {
                  "$ref": "#/definitions/LocalizedTextList"
                }
              },
              "additionalProperties": true
            }
          },
          "required": [
            "questions"
          ],
          "additionalProperties": true
        },
        "cryptanalysis": {
          "type": "object",
          "properties": {
            "primitive": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "parameters": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "securityBefore": {
              "type": "number",
              "minimum": 0
            },
            "securityAfter": {
              "type": "number",
              "minimum": 0
            },
            "cost": {
              "type": "object",
              "properties": {
                "time": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "memory": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "data": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                }
              },
              "additionalProperties": true
            },
            "practicality": {
              "type": "string",
              "enum": [
                "theoretical",
                "academic",
                "practical",
                "demonstrated"
              ]
            },
            "verification": {
              "type": "string",
              "enum": [
                "unverified",
                "independently-verified",
                "disputed"
              ]
            }
          },
          "required": [
            "primitive",
            "securityBefore",
            "securityAfter",
            "practicality"
          ],
          "additionalProperties": true
        },
        "quantum": {
          "type": "object",
          "properties": {
            "relevance": {
              "type": "string",
              "enum": [
                "shor",
                "grover",
                "not-applicable"
              ]
            },
            "algorithm": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "target": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "required": [
            "relevance"
          ],
          "additionalProperties": true
        },
        "certification": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "scheme": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "certificateId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "effect": {
                "type": "string",
                "enum": [
                  "no-effect",
                  "assurance-continuity-required",
                  "suspended",
                  "withdrawn"
                ]
              },
              "certifiedVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "affectedVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              }
            },
            "required": [
              "scheme",
              "certificateId",
              "effect"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "legalDefinitions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "regime": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "article": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "meets": {
                "type": "boolean"
              },
              "rationale": {
                "$ref": "#/definitions/LocalizedTextList"
              },
              "assertedAt": {
                "$ref": "#/definitions/Identifier/properties/assignedAt"
              }
            },
            "required": [
              "regime",
              "article",
              "meets",
              "assertedAt"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "createdAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "updatedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "intervention": {
          "$ref": "#/definitions/Intervention"
        },
        "contributionLimit": {
          "$ref": "#/definitions/ContributionLimit"
        },
        "peerStanding": {
          "$ref": "#/definitions/PeerStanding"
        },
        "coordination": {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "enum": [
                "uncoordinated",
                "in-progress",
                "coordinated",
                "owner-unresponsive"
              ]
            },
            "coverage": {
              "type": "object",
              "properties": {
                "implementers": {
                  "type": "integer",
                  "minimum": 0
                },
                "responded": {
                  "type": "integer",
                  "minimum": 0
                },
                "affected": {
                  "type": "integer",
                  "minimum": 0
                },
                "asOf": {
                  "$ref": "#/definitions/Identifier/properties/assignedAt"
                }
              },
              "required": [
                "implementers",
                "responded",
                "asOf"
              ],
              "additionalProperties": true
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": true
        },
        "contests": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "containerId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "path": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "disposition": {
                "type": "string",
                "enum": [
                  "disputed",
                  "rejected"
                ],
                "default": "disputed"
              },
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              }
            },
            "required": [
              "containerId"
            ],
            "additionalProperties": true
          }
        },
        "enrichment": {
          "$ref": "#/definitions/Enrichment"
        },
        "vouching": {
          "type": "object",
          "properties": {
            "verificationBasis": {
              "type": "string",
              "enum": [
                "identity-verified",
                "prior-relationship",
                "disclosure-thread",
                "unverified"
              ]
            },
            "affiliation": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "contact": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "affiliationCommitment": {
              "$ref": "#/definitions/RecordContainer/properties/credits/items/properties/nameCommitment"
            },
            "contactCommitment": {
              "$ref": "#/definitions/RecordContainer/properties/credits/items/properties/nameCommitment"
            }
          },
          "required": [
            "verificationBasis"
          ],
          "additionalProperties": true
        },
        "engagement": {
          "type": "object",
          "properties": {
            "authorisation": {
              "type": "string",
              "format": "uri"
            },
            "scope": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "period": {
              "type": "object",
              "properties": {
                "from": {
                  "$ref": "#/definitions/Identifier/properties/assignedAt"
                },
                "until": {
                  "$ref": "#/definitions/Identifier/properties/assignedAt",
                  "description": "RFC 3339 timestamp"
                }
              },
              "required": [
                "from"
              ],
              "additionalProperties": true
            },
            "clientConsent": {
              "type": "boolean"
            }
          },
          "required": [
            "authorisation",
            "clientConsent"
          ],
          "additionalProperties": true
        },
        "onBehalfOf": {
          "type": "object",
          "properties": {
            "relationship": {
              "type": "string",
              "enum": [
                "broker",
                "agent",
                "legal-representative",
                "other"
              ]
            },
            "principal": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "required": [
            "relationship"
          ],
          "additionalProperties": true
        },
        "appealDecision": {
          "type": "object",
          "properties": {
            "appealedContainerId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "appealId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "disposition": {
              "type": "string",
              "enum": [
                "upheld",
                "dismissed"
              ]
            },
            "decidedAt": {
              "$ref": "#/definitions/Identifier/properties/assignedAt"
            }
          },
          "required": [
            "appealedContainerId",
            "appealId",
            "disposition",
            "decidedAt"
          ],
          "additionalProperties": true
        },
        "legalHold": {
          "type": "object",
          "properties": {
            "at": {
              "$ref": "#/definitions/Identifier/properties/assignedAt"
            },
            "matter": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            }
          },
          "required": [
            "at"
          ],
          "additionalProperties": true
        },
        "legalHoldLift": {
          "type": "object",
          "properties": {
            "containerId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "at": {
              "$ref": "#/definitions/Identifier/properties/assignedAt"
            }
          },
          "required": [
            "containerId",
            "at"
          ],
          "additionalProperties": true
        },
        "allocation": {
          "$ref": "#/definitions/Allocation"
        },
        "transfer": {
          "$ref": "#/definitions/Transfer"
        },
        "sealed": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "members": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "minItems": 1
              },
              "nonce": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]+$",
                "minLength": 16,
                "maxLength": 16
              },
              "ciphertext": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]+$",
                "minLength": 22
              },
              "recipients": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "keyId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "enc": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]+$",
                      "minLength": 43,
                      "maxLength": 43
                    },
                    "wrappedKey": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]+$",
                      "minLength": 64,
                      "maxLength": 64
                    }
                  },
                  "required": [
                    "keyId",
                    "enc",
                    "wrappedKey"
                  ],
                  "additionalProperties": true
                },
                "minItems": 1
              }
            },
            "required": [
              "members",
              "nonce",
              "ciphertext",
              "recipients"
            ],
            "additionalProperties": true
          },
          "minItems": 1
        },
        "translation": {
          "$ref": "#/definitions/Translation"
        },
        "review": {
          "$ref": "#/definitions/Review"
        },
        "regulatoryAction": {
          "$ref": "#/definitions/RegulatoryAction"
        },
        "signature": {},
        "cosignatures": {
          "type": "array",
          "items": {},
          "minItems": 1,
          "maxItems": 16
        }
      },
      "required": [
        "author",
        "role"
      ],
      "additionalProperties": {},
      "allOf": [
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "affected"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "affected"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "severity"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "severity"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "weaknesses"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "weaknesses"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "remediations"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "remediations"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "detection"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "detection"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "exposure"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "exposure"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "fixGroups"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "fixGroups"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "boundary"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "boundary"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "safety"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "safety"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "dataImpact"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "dataImpact"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "techniques"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "techniques"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "reproduction"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "reproduction"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "selfCheck"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "selfCheck"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "cryptanalysis"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "cryptanalysis"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "quantum"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "quantum"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "certification"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "certification"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "claimStates": {
                "required": [
                  "legalDefinitions"
                ]
              }
            },
            "required": [
              "claimStates"
            ]
          },
          "then": {
            "not": {
              "required": [
                "legalDefinitions"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "affected": {
                "contains": {
                  "required": [
                    "facet"
                  ]
                }
              }
            },
            "required": [
              "affected"
            ]
          },
          "then": {
            "required": [
              "id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "weaknesses": {
                "contains": {
                  "required": [
                    "facet"
                  ]
                }
              }
            },
            "required": [
              "weaknesses"
            ]
          },
          "then": {
            "required": [
              "id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "remediations": {
                "contains": {
                  "required": [
                    "facet"
                  ]
                }
              }
            },
            "required": [
              "remediations"
            ]
          },
          "then": {
            "required": [
              "id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "fixGroups": {
                "contains": {
                  "required": [
                    "facet"
                  ]
                }
              }
            },
            "required": [
              "fixGroups"
            ]
          },
          "then": {
            "required": [
              "id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "detection": {
                "contains": {
                  "required": [
                    "facet"
                  ]
                }
              }
            },
            "required": [
              "detection"
            ]
          },
          "then": {
            "required": [
              "id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "root"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "if": {
              "required": [
                "intervention"
              ]
            },
            "then": {},
            "else": {
              "allOf": [
                {
                  "not": {
                    "required": [
                      "affected"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "severity"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "weaknesses"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "remediations"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "detection"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "exposure"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "fixGroups"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "boundary"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "safety"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "dataImpact"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "techniques"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "reproduction"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "selfCheck"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "cryptanalysis"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "quantum"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "certification"
                    ]
                  }
                },
                {
                  "not": {
                    "required": [
                      "legalDefinitions"
                    ]
                  }
                }
              ]
            }
          },
          "else": {
            "not": {
              "required": [
                "intervention"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "root"
              }
            },
            "required": [
              "role"
            ]
          },
          "else": {
            "not": {
              "required": [
                "contributionLimit"
              ]
            }
          }
        },
        {
          "if": {
            "required": [
              "intervention"
            ]
          },
          "then": {
            "required": [
              "id"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "peer"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "required": [
              "peerStanding"
            ]
          },
          "else": {
            "not": {
              "required": [
                "peerStanding"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "publisher"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "required": [
              "enrichment"
            ]
          },
          "else": {
            "not": {
              "required": [
                "enrichment"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "contributor"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "required": [
              "vouching"
            ]
          },
          "else": {
            "not": {
              "required": [
                "vouching"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "contributor"
              }
            },
            "required": [
              "role"
            ]
          },
          "else": {
            "allOf": [
              {
                "not": {
                  "required": [
                    "engagement"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "onBehalfOf"
                  ]
                }
              }
            ]
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "registry"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "allOf": [
              {
                "not": {
                  "required": [
                    "affected"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "severity"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "weaknesses"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "remediations"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "detection"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "exposure"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "fixGroups"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "boundary"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "safety"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "dataImpact"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "techniques"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "reproduction"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "selfCheck"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "cryptanalysis"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "quantum"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "certification"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "legalDefinitions"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "claimStates"
                  ]
                }
              }
            ]
          },
          "else": {
            "allOf": [
              {
                "not": {
                  "required": [
                    "appealDecision"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "legalHold"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "legalHoldLift"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "allocation"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "transfer"
                  ]
                }
              }
            ]
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "translator"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "required": [
              "translation"
            ],
            "allOf": [
              {
                "not": {
                  "required": [
                    "affected"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "severity"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "weaknesses"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "remediations"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "detection"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "exposure"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "fixGroups"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "boundary"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "safety"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "dataImpact"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "techniques"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "reproduction"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "selfCheck"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "cryptanalysis"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "quantum"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "certification"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "legalDefinitions"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "claimStates"
                  ]
                }
              }
            ]
          },
          "else": {
            "not": {
              "required": [
                "translation"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "reviewer"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "required": [
              "review"
            ],
            "allOf": [
              {
                "not": {
                  "required": [
                    "affected"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "severity"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "weaknesses"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "remediations"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "detection"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "exposure"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "fixGroups"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "boundary"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "safety"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "dataImpact"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "techniques"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "reproduction"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "selfCheck"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "cryptanalysis"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "quantum"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "certification"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "legalDefinitions"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "claimStates"
                  ]
                }
              }
            ]
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "enum": [
                  "reviewer",
                  "root"
                ]
              }
            },
            "required": [
              "role"
            ]
          },
          "else": {
            "not": {
              "required": [
                "review"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "regulator"
              }
            },
            "required": [
              "role"
            ]
          },
          "then": {
            "required": [
              "regulatoryAction"
            ],
            "allOf": [
              {
                "not": {
                  "required": [
                    "affected"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "severity"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "weaknesses"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "remediations"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "detection"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "exposure"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "fixGroups"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "boundary"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "safety"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "dataImpact"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "techniques"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "reproduction"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "selfCheck"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "cryptanalysis"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "quantum"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "certification"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "legalDefinitions"
                  ]
                }
              },
              {
                "not": {
                  "required": [
                    "claimStates"
                  ]
                }
              }
            ]
          },
          "else": {
            "not": {
              "required": [
                "regulatoryAction"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "const": "owner"
              }
            },
            "required": [
              "role"
            ]
          },
          "else": {
            "properties": {
              "contests": {
                "items": {
                  "properties": {
                    "disposition": {
                      "not": {
                        "const": "rejected"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "enum": [
                  "owner",
                  "peer",
                  "root"
                ]
              }
            },
            "required": [
              "role"
            ]
          },
          "else": {
            "not": {
              "required": [
                "contests"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "role": {
                "enum": [
                  "owner",
                  "peer"
                ]
              }
            },
            "required": [
              "role"
            ]
          },
          "else": {
            "not": {
              "required": [
                "coordination"
              ]
            }
          }
        }
      ]
    },
    "Intervention": {
      "type": "object",
      "properties": {
        "basis": {
          "type": "string",
          "enum": [
            "scope-violation",
            "factual-error",
            "unresponsive-owner",
            "safety",
            "accreditation-breach",
            "contest-upheld",
            "other"
          ]
        },
        "basisNote": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "accreditationPath": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "minItems": 2
        },
        "restrictionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "contestContainerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "appealable": {
          "type": "boolean",
          "default": true
        },
        "appealDeadline": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "appealId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "ownerNotifiedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "expiresAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "supersedes": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "corrects": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "minItems": 1
        }
      },
      "required": [
        "basis",
        "accreditationPath"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "basis": {
                "const": "other"
              }
            },
            "required": [
              "basis"
            ]
          },
          "then": {
            "required": [
              "basisNote"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "basis": {
                "const": "contest-upheld"
              }
            },
            "required": [
              "basis"
            ]
          },
          "then": {
            "required": [
              "contestContainerId"
            ]
          }
        },
        {
          "if": {
            "required": [
              "contestContainerId"
            ]
          },
          "then": {
            "required": [
              "basis"
            ],
            "properties": {
              "basis": {
                "const": "contest-upheld"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "appealable": {
                "const": false
              }
            },
            "required": [
              "appealable"
            ]
          },
          "then": {
            "anyOf": [
              {
                "required": [
                  "appealId"
                ]
              },
              {
                "required": [
                  "appealDeadline"
                ]
              }
            ]
          }
        }
      ]
    },
    "ContributionLimit": {
      "type": "object",
      "properties": {
        "measureId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "reason": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "permittedRoles": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "owner",
              "peer",
              "contributor",
              "publisher",
              "registry",
              "root",
              "translator",
              "reviewer",
              "regulator"
            ]
          },
          "minItems": 1
        },
        "permittedAuthorities": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "minItems": 1,
          "maxItems": 256
        },
        "expiresAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        }
      },
      "required": [
        "measureId",
        "reason"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "anyOf": [
            {
              "required": [
                "permittedRoles"
              ]
            },
            {
              "required": [
                "permittedAuthorities"
              ]
            }
          ]
        }
      ]
    },
    "PeerStanding": {
      "type": "object",
      "properties": {
        "basis": {
          "type": "string",
          "enum": [
            "affected-vendor",
            "coordinator",
            "downstream-distributor",
            "independent-analysis",
            "open-source-steward",
            "other"
          ]
        },
        "basisNote": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "ownerContactedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        }
      },
      "required": [
        "basis"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "basis": {
                "const": "other"
              }
            },
            "required": [
              "basis"
            ]
          },
          "then": {
            "required": [
              "basisNote"
            ]
          }
        }
      ]
    },
    "Enrichment": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "manual-analysis",
            "automated",
            "aggregated",
            "other"
          ]
        },
        "methodNote": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/EnrichmentSource"
          },
          "minItems": 1
        },
        "confidence": {
          "$ref": "#/definitions/VersionRange/properties/confidence"
        }
      },
      "required": [
        "method"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "method": {
                "const": "other"
              }
            },
            "required": [
              "method"
            ]
          },
          "then": {
            "required": [
              "methodNote"
            ]
          }
        }
      ]
    },
    "EnrichmentSource": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "url",
            "record",
            "dataset",
            "tool-output"
          ]
        },
        "ref": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500
        },
        "retrievedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "digest": {
          "$ref": "#/definitions/Digest"
        }
      },
      "required": [
        "kind",
        "ref"
      ],
      "additionalProperties": true
    },
    "Allocation": {
      "type": "object",
      "properties": {
        "allocatedTo": {
          "$ref": "#/definitions/Party"
        },
        "allocatedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "origin": {
          "type": "string",
          "enum": [
            "per-mint",
            "block",
            "promoted"
          ]
        },
        "blockId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "provisionalId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        }
      },
      "required": [
        "allocatedTo",
        "allocatedAt",
        "origin"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "origin": {
                "const": "block"
              }
            },
            "required": [
              "origin"
            ]
          },
          "then": {
            "required": [
              "blockId"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "origin": {
                "not": {
                  "const": "block"
                }
              }
            },
            "required": [
              "origin"
            ]
          },
          "then": {
            "not": {
              "required": [
                "blockId"
              ]
            }
          }
        },
        {
          "if": {
            "properties": {
              "origin": {
                "const": "promoted"
              }
            },
            "required": [
              "origin"
            ]
          },
          "then": {
            "required": [
              "provisionalId"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "origin": {
                "not": {
                  "const": "promoted"
                }
              }
            },
            "required": [
              "origin"
            ]
          },
          "then": {
            "not": {
              "required": [
                "provisionalId"
              ]
            }
          }
        }
      ]
    },
    "Transfer": {
      "type": "object",
      "properties": {
        "from": {
          "$ref": "#/definitions/Party"
        },
        "to": {
          "$ref": "#/definitions/Party"
        },
        "at": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "basis": {
          "type": "string",
          "enum": [
            "accepted",
            "reassigned-by-root",
            "reassigned-by-registry"
          ]
        },
        "grounds": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        }
      },
      "required": [
        "to",
        "at",
        "basis"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "basis": {
                "not": {
                  "const": "accepted"
                }
              }
            },
            "required": [
              "basis"
            ]
          },
          "then": {
            "required": [
              "grounds"
            ]
          }
        }
      ]
    },
    "Translation": {
      "type": "object",
      "properties": {
        "sourceContainerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "sourceLang": {
          "type": "string",
          "minLength": 1,
          "maxLength": 35
        },
        "targetLang": {
          "type": "string",
          "minLength": 1,
          "maxLength": 35
        },
        "method": {
          "type": "string",
          "enum": [
            "human",
            "machine",
            "machine-post-edited"
          ]
        },
        "translatedBy": {
          "type": "string",
          "minLength": 1,
          "maxLength": 300
        }
      },
      "required": [
        "sourceContainerId",
        "sourceLang",
        "targetLang",
        "method"
      ],
      "additionalProperties": true
    },
    "Review": {
      "type": "object",
      "properties": {
        "verdict": {
          "type": "string",
          "enum": [
            "endorsed",
            "endorsed-with-reservations",
            "not-endorsed",
            "inconclusive"
          ]
        },
        "scope": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "affected-products",
              "severity",
              "weaknesses",
              "remediation",
              "reproduction",
              "references",
              "summary",
              "whole-record"
            ]
          },
          "minItems": 1
        },
        "reviewedContainerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "note": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        },
        "reviewedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        }
      },
      "required": [
        "verdict",
        "scope"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "verdict": {
                "not": {
                  "const": "endorsed"
                }
              }
            },
            "required": [
              "verdict"
            ]
          },
          "then": {
            "required": [
              "note"
            ]
          }
        }
      ]
    },
    "RegulatoryAction": {
      "type": "object",
      "properties": {
        "jurisdiction": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100
        },
        "instrument": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "reportReference": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "deadline": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "actedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        }
      },
      "required": [
        "jurisdiction",
        "instrument"
      ],
      "additionalProperties": true
    },
    "Redaction": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "minLength": 1
        },
        "containerId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "reason": {
          "type": "string",
          "enum": [
            "leaked-credential",
            "personal-data",
            "embargo-violation",
            "legal-order",
            "operational-risk",
            "published-in-error"
          ]
        },
        "redactedBy": {
          "$ref": "#/definitions/Party"
        },
        "redactedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "note": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/LocalizedText"
          }
        }
      },
      "required": [
        "path",
        "reason",
        "redactedBy",
        "redactedAt"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "required": [
              "containerId"
            ]
          },
          "then": {
            "properties": {
              "reason": {
                "enum": [
                  "leaked-credential",
                  "personal-data",
                  "legal-order"
                ]
              }
            }
          }
        }
      ]
    },
    "OwnershipEvent": {
      "type": "object",
      "properties": {
        "from": {
          "$ref": "#/definitions/Party"
        },
        "to": {
          "$ref": "#/definitions/Party"
        },
        "at": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "reason": {
          "type": "string"
        },
        "basis": {
          "type": "string",
          "enum": [
            "accepted",
            "reassigned-by-root",
            "reassigned-by-registry"
          ]
        },
        "retires": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "retains": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        }
      },
      "required": [
        "to",
        "at",
        "basis"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "not": {
              "properties": {
                "basis": {
                  "const": "accepted"
                }
              }
            },
            "required": [
              "basis"
            ]
          },
          "then": {
            "required": [
              "reason"
            ]
          }
        }
      ]
    },
    "GavrRecord": {
      "type": "object",
      "properties": {
        "schemaVersion": {
          "type": "string",
          "const": "1.0"
        },
        "id": {
          "type": "string",
          "maxLength": 255,
          "pattern": "^(?:GAVR-[0-9A-HJKMNP-TV-Z]{8,20}|GAVPR-(?:0|[1-9][0-9]*)-(?:0|[1-9][0-9]*)-(?:0|[1-9][0-9]*)|GAVLR-(?:(?:0|[1-9][0-9]*)-){1,3}[0-9A-HJKMNP-TV-Z]{8,20})$"
        },
        "identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Identifier"
          },
          "default": []
        },
        "type": {
          "type": "string",
          "enum": [
            "vulnerability",
            "hardening",
            "supply-chain-compromise",
            "malicious-package",
            "end-of-life",
            "advisory-correction",
            "specification-flaw",
            "cryptanalytic-result",
            "key-compromise",
            "design-weakness",
            "tampering",
            "non-issue",
            "exploit-chain"
          ],
          "default": "vulnerability"
        },
        "assessment": {
          "$ref": "#/definitions/Assessment"
        },
        "chain": {
          "type": "object",
          "properties": {
            "steps": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ChainStep"
              },
              "minItems": 2
            }
          },
          "required": [
            "steps"
          ],
          "additionalProperties": true
        },
        "granularity": {
          "$ref": "#/definitions/Granularity"
        },
        "state": {
          "type": "string",
          "enum": [
            "RESERVED",
            "DRAFT",
            "PUBLISHED",
            "WITHDRAWN",
            "DISCARDED"
          ]
        },
        "disputed": {
          "type": "boolean",
          "default": false
        },
        "disputedReason": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/definitions/LocalizedText"
              },
              "minItems": 1
            }
          ]
        },
        "disputedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "disputedBy": {
          "$ref": "#/definitions/Party"
        },
        "wasWithdrawnOnce": {
          "type": "boolean",
          "default": false
        },
        "embargoUntil": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "embargoCondition": {
          "type": "object",
          "properties": {
            "event": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "attestedBy": {
              "$ref": "#/definitions/Party"
            },
            "latestAt": {
              "$ref": "#/definitions/Identifier/properties/assignedAt"
            }
          },
          "required": [
            "event",
            "attestedBy",
            "latestAt"
          ],
          "additionalProperties": true
        },
        "reviewState": {
          "type": "string",
          "enum": [
            "NONE",
            "IN_REVIEW",
            "CHANGES_REQUESTED",
            "APPROVED"
          ],
          "default": "NONE"
        },
        "owner": {
          "$ref": "#/definitions/Party"
        },
        "ownershipHistory": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/OwnershipEvent"
          }
        },
        "title": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/definitions/LocalizedText"
              },
              "minItems": 1
            }
          ]
        },
        "exploitation": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "unknown",
                "none",
                "proof-of-concept",
                "weaponised",
                "active",
                "historic"
              ],
              "default": "unknown"
            },
            "assertedBy": {
              "$ref": "#/definitions/Party"
            },
            "assertedAt": {
              "$ref": "#/definitions/Identifier/properties/assignedAt",
              "description": "RFC 3339 timestamp"
            },
            "catalogues": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "catalogue": {
                    "type": "string",
                    "minLength": 1
                  },
                  "attributedBy": {
                    "$ref": "#/definitions/Party"
                  },
                  "addedAt": {
                    "$ref": "#/definitions/Identifier/properties/assignedAt",
                    "description": "RFC 3339 timestamp"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "dueAt": {
                    "$ref": "#/definitions/Identifier/properties/assignedAt",
                    "description": "RFC 3339 timestamp"
                  }
                },
                "required": [
                  "catalogue"
                ],
                "additionalProperties": true
              }
            },
            "note": {
              "type": "string"
            },
            "reliability": {
              "type": "string",
              "enum": [
                "reliable",
                "unreliable",
                "one-shot"
              ]
            },
            "targetKnowledge": {
              "type": "string",
              "enum": [
                "none",
                "build-specific",
                "needs-leak"
              ]
            },
            "builds": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1
              },
              "minItems": 1
            }
          },
          "additionalProperties": true
        },
        "licence": {
          "type": "object",
          "properties": {
            "spdx": {
              "type": "string",
              "minLength": 1
            },
            "url": {
              "type": "string",
              "format": "uri"
            },
            "declareNoAi": {
              "type": "boolean"
            }
          },
          "additionalProperties": true
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "mediaType": {
                "type": "string",
                "minLength": 1
              },
              "digest": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "length": {
                "type": "integer",
                "minimum": 0
              },
              "description": {
                "type": "array",
                "items": {
                  "$ref": "#/definitions/LocalizedText"
                }
              },
              "legalMarking": {
                "type": "object",
                "properties": {
                  "jurisdiction": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "instrument": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "classification": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "jurisdiction",
                  "instrument",
                  "classification"
                ],
                "additionalProperties": true
              }
            },
            "required": [
              "name",
              "url",
              "mediaType",
              "digest"
            ],
            "additionalProperties": true
          }
        },
        "redactions": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/Redaction"
          }
        },
        "containers": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/RecordContainer"
          },
          "default": []
        },
        "severityPrecedence": {
          "type": "object",
          "properties": {
            "preferredAuthor": {
              "$ref": "#/definitions/Party"
            },
            "order": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "CVSS_V4_0",
                  "CVSS_V3_1",
                  "CVSS_V3_0",
                  "CVSS_V2_0",
                  "EPSS",
                  "SSVC",
                  "QUALITATIVE"
                ]
              }
            },
            "note": {
              "type": "string"
            }
          },
          "additionalProperties": true
        },
        "quality": {
          "type": "object",
          "properties": {
            "grade": {
              "type": "string",
              "enum": [
                "minimal",
                "basic",
                "good",
                "comprehensive"
              ]
            },
            "missing": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "assessedAt": {
              "$ref": "#/definitions/Identifier/properties/assignedAt",
              "description": "RFC 3339 timestamp"
            },
            "assessedBy": {
              "$ref": "#/definitions/Party"
            },
            "rulesetVersion": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "grade"
          ],
          "additionalProperties": true
        },
        "createdAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "updatedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt"
        },
        "publishedAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        },
        "withdrawnAt": {
          "$ref": "#/definitions/Identifier/properties/assignedAt",
          "description": "RFC 3339 timestamp"
        }
      },
      "required": [
        "schemaVersion",
        "id",
        "state",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": true,
      "allOf": [
        {
          "if": {
            "properties": {
              "type": {
                "const": "non-issue"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "required": [
              "assessment"
            ]
          }
        },
        {
          "if": {
            "required": [
              "assessment"
            ]
          },
          "then": {
            "anyOf": [
              {
                "properties": {
                  "type": {
                    "const": "non-issue"
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "properties": {
                  "type": {
                    "const": "vulnerability"
                  },
                  "containers": {
                    "contains": {
                      "properties": {
                        "role": {
                          "const": "root"
                        },
                        "intervention": {
                          "properties": {
                            "basis": {
                              "const": "contest-upheld"
                            }
                          },
                          "required": [
                            "basis"
                          ]
                        }
                      },
                      "required": [
                        "role",
                        "intervention"
                      ]
                    }
                  }
                },
                "required": [
                  "containers"
                ]
              }
            ]
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "exploit-chain"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "required": [
              "chain"
            ]
          }
        },
        {
          "if": {
            "required": [
              "chain"
            ]
          },
          "then": {
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "const": "exploit-chain"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "type": {
                "const": "non-issue"
              }
            },
            "required": [
              "type"
            ]
          },
          "then": {
            "properties": {
              "containers": {
                "items": {
                  "if": {
                    "properties": {
                      "role": {
                        "const": "owner"
                      }
                    },
                    "required": [
                      "role"
                    ]
                  },
                  "then": {
                    "allOf": [
                      {
                        "not": {
                          "required": [
                            "severity"
                          ]
                        }
                      },
                      {
                        "properties": {
                          "affected": {
                            "items": {
                              "allOf": [
                                {
                                  "not": {
                                    "required": [
                                      "severity"
                                    ]
                                  }
                                },
                                {
                                  "properties": {
                                    "ranges": {
                                      "not": {
                                        "contains": {
                                          "properties": {
                                            "status": {
                                              "enum": [
                                                "affected",
                                                "affected-versions-unknown"
                                              ]
                                            }
                                          },
                                          "required": [
                                            "status"
                                          ]
                                        }
                                      }
                                    }
                                  }
                                },
                                {
                                  "not": {
                                    "properties": {
                                      "defaultStatus": {
                                        "const": "affected"
                                      },
                                      "ranges": {
                                        "maxItems": 0
                                      }
                                    },
                                    "required": [
                                      "defaultStatus"
                                    ]
                                  }
                                }
                              ]
                            }
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        {
          "if": {
            "not": {
              "properties": {
                "state": {
                  "const": "RESERVED"
                }
              }
            }
          },
          "then": {
            "required": [
              "owner",
              "containers"
            ],
            "properties": {
              "containers": {
                "contains": {
                  "properties": {
                    "role": {
                      "const": "owner"
                    }
                  },
                  "required": [
                    "role"
                  ]
                }
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "disputed": {
                "const": true
              }
            },
            "required": [
              "disputed"
            ]
          },
          "then": {
            "required": [
              "disputedReason"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "state": {
                "const": "WITHDRAWN"
              }
            },
            "required": [
              "state"
            ]
          },
          "then": {
            "required": [
              "withdrawnAt"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "state": {
                "const": "WITHDRAWN"
              }
            },
            "required": [
              "state"
            ]
          },
          "then": {
            "required": [
              "wasWithdrawnOnce"
            ],
            "properties": {
              "wasWithdrawnOnce": {
                "const": true
              }
            }
          }
        },
        {
          "required": [
            "identifiers"
          ],
          "properties": {
            "identifiers": {
              "contains": {
                "type": "object",
                "properties": {
                  "role": {
                    "const": "PRIMARY"
                  }
                },
                "required": [
                  "role"
                ]
              }
            }
          }
        },
        {
          "properties": {
            "title": {
              "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$",
              "items": {
                "properties": {
                  "value": {
                    "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$"
                  }
                }
              }
            },
            "identifiers": {
              "items": {
                "properties": {
                  "value": {
                    "pattern": "^[^\\u061C\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u2069\\uFEFF]*$"
                  }
                }
              }
            }
          }
        }
      ]
    }
  }
}
