INNER CODE UNIT · Python

load_manifest

dotnet/sdk · .github/scripts/check_vendored_files.py:99

def load_manifest() -> list[Entry]:
    with MANIFEST_PATH.open("r", encoding="utf-8") as f:
        data = json.load(f)
    default_area_labels = data.get("default_area_labels", [])
    return [Entry.from_dict(e, default_area_labels) for e in data["entries"]]


# ---------- validation ----------

def validate(entries: list[Entry]) -> int:
    errors: list[str] = []
    seen_ids: set[str] = set()
    for entry in entries:
        if not entry.id:
            errors.append("Entry missing id.")
            continue
        if entry.id in seen_ids:
            errors.append(f"Duplicate entry id: {entry.id}")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…