code: def test_openapi_schema():
      response = client.get("/openapi.json")
      assert response.status_code == 200, response.text
      assert response.json() == {
          "openapi": "3.1.0",
          "info": {"title": "FastAPI", "version": "0.1.0"},
          "paths": {
              "/a/": {
                  "get": {
                      "responses": {
                          "200": {
                              "description": "Successful Response",
                              "content": {
                                  "application/json": {"schema": {}}
                              },
                          }
                      },
                      "summary": "Get A",
                      "operationId": "get_a_a__get",
                  }
              },
              "/a/b/": {
                  "get": {
                      "responses": {
                          "200": {
                              "description": "Successful Response",
                              "content": {
                                  "application/json": {"schema": {}}
                              },
                          }
                      },
                      "summary": "Get B",
                      "operationId": "get_b_a_b__get",
                  }
              },
              "/a/b/c/": {
                  "get": {
                      "responses": {
                          "200": {
                              "description": "Successful Response",
                              "content": {
                                  "application/json": {"schema": {}}
                              },
                          }
                      },
                      "summary": "Get C",
                      "operationId": "get_c_a_b_c__get",
                  }
              },
          },
      }
  
file_path: fastapi/tests/test_custom_route_class.py
imports: import pytest
  from fastapi import APIRouter, FastAPI
  from fastapi.routing import APIRoute
  from fastapi.testclient import TestClient
  from starlette.routing import Route
label_desc: Use image node_id 6 for calling a global function with example usage: test_openapi_schema() without return types