Internal helper
This page documents an internal implementation helper, not a primary public API.
Source code in src/fabricops_kit/config.py
837
838
839
840
841
842
843
844
845 | def _format_error_path(error_path: list[object], message: str, validator: str) -> str:
parts = [str(part) for part in error_path]
base_path = ".".join(parts)
if validator == "required":
match = re.search(r"'([^']+)' is a required property", message)
if match:
missing_property = match.group(1)
return f"{base_path}.{missing_property}" if base_path else missing_property
return base_path or "$"
|