mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
The selection route validated its payload with ~75 lines of isRecord / hasString / isFiniteNumber helpers sitting next to a hand-written interface describing the same shape — two definitions that could drift, and the pattern the agent routes were copied from. Both are now one zod schema with the public types inferred from it, so the validator and the type cannot disagree. The Google Fonts metadata parse follows. Net -115 lines, same behaviour: the existing selection route tests pass unchanged.