]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Fix example of license identifier in documentation (#14492)
authorjohnson-earls <125391700+johnson-earls@users.noreply.github.com>
Wed, 4 Feb 2026 13:29:02 +0000 (05:29 -0800)
committerGitHub <noreply@github.com>
Wed, 4 Feb 2026 13:29:02 +0000 (14:29 +0100)
Co-authored-by: svlandeg <svlandeg@github.com>
docs_src/metadata/tutorial001_1_py39.py
tests/test_tutorial/test_metadata/test_tutorial001_1.py

index a8f5b94588d9c952e5a131b2007981423c8b2bcc..419232d8616c9cfef512f27df03f65c79641ebf5 100644 (file)
@@ -28,7 +28,7 @@ app = FastAPI(
     },
     license_info={
         "name": "Apache 2.0",
-        "identifier": "MIT",
+        "identifier": "Apache-2.0",
     },
 )
 
index 40878ccfd43824b56a59f4b00e43e163becab7b0..10cb35c546499a02fc6f8fcc1ff3c05177dd7c9c 100644 (file)
@@ -28,7 +28,7 @@ def test_openapi_schema():
             },
             "license": {
                 "name": "Apache 2.0",
-                "identifier": "MIT",
+                "identifier": "Apache-2.0",
             },
             "version": "0.0.1",
         },