- Import z from zod - Add CandleSchema validating time, open, high, low, close (number), volume (optional number) - Add PatternDetectRequestSchema validating candles array and patterns array of non-empty strings - Use safeParse() and return HTTP 400 with error details on validation failure - Forward only validated data to the inference service - Mark task 4.5 as completed in tasks.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| specs | ||
| .openspec.yaml | ||
| design.md | ||
| proposal.md | ||
| tasks.md | ||