Skip to content

Commit 5e249bb

Browse files
committed
fix: Resolve APIKeySecurityScheme parsing failed
Fixes #220
1 parent e397392 commit 5e249bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/a2a/server/apps/jsonrpc/jsonrpc_app.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,11 @@ async def _handle_get_agent_card(self, request: Request) -> JSONResponse:
375375
# The public agent card is a direct serialization of the agent_card
376376
# provided at initialization.
377377
return JSONResponse(
378-
self.agent_card.model_dump(mode='json', exclude_none=True)
378+
self.agent_card.model_dump(
379+
mode='json',
380+
exclude_none=True,
381+
by_alias=True,
382+
)
379383
)
380384

381385
async def _handle_get_authenticated_extended_agent_card(
@@ -392,7 +396,9 @@ async def _handle_get_authenticated_extended_agent_card(
392396
if self.extended_agent_card:
393397
return JSONResponse(
394398
self.extended_agent_card.model_dump(
395-
mode='json', exclude_none=True
399+
mode='json',
400+
exclude_none=True,
401+
by_alias=True,
396402
)
397403
)
398404
# If supportsAuthenticatedExtendedCard is true, but no specific

0 commit comments

Comments
 (0)