How to merge multiple models into one common schema in Fastapi
I recently started studyingfastapi and can’t serialize response schema. Got two model object, but I could not bring it to a specific scheme. Without using response_model, I just get the following response: { "OcProduct": { "viewed": 617, "product_id": 160, "model": "name", "stock_status_id": 6, "image": "catalog/product/test.jpg", "status": 1 }, "OcStockStatu": { "name": "Out Of Stock", "language_id":… Read More How to merge multiple models into one common schema in Fastapi