Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak documentation of Field.exclude #7086

Merged
merged 1 commit into from Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pydantic/fields.py
Expand Up @@ -92,7 +92,7 @@ class FieldInfo(_repr.Representation):
title: The title of the field.
description: The description of the field.
examples: List of examples of the field.
exclude: Whether to exclude the field from the model schema.
exclude: Whether to exclude the field from the model serialization.
discriminator: Field name for discriminating the type in a tagged union.
json_schema_extra: Dictionary of extra JSON schema properties.
frozen: Whether the field is frozen.
Expand Down Expand Up @@ -713,7 +713,7 @@ def Field( # noqa: C901
title: Human-readable title.
description: Human-readable description.
examples: Example values for this field.
exclude: Whether to exclude the field from the model schema.
exclude: Whether to exclude the field from the model serialization.
discriminator: Field name for discriminating the type in a tagged union.
json_schema_extra: Any additional JSON schema data for the schema property.
frozen: Whether the field is frozen.
Expand Down