[Feature]: Improve recommendation input validation for unsupported values
What problem does this solve?
Currently, recommendation input validation checks for missing fields but does not validate unsupported values.
For example:
- Invalid time availability (
"very high","2 hours") - Unsupported experience levels
- Unsupported interest values
This can lead to inconsistent API behavior and potential runtime errors during recommendation scoring.
Proposed solution
Add stricter validation for allowed values in recommendation inputs.
Validate:
level→ Beginner / Intermediate / Advancedtime→ Low / Medium / Highinterest→ supported interests onlyskills→ non-empty and properly formatted
Also:
- Add tests covering invalid input cases
- Return meaningful API error messages with proper status codes
Alternatives considered
No additional validation and rely on current missing-field checks, but this may allow unsupported values to reach recommendation logic and create inconsistent behavior.
Which part of the app does this affect?
Recommendation engine (backend)
Estimated complexity
Medium (one function and one template change)
Before submitting
- [x] I searched existing issues and this has not been requested before.
- [x] This change would benefit contributors beyond my own use case.
Thank you for opening your first issue in DevPath.
Please make sure to:
- Read CONTRIBUTING.md
- Wait for assignment before starting work
- Follow repository guidelines carefully
Happy contributing.
Hi! I would like to work on this issue (#676). Please assign it to me. I have already explored the codebase and identified the relevant modules for implementing stricter validation and tests.
Hi 👋
I would like to work on this issue under GSSoC'26.
I have previously contributed to open-source projects and have 2 PRs successfully merged. I have gone through the issue requirements and would be happy to work on the implementation while following the project's guidelines and maintaining code quality.
Please assign this issue to me if it is available.
Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!
This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.