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
|
# Send response if any
|
||||||
if response and self.write_stream:
|
if response and self.write_stream:
|
||||||
if hasattr(response, "model_dump_json"):
|
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:
|
else:
|
||||||
response_data = json.dumps(response)
|
response_data = json.dumps(response)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "arcade-mcp-server"
|
name = "arcade-mcp-server"
|
||||||
version = "1.2.0"
|
version = "1.2.1"
|
||||||
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
|
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "Arcade.dev" }]
|
authors = [{ name = "Arcade.dev" }]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue