You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix MongoDB ObjectID and datetime serialization issues
- Enable MongoJSONEncoder in server.py to handle MongoDB object serialization
- Remove unused TestDataJSONEncoder from test_data_routes.py
- Ensure proper JSON serialization of ObjectIDs and datetime objects
- Maintain test compatibility by keeping to_dict() methods returning datetime objects
- All 288 tests passing with 91% code coverage
This fixes serialization errors when MongoDB ObjectIDs and datetime objects
are returned in API responses, ensuring proper JSON encoding for all endpoints.
0 commit comments