- Add validateCreateJobRequest() checking required fields (companyId, title ≥5 chars, description ≥20 chars) and enum values (employmentType, workMode, status) before hitting the DB - Catch *pq.Error in handler: check_violation (23514) and foreign_key_violation (23503) now return 400; unique_violation (23505) returns 409; other DB errors return 500 without leaking raw pq messages - Fix test fixtures: description and companyId now meet validation requirements Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| activity_log_handler.go | ||
| application_handler.go | ||
| application_handler_ext.go | ||
| application_handler_test.go | ||
| company_follower_handler.go | ||
| favorite_job_handler.go | ||
| job_alert_handler.go | ||
| job_handler.go | ||
| job_handler_test.go | ||
| metrics_handler.go | ||
| notification_handler.go | ||
| payment_handler.go | ||
| payment_handler_test.go | ||
| storage_handler.go | ||
| storage_handler_test.go | ||
| subscription_handler.go | ||
| ticket_handler.go | ||
| video_interview_handler.go | ||