From ee13aeb8e4facf23449297a0e01e62d52bdc5151 Mon Sep 17 00:00:00 2001 From: rxxbyy Date: Wed, 25 Mar 2026 10:59:11 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20clear=20error=20message=20?= =?UTF-8?q?for=20missing=20route=20tags=20in=20`app/main.py`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/app/main.py b/backend/app/main.py index 9a95801e74..bb88669f87 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -8,6 +8,11 @@ def custom_generate_unique_id(route: APIRoute) -> str: + if not route.tags: + raise ValueError( + f"Route '{route.name}' is missing a tag. Each route " + "must have at least one tag for client generation." + ) return f"{route.tags[0]}-{route.name}"