github/spec-kit · error · IntegrationValidationError

Invalid catalog entry at index {idx} in {config_path}: 'prio

Error message

Invalid catalog entry at index {idx} in {config_path}: 'priority' must be an integer, got {type(raw_priority).__name__}.

What it means

Error "Invalid catalog entry at index {idx} in {config_path}: 'priority' must be an integer, got {type(raw_priority).__name__}." thrown in github/spec-kit.

Source

Thrown at src/specify_cli/integrations/catalog.py:462

            if not existing_url:
                continue
            # Re-run the same URL validation used when loading, so a corrupt
            # entry surfaces here instead of at the next `integration` call.
            try:
                self._validate_catalog_url(existing_url)
            except IntegrationCatalogError as exc:
                raise IntegrationValidationError(
                    f"Invalid catalog entry at index {idx} in {config_path}: {exc}"
                ) from exc
            if existing_url == url:
                raise IntegrationValidationError(
                    f"Catalog URL already configured: {url}"
                )
            valid_catalog_count += 1
            if "priority" in cat:
                raw_priority = cat.get("priority")
                if isinstance(raw_priority, bool):
                    raise IntegrationValidationError(
                        f"Invalid catalog entry at index {idx} in {config_path}: "
                        f"'priority' must be an integer, got "
                        f"{type(raw_priority).__name__}."
                    )
                try:
                    normalized_priority = int(raw_priority)
                except (TypeError, ValueError, OverflowError):
                    # OverflowError: int(float("inf")) — a ``priority: .inf``.
                    raise IntegrationValidationError(
                        f"Invalid catalog entry at index {idx} in {config_path}: "
                        f"'priority' must be an integer, got "
                        f"{raw_priority!r}."
                    ) from None
                existing_priorities.append(normalized_priority)
            else:
                # Match `_load_catalog_config()`'s defaulting rule so the new
                # entry still sorts after implicit-priority siblings.
                existing_priorities.append(idx + 1)

View on GitHub (pinned to bf88c9f9a8)

Solutions

  1. Set the catalog entry 'priority' to an integer in the config file.

When it happens

Trigger: Thrown at src/specify_cli/integrations/catalog.py:462 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of github/spec-kit@bf88c9f9a8 (2026-08-14). Data as JSON: /api/errors/b658d7f63e021d1a. Report an issue: GitHub.