validate_field#
- hydromodpy.schema.validate_field(path, value, context=None, locale='en')[source]#
Validate
valueagainst the type ofpathinHydroModPyConfig.- Return type:
- 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.