Skip to content

Commit b028309

Browse files
authored
[BUG]: FastAPI operations id are now unique (#3522)
1 parent 00ce32f commit b028309

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: chromadb/server/fastapi/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def use_route_names_as_operation_ids(app: _FastAPI) -> None:
101101
"""
102102
for route in app.routes:
103103
if isinstance(route, APIRoute):
104-
route.operation_id = route.name
104+
route.operation_id = route.name + ("-v2" if "v2" in route.path else "-v1")
105105

106106

107107
async def add_trace_id_to_response_middleware(

0 commit comments

Comments
 (0)