Skip to content

Commit f15a9bf

Browse files
gerrod3dralley
authored andcommitted
Fix duplicate operationID for simple PyPI endpoints
fixes: #594
1 parent fc05e35 commit f15a9bf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES/594.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed duplicate operationID for generated PyPI simple endpoints schema.

pulp_python/app/pypi/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def parse_url(link):
214214
packages = (parse_url(link) for link in links)
215215
return StreamingHttpResponse(write_simple_detail(package, packages, streamed=True))
216216

217-
@extend_schema(summary="Get package simple page")
217+
@extend_schema(operation_id="pypi_simple_package_read", summary="Get package simple page")
218218
def retrieve(self, request, path, package):
219219
"""Retrieves the simple api html page for a package."""
220220
distro, repo_ver, content = self.get_drvc(path)

0 commit comments

Comments
 (0)