css-audit icon indicating copy to clipboard operation
css-audit copied to clipboard

Enhancement: Include Timestamp and Version in JSON Report Output

Open yogendradayal opened this issue 1 year ago • 2 comments

Fixes #91

This enhancement adds two new metadata fields to the JSON report output:

  • generatedAt – An ISO 8601 timestamp indicating when the report was generated.
  • version – The current tool version retrieved from package.json.

The original audit data is now nested under a top-level reports key, ensuring the metadata is clearly separated from the actual results.

Example Output:

{
  "generatedAt": "2025-07-22T17:04:53.794Z",
  "version": "1.0.0",
  "reports": [
    [
      {
        "rule": "color-contrast",
        "result": "fail"
      },
      {
        "rule": "font-size",
        "result": "pass"
      }
    ]
  ]
}

yogendradayal avatar Jul 22 '25 17:07 yogendradayal

Hi @ryelle 👋 — I’ve opened a PR to add the generatedAt and version fields to the JSON report output. This should help clarify when reports were generated and which tool version was used. Let me know if you have any suggestions!

yogendradayal avatar Jul 22 '25 17:07 yogendradayal

heyy @yogendradayal can you assign this work??

shivathmikavemula avatar Aug 31 '25 10:08 shivathmikavemula