Skip to content

_load_schema

Internal helper
This page documents an internal implementation helper, not a primary public API.
Source code in src/fabricops_kit/config.py
877
878
879
880
881
def _load_schema(schema_path: str | Path | None = None) -> dict:
    if schema_path is None:
        return yaml.safe_load(_default_schema_text())
    with Path(schema_path).open("r", encoding="utf-8") as handle:
        return yaml.safe_load(handle)