fix(gateway): correct example format in board_ids field and update assertion logic in tests
This commit is contained in:
@@ -137,7 +137,7 @@ class GatewayLeadBroadcastRequest(SQLModel):
|
|||||||
board_ids: list[UUID] | None = Field(
|
board_ids: list[UUID] | None = Field(
|
||||||
default=None,
|
default=None,
|
||||||
description="Optional explicit list of board IDs; omit for lead-scoped defaults.",
|
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(
|
reply_tags: list[str] = Field(
|
||||||
default_factory=_lead_reply_tags,
|
default_factory=_lead_reply_tags,
|
||||||
|
|||||||
@@ -193,7 +193,7 @@ def test_openapi_agent_schemas_include_discoverability_hints() -> None:
|
|||||||
assert "x-llm-intent" in component
|
assert "x-llm-intent" in component
|
||||||
assert component["x-llm-intent"] == intent
|
assert component["x-llm-intent"] == intent
|
||||||
assert component.get("x-when-to-use")
|
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:
|
def schema_name_is_query(schema_name: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user