coryhouse / coryhouse/react-restaurant-scriptpro
Define Food type + Zod schema
Open
enhancement
phase-2-fetching
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Goal
Define a `Food` TypeScript type and matching Zod schema for runtime validation of API responses.
## Acceptance criteria
- [ ] Zod schema in `src/food.ts` validates `id`, `name`, `description`, `price`, `tags[]`, `image`
- [ ] `Food` type derived from the schema via `z.infer`
- [ ] Schema is exported and reused across the app
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.