From 395d215dac192844f0604720f4fb9bad654da733 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Sun, 15 Feb 2026 02:09:58 +0530 Subject: [PATCH] fix(gateway): correct example format in board_ids field and update assertion logic in tests --- backend/app/schemas/gateway_coordination.py | 2 +- backend/tests/test_openapi_agent_role_tags.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/schemas/gateway_coordination.py b/backend/app/schemas/gateway_coordination.py index d7d36919..f9f5ef24 100644 --- a/backend/app/schemas/gateway_coordination.py +++ b/backend/app/schemas/gateway_coordination.py @@ -137,7 +137,7 @@ class GatewayLeadBroadcastRequest(SQLModel): board_ids: list[UUID] | None = Field( default=None, description="Optional explicit list of board IDs; omit for lead-scoped defaults.", - examples=[[ "11111111-1111-1111-1111-111111111111" ]], + examples=[["11111111-1111-1111-1111-111111111111"]], ) reply_tags: list[str] = Field( default_factory=_lead_reply_tags, diff --git a/backend/tests/test_openapi_agent_role_tags.py b/backend/tests/test_openapi_agent_role_tags.py index 299f9076..aaeb385a 100644 --- a/backend/tests/test_openapi_agent_role_tags.py +++ b/backend/tests/test_openapi_agent_role_tags.py @@ -193,7 +193,7 @@ def test_openapi_agent_schemas_include_discoverability_hints() -> None: assert "x-llm-intent" in component assert component["x-llm-intent"] == intent assert component.get("x-when-to-use") - assert component.get("x-required-actor") or component_name_is_query(schema_name) + assert component.get("x-required-actor") or schema_name_is_query(schema_name) def schema_name_is_query(schema_name: str) -> bool: