Skip to content

fix: add upper limit validation for years of experience#453

Merged
KaranUnique merged 1 commit into
Canopus-Labs:mainfrom
kumud-05:fix/experience-upper-limit-validation
Jul 14, 2026
Merged

fix: add upper limit validation for years of experience#453
KaranUnique merged 1 commit into
Canopus-Labs:mainfrom
kumud-05:fix/experience-upper-limit-validation

Conversation

@kumud-05

Copy link
Copy Markdown
Contributor

📝 Pull Request Description

Related Issue

Closes #449

Summary

This PR fixes the validation for the Years of Experience field while creating a new interview session.

Changes Made

  • Added frontend validation to restrict the experience value between 0 and 50.
  • Added backend validation to prevent invalid values from being submitted through API requests.
  • Displayed clear validation messages for invalid experience values.
  • Added max={50} to the experience input field for better user guidance.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature
  • ♻️ Refactoring
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • 🔥 Other (please describe) ______

How Has This Been Tested?

  • Tested with valid experience values (0–50) and verified session creation works successfully.
  • Tested values greater than 50 and confirmed that an appropriate validation error is displayed.
  • Tested negative values and confirmed they are rejected.
  • Verified backend validation by ensuring invalid requests are also blocked.

Checklist

  • My code follows the project's guidelines
  • I have tested my changes
  • I have updated documentation where necessary
  • I have linked the related issue
  • My changes do not introduce new warnings or errors

@KaranUnique KaranUnique merged commit 634bd50 into Canopus-Labs:main Jul 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Create Session accepts unrealistic Years of Experience values without upper limit validation

2 participants