{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/talisman-configuration/latest.json",
  "title": "schema for .talismanrc",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/thoughtworks/talisman/main/examples/schema-store-talismanrc.json",
    "sourceSha256": "feeb6f4fff4c8037077cf4146f9da8fc049c8518e491eab2716b808bf201db71",
    "fileMatch": [
      ".talismanrc"
    ]
  },
  "type": "object",
  "properties": {
    "fileignoreconfig": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "description": "Fully qualified filename"
          },
          "checksum": {
            "type": "string",
            "description": "This field should always have the value specified by Talisman message"
          },
          "ignore_detectors": {
            "type": "array",
            "description": "Disable specific detectors for a particular file",
            "items": {
              "type": "string",
              "enum": [
                "filecontent",
                "filename",
                "filesize"
              ]
            }
          },
          "allowed_patterns": {
            "type": "array",
            "description": "Keywords to ignore to reduce the number of false positives",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "filename"
        ]
      }
    },
    "scopeconfig": {
      "type": "array",
      "description": "Talisman is configured to ignore certain files based on the specified scopes",
      "items": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string"
          }
        },
        "required": [
          "scope"
        ]
      }
    },
    "allowed_patterns": {
      "type": "array",
      "description": "Keywords to ignore to reduce the number of false positives",
      "items": {
        "type": "string"
      }
    },
    "custom_patterns": {
      "type": "array",
      "description": "You can specify custom regex patterns to look for in the current repository",
      "items": {
        "type": "string"
      }
    },
    "custom_severities": {
      "type": "array",
      "description": "Custom detectors severities",
      "items": {
        "type": "object",
        "properties": {
          "detector": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          }
        },
        "required": [
          "detector",
          "severity"
        ]
      }
    },
    "threshold": {
      "type": "string",
      "description": "Default minimal threshold",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "version": {
      "type": "string",
      "description": ".talismanrc version"
    }
  },
  "fileMatch": [
    ".talismanrc"
  ],
  "additionalProperties": false,
  "required": []
}
