{
  "_meta": {
    "documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-base.html",
    "ecs_version": "1.12.2"
  },
  "template": {
    "mappings": {
      "properties": {
        "snyk": {
          "properties": {
            "audit": {
              "properties": {
                "content": {
                  "type": "flattened"
                },
                "org_id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "project_id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "projects": {
              "type": "flattened"
            },
            "related": {
              "properties": {
                "projects": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "vulnerabilities": {
              "properties": {
                "credit": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "cvss3": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "disclosure_time": {
                  "type": "date"
                },
                "exploit_maturity": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "id": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "identifiers": {
                  "properties": {
                    "alternative": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    },
                    "cwe": {
                      "ignore_above": 1024,
                      "type": "keyword"
                    }
                  }
                },
                "introduced_date": {
                  "type": "date"
                },
                "is_fixed": {
                  "type": "boolean"
                },
                "is_ignored": {
                  "type": "boolean"
                },
                "is_patchable": {
                  "type": "boolean"
                },
                "is_patched": {
                  "type": "boolean"
                },
                "is_pinnable": {
                  "type": "boolean"
                },
                "is_upgradable": {
                  "type": "boolean"
                },
                "jira_issue_url": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "language": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "original_severity": {
                  "type": "long"
                },
                "package": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "package_manager": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "patches": {
                  "type": "flattened"
                },
                "priority_score": {
                  "type": "long"
                },
                "publication_time": {
                  "type": "date"
                },
                "reachability": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "semver": {
                  "type": "flattened"
                },
                "title": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "type": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "unique_severities_list": {
                  "ignore_above": 1024,
                  "type": "keyword"
                },
                "version": {
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            }
          }
        }
      }
    }
  }
}