Define Food type + Zod schema

Open Beginner friendly
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
api

Research direction

Start with src/food.ts and inspect how API responses and shared types are currently represented. Define the exported Zod schema for id, name, description, price, tags, and image, derive Food with z.infer, and verify the schema is reused across the app.

Written by the indexing model from the issue text.

Description

enhancement phase-2-fetching

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
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coryhouse/react-restaurant-scriptpro

All issues in coryhouse/react-restaurant-scriptpro

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.