Skip to content

Add Field Validation for API Input #5

@anish-devgit

Description

@anish-devgit

Description

The Pydantic models need stricter validation.

Task

  • Add range checks (e.g., study hours cannot be negative).
  • Return proper 400 errors for invalid inputs.

Difficulty

Intermediate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions