{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://stellaops.example/schemas/adobe-bulletin.schema.json",
  "type": "object",
  "required": [
    "advisoryId",
    "title",
    "published",
    "products",
    "cves",
    "detailUrl"
  ],
  "properties": {
    "advisoryId": {
      "type": "string",
      "minLength": 1
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "published": {
      "type": "string",
      "format": "date-time"
    },
    "products": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "product",
          "track",
          "platform"
        ],
        "properties": {
          "product": {
            "type": "string",
            "minLength": 1
          },
          "track": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "affectedVersion": {
            "type": ["string", "null"]
          },
          "updatedVersion": {
            "type": ["string", "null"]
          },
          "priority": {
            "type": ["string", "null"]
          },
          "availability": {
            "type": ["string", "null"]
          }
        },
        "additionalProperties": false
      }
    },
    "cves": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^CVE-\\d{4}-\\d{4,}$"
      }
    },
    "detailUrl": {
      "type": "string",
      "format": "uri"
    },
    "summary": {
      "type": ["string", "null"]
    }
  },
  "additionalProperties": false
}
