16 lines
505 B
Markdown
16 lines
505 B
Markdown
# JSON Validator Artifact
|
|
|
|
A simple JSON validator that checks for the presence of a `"valid": true` field in JSON files.
|
|
|
|
## Files
|
|
- `json_validator_new.py` - The validation script
|
|
- `test_valid.json` - Test file with valid JSON
|
|
|
|
## Verification
|
|
Run: `python3 /root/.hermes/wizard-outputs/spark/json_validator_new.py /root/.hermes/wizard-outputs/spark/test_valid.json`
|
|
Expected exit code: 0
|
|
|
|
## Exit Codes
|
|
- 0: Valid JSON with valid=true
|
|
- 1: Invalid JSON or missing/false valid field
|
|
- 2: File not found |