Summary
The akf validate command currently checks structural validity but doesn't validate against the official JSON Schema at spec/akf-v1.1.schema.json. Adding schema validation would make validation more thorough.
What needs to happen
- Add
jsonschema as an optional dependency
- In
python/akf/cli.py, enhance the validate command to also run JSON Schema validation
- Report schema violations with clear error messages
- Gracefully handle missing
jsonschema package
Helpful context
- Schema is at
spec/akf-v1.1.schema.json
- Current validation logic is in
python/akf/validate.py
- Use
jsonschema.validate() from the jsonschema package
Acceptance criteria
Summary
The
akf validatecommand currently checks structural validity but doesn't validate against the official JSON Schema atspec/akf-v1.1.schema.json. Adding schema validation would make validation more thorough.What needs to happen
jsonschemaas an optional dependencypython/akf/cli.py, enhance thevalidatecommand to also run JSON Schema validationjsonschemapackageHelpful context
spec/akf-v1.1.schema.jsonpython/akf/validate.pyjsonschema.validate()from thejsonschemapackageAcceptance criteria
akf validate file.akfreports schema violationsjsonschemainstalled (falls back to current behavior)