diff --git a/docs/migrations/version-3-to-4.md b/docs/migrations/version-3-to-4.md index 525b445ba1..e21906dd62 100644 --- a/docs/migrations/version-3-to-4.md +++ b/docs/migrations/version-3-to-4.md @@ -95,6 +95,10 @@ Console.WriteLine(dateTime2); Models are aiming to be >= v3.7 compliant. +### Unique types in unions + +In v4, unions types are rendered unique, meaning you will never see `str | str` but just `str`. + ### Pydantic now follows v2 instead of v1 Reference: https://docs.pydantic.dev/2.6/migration/