json::read[T] checks its schema: while building (NK1251)Open and answer this issue on GitHub.
ready, json · opened 2026-11-21 · updated 2026-11-22 · 0 comments
Part of #1019 After #2501
The schema: option of json::read[T] is checked while building, in the forwarding function, and a mismatch is NK1251 (ADR-344 D6). This is step 9 of #1019; it needs the forwarding function of the package grammar (step 6, #2501).
json::read[T](input; comptime schema: …), refusing a mismatch with NK1251. Tests: a package test where the schema matches (runs) and one where it does not (its .stderr showing NK1251).A json::read[T] whose schema: does not match T is refused while building with NK1251, a matching one runs, both tests pass; that commit says Fixes #N.
Split from #1019 by Claude Code