The Brief
A SaaS platform takes JSON payloads from third-party integrators. Bad data has been silently corrupting their database for months. They want a schema validator built from scratch — no third-party libraries — that compares an incoming dict against a schema definition and returns every violation, not just the first one.
Support these schema types: string, integer, number, boolean, array, object. Plus constraints: required fields, min/max for numbers, minLength/maxLength for strings, minItems/maxItems for arrays, enum (whitelist of allowed values), and nested object/array schemas.