DevPath icon indicating copy to clipboard operation
DevPath copied to clipboard

[Feature]: Improve recommendation input validation for unsupported values

Open mishtiagrawal02-cloud opened this issue 6 months ago • 5 comments

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 / Advanced
  • time → Low / Medium / High
  • interest → supported interests only
  • skills → 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.

mishtiagrawal02-cloud avatar May 28 '26 20:05 mishtiagrawal02-cloud

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.

github-actions[bot] avatar May 28 '26 20:05 github-actions[bot]

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.

mishtiagrawal02-cloud avatar May 28 '26 20:05 mishtiagrawal02-cloud

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!

sakshiwankhade026-coder avatar May 30 '26 16:05 sakshiwankhade026-coder

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!

github-actions[bot] avatar Nov 23 '26 08:11 github-actions[bot]

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.

github-actions[bot] avatar Nov 30 '26 09:11 github-actions[bot]