hydromodpy.schema.partial_validator#
Partial field validator for the HydroModPy configuration.
Given a dotted field_path (e.g. flow.properties.specific_yield) and
a candidate value, validate_field() returns a lightweight
ValidationResult that a frontend can surface while the user types.
The implementation navigates the Pydantic root model to find the leaf
field, then re-validates the value via pydantic.TypeAdapter. This
avoids building a full PartialHydroModPyConfig per request and keeps
the per-call cost well below the 50 ms target stated in
architecture_cible/11_frontend_ready.md.
The validator never needs network or disk I/O; it is safe to call repeatedly from an interactive UI.
Functions
|
Validate |
Classes
|
Outcome of validating a single configuration field. |