{
  "name": "csv-validate",
  "title": "Validate a CSV's headers and row count",
  "description": "Validate that a CSV document has a header row containing a required set of columns and at least a minimum number of data rows; fails the step otherwise.",
  "category": "Data",
  "tags": [
    "data",
    "python"
  ],
  "latestVersion": "1.0.1",
  "versions": [
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "csv-content",
    "min-rows",
    "required-columns"
  ],
  "images": [
    "python@sha256:94d3426f1def7db4a106a232ac121bfd975393e5dfd40a619b955fae45fe7913"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/csv-validate.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/csv-validate/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/csv-validate/",
  "entrypoint": "validate",
  "parameterDetails": [
    {
      "name": "csv-content",
      "title": "CSV content",
      "description": "The CSV document to validate, as a string (header row required).",
      "type": "string",
      "required": true
    },
    {
      "name": "min-rows",
      "title": "Minimum rows",
      "description": "Minimum number of data rows the CSV must contain (0 = no minimum).",
      "type": "string",
      "required": false,
      "default": "0"
    },
    {
      "name": "required-columns",
      "title": "Required columns",
      "description": "Comma-separated list of column names that must be present in the header.",
      "type": "string",
      "required": false,
      "default": "",
      "example": "id,email,created_at"
    }
  ],
  "imageDetails": [
    {
      "ref": "python@sha256:94d3426f1def7db4a106a232ac121bfd975393e5dfd40a619b955fae45fe7913",
      "repository": "python",
      "tag": "3.15-slim",
      "digest": "sha256:94d3426f1def7db4a106a232ac121bfd975393e5dfd40a619b955fae45fe7913"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.1",
      "date": "2026-08-18",
      "notes": "Repin python:3.13-slim on the current digest. Same tag, CPython 3.13.14 to 3.13.15, and Entrypoint, Cmd, User and WorkingDir are identical on both. The repin clears nothing: util-linux CVE-2026-53615 is on the new bytes too. What it buys is a record that holds, because an OS baseline covers a pin only while that pin is its tag's head, and this one had fallen behind. pip also moves 26.1.2 to 26.2.1, which ships an SBOM of its vendored tree, so trivy now reports the msgpack and setuptools the old pin already vendored without declaring; both are recorded in hack/image-cve-exceptions.txt. This item runs python -c over the stdlib and never invokes pip.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/csv-validate/1.0.1.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/csv-validate/1.0.1/template.yaml"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-16",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/csv-validate/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/csv-validate",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
