docs(guide/response-model): fix dead pydantic v1 #modeldict link by sanjibani · Pull Request #15821 · fastapi/fastapi · GitHub
Skip to content

docs(guide/response-model): fix dead pydantic v1 #modeldict link#15821

Open
sanjibani wants to merge 1 commit into
fastapi:masterfrom
sanjibani:docs/fix-pydantic-v1-extra-types-link-in-release-notes
Open

docs(guide/response-model): fix dead pydantic v1 #modeldict link#15821
sanjibani wants to merge 1 commit into
fastapi:masterfrom
sanjibani:docs/fix-pydantic-v1-extra-types-link-in-release-notes

Conversation

@sanjibani

Copy link
Copy Markdown

Replaces https://docs.pydantic.dev/1.10/usage/exporting_models/#modeldict (404 — pydantic v1 docs retired) with https://docs.pydantic.dev/latest/concepts/serialization/#model-dict (200). Anchor updated to v2 hyphenated slug.

`https://docs.pydantic.dev/1.10/usage/exporting_models/#modeldict` (404) —
the pydantic v1 docs site (docs.pydantic.dev/1.10/) was retired after the
v2 docs migration.

Replaced with `https://docs.pydantic.dev/latest/concepts/serialization/#model-dict`
(200) — the current canonical home for the equivalent concept in pydantic v2.
Also updated the anchor from `#modeldict` to `#model-dict` (v2 docs use
hyphenated heading slugs).
@github-actions github-actions Bot added the docs Documentation about how to use FastAPI label Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@mohamedtaqysalmi mohamedtaqysalmi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating the response-model exclude_defaults/none reference from Pydantic v1 modeldict to latest serialization docs is the right target URL. Small but high-traffic page — this prevents readers hitting 404s when configuring response_model_exclude_* flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation about how to use FastAPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants