]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Update release notes
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 28 Jun 2019 17:40:31 +0000 (19:40 +0200)
committerSebastián Ramírez <tiangolo@gmail.com>
Fri, 28 Jun 2019 17:40:31 +0000 (19:40 +0200)
docs/release-notes.md

index 38d4b063a987c4ba13f057fb3972efb1e5061ba7..964279e0bcf6af420391adb91a55501f24e77493 100644 (file)
@@ -1,5 +1,13 @@
 ## Latest changes
 
+* Fix OpenAPI/JSON Schema generation for two functions with the same name (in different modules) with the same composite bodies.
+    * Composite bodies' IDs are now based on path, not only on route name, as the auto-generated name uses the function names, that can be duplicated in different modules.
+    * The same new ID generation applies to response models.
+    * This also changes the generated title for those models.
+    * Only composite bodies and response models are affected because those are generated dynamically, they don't have a module (a Python file).
+    * This also adds the possibility of using `.include_router()` with the same `APIRouter` *multiple*  times, with different prefixes, e.g. `/api/v2` and `/api/latest`, and it will now work correctly.
+    * PR [#347](https://github.com/tiangolo/fastapi/pull/347).
+
 ## 0.31.0
 
 * Upgrade Pydantic supported version to `0.29.0`.