Skip to content

Commit cbb69b6

Browse files
authored
Fix nested JSON tests (#559)
* copied from main Signed-off-by: Madhav Kandukuri <[email protected]> * fix failing tests Signed-off-by: Madhav Kandukuri <[email protected]> * fix bug Signed-off-by: Madhav Kandukuri <[email protected]> * revert ui Signed-off-by: Madhav Kandukuri <[email protected]> --------- Signed-off-by: Madhav Kandukuri <[email protected]>
1 parent eb55278 commit cbb69b6

File tree

2 files changed

+949
-244
lines changed

2 files changed

+949
-244
lines changed

mcpgateway/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class ToolCreate(BaseModel):
302302
gateway_id (Optional[str]): ID of the gateway for the tool.
303303
"""
304304

305-
model_config = ConfigDict(str_strip_whitespace=True)
305+
model_config = ConfigDict(str_strip_whitespace=True, populate_by_name=True)
306306

307307
name: str = Field(..., description="Unique name for the tool")
308308
url: Union[str, AnyHttpUrl] = Field(None, description="Tool endpoint URL")

0 commit comments

Comments
 (0)