Module validation

Module validation 

Source
Expand description

Low-level validation functions for individual configuration values.

This module provides primitive validation functions that are used by higher-level validation systems. These functions focus on validating individual values and types without knowledge of the overall configuration structure.

§Architecture

This module is the foundation of the validation system:

Functions§

parse_bool
Parse boolean value from string.
validate_ai_model
Validate AI model name format.
validate_api_key
Validate API key format.
validate_enum
Validate a string value against a list of allowed values.
validate_file_path
Validate that a path exists and is accessible.
validate_float_range
Validate a float value within a specified range.
validate_non_empty_string
Validate that a string is not empty after trimming.
validate_positive_number
Validate that a number is positive.
validate_power_of_two
Validate that a value is a power of two.
validate_range
Validate that a number is within a specified range.
validate_temperature
Validate temperature value for AI models.
validate_u64_range
Validate a u64 value within a specified range.
validate_uint_range
Validate an unsigned integer within a specified range.
validate_url
Validate URL format.
validate_url_format
Validate that a string is a valid URL.
validate_usize_range
Validate a usize value within a specified range.