The comment and the associated video mentions using # Pydantic model for Customer, however a dataclass decorator was used in the code instead of inheriting from the Pydantic base model. While the code still works, it will not throw validation errors. Codebase can be updated for future learners.
The comment and the associated video mentions using # Pydantic model for Customer, however a dataclass decorator was used in the code instead of inheriting from the Pydantic base model. While the code still works, it will not throw validation errors. Codebase can be updated for future learners.