pub(super) fn load_catalog_metadata(path: &Path) -> Result<CatalogMetadata>Expand description
Loads catalog metadata from a JSON file and validates the decoded payload.
The function expects a serialized CatalogMetadata document, deserializes
it with serde_json, and then runs the model-level validation rules before
returning the value to the caller.
Failures are reported when the file cannot be opened, when JSON decoding fails, or when the decoded metadata does not satisfy the model validation rules.