Skip to content

Enhancement: Include Timestamp and Version in JSON Report Output #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

yogendradayal
Copy link

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Report template: Add date or version when the report was generated
1 participant