612 B
612 B
JSON Schema Validator Artifact
Overview
This artifact contains a JSON Schema Validator implementation that validates JSON files against JSON schemas.
Files
json_schema_cli.py- Command-line JSON validatortest_validator.py- Test runner for the validatortest_schema.json- JSON schema for testingvalid_test_data.json- Valid test datainvalid_test_data.json- Invalid test data (type mismatch)
Usage
python3 json_schema_cli.py <json_file> <schema_file>
Verification
Run tests with:
python3 test_validator.py
All tests should pass with exit code 0.