fix : added max length guard on compileResume code field in ValidateResume - #1845
fix : added max length guard on compileResume code field in ValidateResume#1845tmdeveloper007 wants to merge 1 commit into
Conversation
|
Thank you for your contribution! To keep reviews manageable and maintain repository quality, contributors may have a maximum of 3 open Issues and 3 open Pull Requests at any given time. Please wait until one of your existing submissions is reviewed or closed before opening additional ones. If you believe this was closed by mistake, feel free to contact the maintainers. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe compile resume validator now rejects ChangesResume validation
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary of What Has Been Done
Added max length validation (50,000 characters) on the
codefield incompileResumeSchemainValidateResume.js.Changes Made
backend/Input_validators/ValidateResume.js: Added.max(50000)tocompileResumeSchema.code.Impact it Made
Prevents clients from submitting extremely large LaTeX documents.
Closes #1840
Note: Please assign this PR to the
tmdeveloper007account.Adds a 50,000-character maximum to
compileResumeSchema.code. The validator now rejects oversized LaTeX input.