{
  "$id": "https://redlightindex.com/schema/fda_lineage.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "items": {
    "additionalProperties": false,
    "properties": {
      "applicant": {
        "type": "string"
      },
      "decision_date": {
        "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
      },
      "device_id": {
        "type": "string"
      },
      "gudid_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "k_number": {
        "type": "string"
      },
      "lineage_id": {
        "type": "string"
      },
      "match_confidence": {
        "enum": [
          "direct",
          "probable",
          "ambiguous",
          "no_match"
        ],
        "type": "string"
      },
      "mismatch_fields": {
        "type": "string"
      },
      "notes": {
        "type": "string"
      },
      "retail_leds": {
        "type": "string"
      },
      "retail_model": {
        "type": "string"
      },
      "retail_sku": {
        "type": "string"
      },
      "retail_source_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "retail_wavelengths_nm": {
        "type": "string"
      },
      "search_date": {
        "pattern": "^$|^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
        "type": "string"
      },
      "source_archive_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "source_url": {
        "pattern": "^$|^https://.*$",
        "type": "string"
      },
      "summary_leds": {
        "type": "string"
      },
      "summary_wavelengths_nm": {
        "type": "string"
      },
      "udi_di": {
        "type": "string"
      }
    },
    "required": [
      "lineage_id",
      "device_id",
      "retail_sku",
      "retail_model",
      "applicant",
      "k_number",
      "decision_date",
      "summary_leds",
      "summary_wavelengths_nm",
      "retail_leds",
      "retail_wavelengths_nm",
      "mismatch_fields",
      "match_confidence",
      "search_date",
      "source_url",
      "source_archive_url",
      "gudid_url",
      "udi_di",
      "retail_source_url",
      "notes"
    ],
    "type": "object"
  },
  "title": "Red Light Index fda_lineage rows",
  "type": "array"
}
