Pydantic BaseModel schema and instance serialization/deserialization not working
Pydantic BaseModel schema and instance serialization/deserialization not working Question: I am attempting to serialize a Pydantic model schema and then deserialize it in another script. The serialization process is working as expected, and it has created two JSON files: model.json and data.json. In test_save.py, I defined the MainModel schema and then serialized it along with …