Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/+fix-openapi-logo-url.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed the url of the generated openapi schemas when using `pulpcore-manager openapi`.
4 changes: 1 addition & 3 deletions pulpcore/openapi/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

def add_info_hook(result, generator, request, **kwargs):
# Basically I'm doing it to get pulp logo at redoc page
result["info"]["x-logo"] = {
"url": "https://pulpproject.org/pulp-docs/docs/assets/pulp_logo_icon.svg"
}
result["info"]["x-logo"] = {"url": "https://pulpproject.org/assets/pulp_logo_icon.svg"}

# Adding plugin version config
result["info"]["x-pulp-app-versions"] = {app.label: app.version for app in request.apps}
Expand Down