Task(api-contract): remove unused zod dependency #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
api-contract/package.jsondeclareszodas a dependency, butgrep -rn "zod" api-contract/src/finds zero usages anywhere in the contract source.CLAUDE.mdanddocs/api-conventions.mdboth explicitly state the contract 'uses@ts-rest/corewith plain TypeScript interfaces (no Zod, no code generation)' — the dependency contradicts the documented convention.Found during the
recipe-backend/recipe-appcontract-onboarding audit (recipe-backendPR #13,docs/plans/onboarding-integration.md→ Audit Results). Not actioned there since it requires changingapi-contract/package.jsonin this repo.Fix: remove
zodfromapi-contract/package.json'sdependenciesand regenerateapi-contract/package-lock.json. Note: bothrecipe-backendandrecipe-appcurrently declare@ts-rest/core/zodas their own direct dependencies too (to satisfynpm ci's lockfile validation for thefile:dependency's transitive deps — seedocs/adr/2026-09-19-contract-ci-install-step.md) — check whether removingzodfromapi-contracthas any knock-on effect there, though it should not since those are independent declarations.api-contract: remove unused zod dependencyto Task(api-contract): remove unused zod dependency