{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/tables/vulnerability_sources.schema.json",
  "title": "tables/vulnerability_sources.json",
  "description": "The rows of the table vulnerability_sources that belong to the workspace, one object per row, keyed by the database's column names.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string",
        "format": "uuid"
      },
      "organization_id": {
        "type": "string",
        "format": "uuid"
      },
      "vulnerability_id": {
        "type": "string",
        "format": "uuid"
      },
      "connector": {
        "type": "string"
      },
      "external_id": {
        "type": "string"
      },
      "url": {
        "type": [
          "string",
          "null"
        ]
      },
      "title": {
        "type": "string"
      },
      "severity": {
        "type": "string",
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "info"
        ]
      },
      "cvss_score": {
        "type": [
          "number",
          "null"
        ]
      },
      "cvss_vector": {
        "type": [
          "string",
          "null"
        ]
      },
      "state": {
        "type": "string",
        "enum": [
          "open",
          "resolved",
          "dismissed",
          "gone"
        ]
      },
      "first_seen_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "last_seen_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "created_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      },
      "updated_at": {
        "type": "string",
        "format": "date-time",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
      }
    },
    "required": [
      "id",
      "organization_id",
      "vulnerability_id",
      "connector",
      "external_id",
      "url",
      "title",
      "severity",
      "cvss_score",
      "cvss_vector",
      "state",
      "first_seen_at",
      "last_seen_at",
      "created_at",
      "updated_at"
    ],
    "additionalProperties": false
  }
}
