diff --git a/tests/test_openapi_examples.py b/tests/test_openapi_examples.py index b3f83ae23..77d275e97 100644 --- a/tests/test_openapi_examples.py +++ b/tests/test_openapi_examples.py @@ -5,7 +5,12 @@ from fastapi import Body, Cookie, FastAPI, Header, Path, Query from fastapi.testclient import TestClient from pydantic import BaseModel -app = FastAPI() +external_docs = { + "description": "External API documentation.", + "url": "https://docs.example.com/api-general" +} + +app = FastAPI(external_docs=external_docs) class Item(BaseModel): @@ -468,4 +473,8 @@ def test_openapi_schema(): }, } }, + "externalDocs": { + "description": "External API documentation.", + "url": "https://docs.example.com/api-general" + }, }