[Backend] 注文履歴API用のスキーマをPydanticで定義する
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python, typescript
Research direction
Start by reading schemas.py to follow the existing schema conventions and identify the order fields already used. Define OrderHistoryItem with order data and menu name and image URL, add the OrderHistoryResponse list schema, then run scripts/generate-types.sh and verify the corresponding types appear in static/js/types/api.ts.
Written by the indexing model from the issue text.
Description
Description:
Goal:
フロントエンドとのデータ契約を確立するため、注文履歴APIのレスポンスで使用するデータ構造をschemas.pyに定義します。
Tasks:
- schemas.pyに、注文情報に加えて関連メニュー情報(商品名、画像URL)を含む
- OrderHistoryItemスキーマを新規作成します。OrderHistoryItemのリスト形式であるOrderHistoryResponseスキーマを新規作成します。
- scripts/generate-types.sh を実行し、static/js/types/api.tsに新しい型が正しく出力されることを確認します。
Acceptance Criteria: schemas.pyとapi.tsが更新され、Gitにコミットされていること。
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cokiimcham/app
-
ダッシュボードを実装する Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
cokiimcham/app#6 · 1 comment ·
-
メッセージ機能 Open
Difficulty 5/5 Over a week Newbie friendliness 20/100
cokiimcham/app#5 · 1 comment ·
-
スキル交換リクエスト Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
cokiimcham/app#4 · 2 comments ·
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100