]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
Fix pydantic unions section moved
authorYurii Motov <yurii.motov.monte@gmail.com>
Fri, 10 Jul 2026 16:23:05 +0000 (18:23 +0200)
committerYurii Motov <yurii.motov.monte@gmail.com>
Fri, 10 Jul 2026 16:23:05 +0000 (18:23 +0200)
docs/en/docs/tutorial/extra-models.md

index 565c74fec5d81f6d0a6512049a2fde712919defe..b8332ff56a15af187e05833b96ce80a3f722116a 100644 (file)
@@ -166,7 +166,7 @@ To do that, use the standard Python type hint [`typing.Union`](https://docs.pyth
 
 /// note
 
-When defining a [`Union`](https://pydantic.dev/docs/validation/latest/concepts/types/#unions), include the most specific type first, followed by the less specific type. In the example below, the more specific `PlaneItem` comes before `CarItem` in `Union[PlaneItem, CarItem]`.
+When defining a [`Union`](https://pydantic.dev/docs/validation/latest/concepts/unions/), include the most specific type first, followed by the less specific type. In the example below, the more specific `PlaneItem` comes before `CarItem` in `Union[PlaneItem, CarItem]`.
 
 ///