Skip to main content

Module validation

Module validation 

Source
Expand description

Input validation for task data

This module provides comprehensive validation functions to ensure data integrity before persisting tasks to storage.

Functionsยง

validate_due_date
Validates due date is not in the past (for new tasks)
validate_project_name
Validates a project name is not empty and within length limits.
validate_recurrence
Validates recurrence pattern has a due date
validate_tags
Validates tags are properly formatted and unique
validate_task
Validates a complete task before saving
validate_task_id
Validates that a task ID is within valid range
validate_task_text
Validates task text is not empty and within length limits