{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://laitest.alexanderromero.net/feeds/schema/threat-intel-v1.json",
  "title": "Laitest Threat Intel Signal Feed",
  "type": "object",
  "required": [
    "feed_id",
    "schema_version",
    "generated_at",
    "disclaimer",
    "items"
  ],
  "properties": {
    "feed_id": {
      "const": "laitest-threat-intel"
    },
    "schema_version": {
      "type": "string"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "feed_hash": {
      "type": "string"
    },
    "disclaimer": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "source",
          "title",
          "severity",
          "trust",
          "content_hash"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^laitest:"
          },
          "content_hash": {
            "type": "string"
          },
          "trust": {
            "type": "object",
            "properties": {
              "authoritative": {
                "const": false
              },
              "must_enrich": {
                "const": true
              },
              "customer_facing_without_review": {
                "const": false
              }
            }
          },
          "severity": {
            "type": "object",
            "properties": {
              "hint": {
                "enum": [
                  "unknown",
                  "low",
                  "medium",
                  "high",
                  "critical"
                ]
              },
              "cvss": {
                "type": [
                  "number",
                  "null"
                ]
              }
            }
          }
        }
      }
    }
  }
}
