mirror of
https://github.com/rohitg00/ai-engineering-from-scratch.git
synced 2026-10-02 01:54:39 +08:00
Harden validate_schema_shape() to validate keyword payload types and ranges (enum is list, minLength/maxLength are non-negative ints, minLength <= maxLength, pattern is str) so invalid schemas fail fast at register() instead of producing TypeError during validate().