Create a Defensive JSON Configuration Validator
Write a dependency-free validator that rejects malformed or unsafe local configuration while producing precise, human-readable errors.
Write a dependency-free validator that rejects malformed or unsafe local configuration while producing precise, human-readable errors.
Prepare 25m · Build 105m · Verify 25m · Document 25m
Work only inside the folder created by Smartphone-Academy.py prepare json-config-validator. Use the supplied fictional samples or data you are explicitly authorized to handle.
Prepare the Termux workspace
Open Termux in the Academy folder and create the safe workspace. The companion generates samples, notes, and evidence files under your account.
python Smartphone-Academy.py prepare json-config-validatorNo root. Work only with the supplied files under $HOME.Practical mission
- Define required keys, accepted types, ranges, and safe defaults for the supplied configuration format
- Return multiple actionable validation errors instead of stopping at the first one
- Create tests for missing keys, wrong types, extreme values, and unexpected fields
- Document which checks prevent crashes and which checks enforce security expectations
A config_validator.py program, test-configs folder, and validation-report.md covering valid, invalid, and boundary cases.
Quality gate
Analyst reflection
Which result from “Document which checks prevent crashes and which checks enforce security expectations” needs additional evidence before it could support a real operational decision?
After checking the deliverables, run python Smartphone-Academy.py complete json-config-validator. Progress is stored locally in the Termux home directory.