{{ message }}
docs(guide/response-model): fix dead pydantic v1 #modeldict link#15821
Open
sanjibani wants to merge 1 commit into
Open
docs(guide/response-model): fix dead pydantic v1 #modeldict link#15821sanjibani wants to merge 1 commit into
sanjibani wants to merge 1 commit into
Conversation
`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).
Contributor
mohamedtaqysalmi
left a comment
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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