Skip to content

Feat : define ingestion payload schema with Zod validation - #60

Open
AayushJB03 wants to merge 8 commits into
madhav2348:developfrom
AayushJB03:feat/ingestion-payload-schema
Open

Feat : define ingestion payload schema with Zod validation#60
AayushJB03 wants to merge 8 commits into
madhav2348:developfrom
AayushJB03:feat/ingestion-payload-schema

Conversation

@AayushJB03

Copy link
Copy Markdown

Fixes #15

Summary

  • Adds Zod discriminated union schemas for local, cloud (gdrive), and telegram ingestion sources
  • Exports inferred TypeScript types as shared source of truth
  • Updates POST /api/screenshots with structured Zod validation and 400 error responses
  • Adds API.md documenting all payload shapes and response formats

Validation

  • TypeScript compiler check (tsc --noEmit) passes
  • ESLint passes with zero warnings

Dru-429 and others added 8 commits June 3, 2026 18:10
…av2348#15)

- Add src/server/types/ingestion.ts with Zod discriminated union schemas
  for local, cloud (gdrive), and telegram screenshot sources
- Export inferred TypeScript types as shared source of truth
- Update POST /api/screenshots to validate multipart/form-data (local)
  and application/json (cloud/telegram) with structured 400 error responses
- Add API.md documenting all payload shapes, fields, and response formats
@github-actions

Copy link
Copy Markdown

🎉 Thanks for submitting a PR, @AayushJB03!

Please confirm the following checklist before review:

  • ⭐ I have starred this repository
  • 🍴 I have forked this repository
  • 📖 I have read the Contributing Guidelines
  • 🔀 My changes are pushed to the develop branch

A maintainer will review your PR shortly. Thank you! 🚀

@madhav2348

Copy link
Copy Markdown
Owner

Resolve merge conflict @AayushJB03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants