Skip to content

Fix duplicate operationID for simple PyPI endpoints - #598

Merged
dralley merged 1 commit into
pulp:mainfrom
gerrod3:pypi-openapi-fix
Mar 10, 2023
Merged

Fix duplicate operationID for simple PyPI endpoints#598
dralley merged 1 commit into
pulp:mainfrom
gerrod3:pypi-openapi-fix

Conversation

@gerrod3

@gerrod3 gerrod3 commented Feb 22, 2023

Copy link
Copy Markdown
Contributor

fixes: #594
@jlsherrill Do you want this back-ported to 3.7?

return StreamingHttpResponse(write_simple_detail(package, packages, streamed=True))

@extend_schema(summary="Get package simple page")
@extend_schema(operation_id="pypi_simple_package_read", summary="Get package simple page")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any use in creating api docs for the pypi interface? In pulp_container, for example we deactivate the generation for the registry api completely. The api's are defined elsewhere and we can only get in trouble if there is any difference.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not, but I do use the generated schema in the tests.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we need it then i guess.

@jlsherrill

Copy link
Copy Markdown

i don't think it needs to be backported

@dralley

dralley commented Mar 10, 2023

Copy link
Copy Markdown
Contributor

Looks OK.

@dralley
dralley merged commit f15a9bf into pulp:main Mar 10, 2023
@gerrod3
gerrod3 deleted the pypi-openapi-fix branch March 10, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

duplicate operationId in generated openapi spec

4 participants