Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2442abc

Browse filesBrowse files
committed
keep original code structure
1 parent 9b67375 commit 2442abc
Copy full SHA for 2442abc

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎src/mcp/server/fastmcp/utilities/func_metadata.py

Copy file name to clipboardExpand all lines: src/mcp/server/fastmcp/utilities/func_metadata.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ def pre_parse_json(self, data: dict[str, Any]) -> dict[str, Any]:
104104
try:
105105
# Validate parsed value
106106
TypeAdapter(_field_info.annotation).validate_python(pre_parsed)
107-
new_data[field_name] = pre_parsed
108107
except ValidationError:
109108
continue # Parsed value is invalid - skip
109+
110+
new_data[field_name] = pre_parsed
110111
assert new_data.keys() == data.keys()
111112
return new_data
112113

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.