mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-13 14:35:33 +10:00
fabe22089d
The redactResumeForViewer helper intentionally blanks the dashboard title for non-owner viewers (the title can leak owner-only context like "Senior Eng @ Foo - final draft"), but the getBySlug output schema inherits name.min(1) from resumeSchema. Zod rejects the redacted payload, oRPC throws Output validation failed, and every public resume URL returns HTTP 500. Relax the constraint to z.string() on the getBySlug output only - ownership-gated procedures (getById, update, patch, list, ...) keep min(1). Fixes #3011 Co-authored-by: Amruth Pillai <im.amruth@gmail.com>