Skip to content

Add DAR JSON schema and validator update #7

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: master
Choose a base branch
from

Conversation

KristopherKubicki
Copy link
Member

Summary

  • add dar.schema.json describing DAR file structure
  • integrate jsonschema-based checking in dar_validator.py
  • document validation steps in new guide and link from README

Testing

  • PYTHONPATH=. pytest -q
  • python -m py_compile tools/validators/dar_validator.py

https://chatgpt.com/codex/tasks/task_e_684080a071388333b312075649f81533

@Copilot Copilot AI review requested due to automatic review settings June 4, 2025 17:25
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances DAR file validation by introducing a JSON schema and integrating jsonschema-based validation into dar_validator.py. Key changes include:

  • Adding dar.schema.json to define the DAR file structure.
  • Updating DARValidator to accept an optional schema path and perform schema validation.
  • Adding documentation in docs/validation.md and updating the README.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tools/validators/dar_validator.py Updated to use jsonschema for validation and support an optional schema path.
docs/validation.md New documentation outlining how to validate DAR files.
dar.schema.json New JSON Schema file defining the DAR file structure.
README.md Updated to include a link to the validation guide.

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

Successfully merging this pull request may close these issues.

1 participant