Skip to content

Commit 6a5482f

Browse files
committed
fix: openapi working in sub-app
1 parent c89c4cd commit 6a5482f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
import logging
2-
import sys
32

43
from typing import Any
54

65
from fastapi import FastAPI
76

8-
9-
if sys.version_info < (3, 12): # pragma: no cover
10-
from typing_extensions import override
11-
else: # pragma: no cover
12-
from typing import override
13-
147
from a2a.server.apps.jsonrpc.jsonrpc_app import (
158
CallContextBuilder,
169
JSONRPCApplication,
@@ -32,8 +25,8 @@ class A2AFastAPI(FastAPI):
3225

3326
_a2a_components_added: bool = False
3427

35-
@override
3628
def openapi(self) -> dict[str, Any]:
29+
"""Generates the OpenAPI schema for the application."""
3730
openapi_schema = super().openapi()
3831
if not self._a2a_components_added:
3932
a2a_request_schema = A2ARequest.model_json_schema(

0 commit comments

Comments
 (0)