hydromodpy.core.config_kit.validators#

Shared field-validator callables for Pydantic configuration models.

These helpers are pure: they depend only on the standard library and accept a single value argument like a Pydantic @field_validator target. They must stay in core and may not import any sibling layer.

Functions

validate_optional_identifier(value)

Normalize an optional identifier to a stripped string or None.