-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Points: 100
Add server-side validation for incident report submissions.
Validation Rules:
- Description: Required, 10-1000 characters
- Location: Required, valid lat/lng coordinates
- Photos: Optional, max 5 files, max 5MB each
- Contact: Optional, valid phone or email format
- Category: Required, one of: kidnapping, suspicious, road-block, other
Files to modify:
/packages/database/src/routes/incidents.ts/packages/database/src/validators/incidentValidator.ts(create new)
Testing:
- Invalid submissions return 400 with clear error messages
- Valid submissions are accepted
- SQL injection attempts are blocked
Want to work on this?
- Comment "I'd like to work on this!" to claim
- Wait for maintainer approval
- Fork the repo and create a branch
- Submit a PR when ready
Questions? Ask on Discord
🇳🇬 Part of Code for Change - Building technology that saves lives!
Reactions are currently unavailable