validate_field#

hydromodpy.schema.validate_field(path, value, context=None, locale='en')[source]#

Validate value against the type of path in HydroModPyConfig.

Return type:

ValidationResult

Parameters:

Parameters#

path

Dotted field path (e.g. "flow.properties.k_aquifer").

value

Candidate value to validate.

context

Optional dict mirroring the form state. Currently unused by the per-field check; accepted so the signature is stable across the future partial-model implementation.

locale

Reserved for localization; the Pydantic error message is returned as-is for now.

param path:

type path:

str

param value:

type value:

Any

param context:

type context:

dict[str, Any] | None

param locale:

type locale:

str