Expand description
Key-value validation for configuration service.
This module handles the validation logic that was previously embedded
in ProductionConfigService::validate_and_set_value. It provides
field-specific validation for configuration keys and values.
§Architecture
crate::config::validation- Low-level validation functions for individual valuescrate::config::validator- High-level configuration section validatorscrate::config::field_validator(this module) - Key-value validation for configuration service
Functions§
- get_
field_ description - Get a user-friendly description for a configuration field.
- normalize_
ai_ provider - Normalize an
ai.providervalue to its canonical form. - validate_
all_ fields - Validate every field of a fully-deserialized
Configusing the same per-key rules asvalidate_field. This is used byConfigService::load_for_repairso that a TOML-parsed but strict-invalid config still has its individual field invariants enforced before being handed to theconfig set/get/listhandlers. - validate_
field - Validate and parse a configuration field based on its key.