Method
get_schema
(
self, request: Request | None = None, public: bool = False
)
Source from the content-addressed store, hash-verified
| 58 | super().__init__(**kwargs) # type: ignore[no-untyped-call] |
| 59 | |
| 60 | def get_schema( |
| 61 | self, request: Request | None = None, public: bool = False |
| 62 | ) -> dict[str, Any]: |
| 63 | schema: dict[str, Any] = super().get_schema(request, public) # type: ignore[no-untyped-call] |
| 64 | return { |
| 65 | "$schema": "https://spec.openapis.org/oas/3.1/dialect/base", |
| 66 | **schema, |
| 67 | } |
| 68 | |
| 69 | |
| 70 | class MCPSchemaGenerator(SchemaGenerator): |
Tested by
no test coverage detected