Skip to content

Commit c38a652

Browse files
committed
Drop generated titles from the new schema expectations
1 parent 869d4d8 commit c38a652

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/server/mcpserver/test_func_metadata.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ def func_typing_dict() -> typing.Dict[str, str]: # noqa: UP006
301301
assert meta.output_schema == {
302302
"type": "object",
303303
"additionalProperties": {"type": "string"},
304-
"title": "func_typing_dictDictOutput",
305304
}
306305
result = meta.convert_result(func_typing_dict())
307306
assert isinstance(result, CallToolResult)
@@ -784,9 +783,8 @@ def func_new_type() -> UserId:
784783
meta = func_metadata(func_new_type)
785784
assert meta.output_schema == {
786785
"type": "object",
787-
"properties": {"result": {"title": "Result", "type": "integer"}},
786+
"properties": {"result": {"type": "integer"}},
788787
"required": ["result"],
789-
"title": "func_new_typeOutput",
790788
}
791789
result = meta.convert_result(func_new_type())
792790
assert isinstance(result, CallToolResult)

0 commit comments

Comments
 (0)