Skip to content

Commit 32d2d16

Browse files
fix(api): remove response_model=list from GET /instruments to avoid nested dict coercion error in FastAPI
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 8609aa5 commit 32d2d16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • benchmesh-serial-service/src/benchmesh_service

benchmesh-serial-service/src/benchmesh_service/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get_status():
157157
connected = sum(1 for did in device_ids if _manager.connections.get(did))
158158
return {"devices_total": total, "connected": connected, "disconnected": total - connected}
159159

160-
@app.get("/instruments", summary="List instruments and last IDN", response_model=list)
160+
@app.get("/instruments", summary="List instruments and last IDN")
161161
def list_instruments():
162162
global _manager
163163
items = []

0 commit comments

Comments
 (0)