Skip to content

Commit 2442abc

Browse files
committed
keep original code structure
1 parent 9b67375 commit 2442abc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
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)