Skip to content
Discussion options

You must be logged in to vote

This is a common source of confusion, but exclude parameter is only applicable for serialization, not validation.

It comes from Pydantic and here is a description of exclude parameter in Pydantic's docs:

The exclude and exclude_if parameters can be used to control which fields should be excluded from the model when exporting the model.

See: https://docs.pydantic.dev/latest/concepts/fields/#excluding-fields

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants