diff --git a/plugins/traction_innkeeper/traction_innkeeper/v1_0/connections/routes.py b/plugins/traction_innkeeper/traction_innkeeper/v1_0/connections/routes.py index e3a1a41d4..5a8446d60 100644 --- a/plugins/traction_innkeeper/traction_innkeeper/v1_0/connections/routes.py +++ b/plugins/traction_innkeeper/traction_innkeeper/v1_0/connections/routes.py @@ -9,13 +9,22 @@ from acapy_agent.protocols.connections.v1_0.routes import ( ConnectionsConnIdMatchInfoSchema, InvitationResultSchema) from acapy_agent.storage.error import StorageNotFoundError +from marshmallow import fields LOGGER = logging.getLogger(__name__) +class InvitationResponseSchema(InvitationResultSchema): + """Response schema for a previous connection invitation.""" + + alias = fields.Str( + required=False, + allow_none=True, + metadata={"description": "Optional alias for the connection", "example": "Bob"}, + ) @docs(tags=["connection"], summary="Fetch connection invitation") @match_info_schema(ConnectionsConnIdMatchInfoSchema()) -@response_schema(InvitationResultSchema(), 200, description="") +@response_schema(InvitationResponseSchema(), 200, description="") @tenant_authentication async def connections_invitation(request: web.BaseRequest): """Handle fetching invitation associated with a single connection record.""" @@ -97,4 +106,4 @@ async def register(app: web.Application): def post_process_routes(app: web.Application): - pass + pass \ No newline at end of file