By default, Pydantic allows extra fields to be set on model instantiation. This can lead to some very 🌶️ spicy 🌶️ bugs as a typo can prevent data being saved correctly, and this won't be picked up by any code quality tools.
This change will raise a ValidationError if an unknown field is set (see the unit test).
By default, Pydantic allows extra fields to be set on model instantiation. This can lead to some very 🌶️ spicy 🌶️ bugs as a typo can prevent data being saved correctly, and this won't be picked up by any code quality tools.
This change will raise a
ValidationError
if an unknown field is set (see the unit test).