{"record":{"id":"ef5ccf44a33fd8df","repo":"github/spec-kit","slug":"catalog-config-contains-no-catalog-entries","errorCode":null,"errorMessage":"Catalog config contains no catalog entries.","messagePattern":"Catalog config contains no catalog entries\\.","errorType":"validation","errorClass":"IntegrationValidationError","httpStatus":null,"severity":"error","filePath":"src/specify_cli/integrations/catalog.py","lineNumber":549,"sourceCode":"        if not isinstance(data, dict):\n            raise IntegrationValidationError(\n                f\"Catalog config file {config_path} is corrupted \"\n                \"(expected a mapping).\"\n            )\n\n        catalogs = data.get(\"catalogs\", [])\n        if not isinstance(catalogs, list):\n            raise IntegrationValidationError(\n                f\"Catalog config {config_path} has invalid 'catalogs' value: \"\n                \"must be a list.\"\n            )\n\n        if not catalogs:\n            # An empty list is the kind of state that only happens if the\n            # user hand-edited the file; our own `remove_catalog` deletes\n            # the file when the last entry is popped. Surface a clear\n            # message instead of `out of range (0--1)`.\n            raise IntegrationValidationError(\n                \"Catalog config contains no catalog entries.\"\n            )\n\n        # Map displayed index -> raw YAML index using the same priority\n        # defaulting as ``_load_catalog_config``. We deliberately stay\n        # tolerant here (no new validation errors) because the goal is\n        # only to mirror the order shown by ``catalog list``; entries\n        # that ``_load_catalog_config`` would have rejected outright\n        # would have failed ``catalog list`` already.\n        def _is_removable_catalog_entry(item: Any) -> bool:\n            if not isinstance(item, dict):\n                return False\n            raw_url = item.get(\"url\")\n            if raw_url is None:\n                return False\n            return bool(str(raw_url).strip())\n\n        priority_pairs: List[Tuple[int, int]] = []","sourceCodeStart":531,"sourceCodeEnd":567,"githubUrl":"https://github.com/github/spec-kit/blob/bf88c9f9a82fa370c7a7257aa2b3cf10b457b65c/src/specify_cli/integrations/catalog.py#L531-L567","documentation":"Error \"Catalog config contains no catalog entries.\" thrown in github/spec-kit.","triggerScenarios":"Thrown at src/specify_cli/integrations/catalog.py:549 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add at least one catalog entry to the config before listing or removing."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bf88c9f9a82fa370c7a7257aa2b3cf10b457b65c","analyzedAt":"2026-08-14T19:43:37.150Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}