{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "cve": {
            "description": "CVE identifier, e.g. CVE-2024-3094.",
            "type": "string"
          },
          "nvd": {
            "description": "Strong reference to the com.nahdig.cve.nvdV2 record.",
            "ref": "com.atproto.repo.strongRef#main",
            "type": "ref"
          },
          "software": {
            "items": {
              "ref": "#softwareRef",
              "type": "ref"
            },
            "type": "array"
          }
        },
        "required": [
          "createdAt",
          "cve",
          "nvd",
          "software"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "softwareRef": {
      "properties": {
        "cpes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "part": {
          "knownValues": [
            "a",
            "o",
            "h"
          ],
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "project": {
          "description": "Strong reference to the software.release.project record.",
          "ref": "com.atproto.repo.strongRef#main",
          "type": "ref"
        },
        "purls": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "vendor": {
          "type": "string"
        }
      },
      "required": [
        "project",
        "part",
        "vendor",
        "product"
      ],
      "type": "object"
    }
  },
  "description": "Custom CVE record linking an NVD v2 record to release.software project records via strongRefs.",
  "id": "com.nahdig.cve.atprotoV1",
  "lexicon": 1
}
