Use alias when model dumping a response (#613)
This commit is contained in:
parent
b5c68baa05
commit
3ba60fdaab
2 changed files with 2 additions and 2 deletions
|
|
@ -376,7 +376,7 @@ class ServerSession:
|
|||
# Send response if any
|
||||
if response and self.write_stream:
|
||||
if hasattr(response, "model_dump_json"):
|
||||
response_data = response.model_dump_json(exclude_none=True)
|
||||
response_data = response.model_dump_json(exclude_none=True, by_alias=True)
|
||||
else:
|
||||
response_data = json.dumps(response)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade-mcp-server"
|
||||
version = "1.2.0"
|
||||
version = "1.2.1"
|
||||
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "Arcade.dev" }]
|
||||
|
|
|
|||
Loading…
Reference in a new issue