So I’ve been coding along with Sanjeev’s Python API development and I’m stuck on hour 5 because the Fast API package has started using Pydantic V2.
My issue is the code below is causing errors.
class Post(PostBase):
title: str
content: str
published: bool
class Config:
orm_mode = True
I googled the errors and I found out that it’s because changes were made to Pydantic. Pls, I’m a beginner and documentations still overwhelm me. What is the simple solution to my plight?