Skip to content

fix : added max length guard on compileResume code field in ValidateResume - #1845

Closed
tmdeveloper007 wants to merge 1 commit into
Canopus-Labs:mainfrom
tmdeveloper007:fix-1840
Closed

fix : added max length guard on compileResume code field in ValidateResume#1845
tmdeveloper007 wants to merge 1 commit into
Canopus-Labs:mainfrom
tmdeveloper007:fix-1840

Conversation

@tmdeveloper007

@tmdeveloper007 tmdeveloper007 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary of What Has Been Done

Added max length validation (50,000 characters) on the code field in compileResumeSchema in ValidateResume.js.

Changes Made

  • backend/Input_validators/ValidateResume.js: Added .max(50000) to compileResumeSchema.code.

Impact it Made

Prevents clients from submitting extremely large LaTeX documents.

Closes #1840

Note: Please assign this PR to the tmdeveloper007 account.

Adds a 50,000-character maximum to compileResumeSchema.code. The validator now rejects oversized LaTeX input.

@github-actions github-actions Bot added the rate-limited Closed automatically: contributor rate limit reached label Aug 11, 2026
@github-actions

Copy link
Copy Markdown

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.

@github-actions github-actions Bot closed this Aug 11, 2026
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3738df74-cbcd-46d8-98ad-d765ab4f05c4

📥 Commits

Reviewing files that changed from the base of the PR and between 18a34ee and f78cfcf.

📒 Files selected for processing (1)
  • backend/Input_validators/ValidateResume.js

📝 Walkthrough

Walkthrough

The compile resume validator now rejects code values longer than 50,000 characters while retaining required non-empty string validation.

Changes

Resume validation

Layer / File(s) Summary
Compile resume code length guard
backend/Input_validators/ValidateResume.js
The compileResumeSchema now applies a maximum length of 50,000 characters to the required code field.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: dev1822

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

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

Labels

rate-limited Closed automatically: contributor rate limit reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix : add max length guard on compileResume code field in ValidateResume

1 participant