{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ContentSnippet",
  "description": "ContentSnippet schema from Palo Alto Networks Enterprise DLP API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/dlp-api-content-snippet-schema.json",
  "type": "object",
  "properties": {
    "pattern_id": {
      "type": "string",
      "description": "Data pattern identifier that matched."
    },
    "pattern_name": {
      "type": "string",
      "description": "Data pattern name that matched."
    },
    "snippet": {
      "type": "string",
      "description": "Context snippet around the data pattern match."
    },
    "position": {
      "type": "integer",
      "description": "Character offset position of the match within the document."
    },
    "masked": {
      "type": "boolean",
      "description": "Whether the matched content within the snippet is masked."
    }
  }
}
