fix(gateway): correct example format in board_ids field and update assertion logic in tests

This commit is contained in:
Abhimanyu Saharan
2026-02-15 02:09:58 +05:30
parent 730d80e422
commit 395d215dac
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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: