From 02187636ea324a1e6d92186397601b1f98e8570c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 28 Jun 2019 19:40:31 +0200 Subject: [PATCH] :memo: Update release notes --- docs/release-notes.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 38d4b063a..964279e0b 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -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`.