From 1f205b7ae4d368a40280f1ee068e9d5c5960abfc Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Fri, 6 Mar 2026 12:10:41 -0300 Subject: [PATCH] Fixed logo-url on genearted openapi spec (cherry picked from commit 0128e58bf427a6b61c0a1f4017cb22dfe4612563) --- CHANGES/+fix-openapi-logo-url.bugfix | 1 + pulpcore/openapi/hooks.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 CHANGES/+fix-openapi-logo-url.bugfix diff --git a/CHANGES/+fix-openapi-logo-url.bugfix b/CHANGES/+fix-openapi-logo-url.bugfix new file mode 100644 index 00000000000..ac98121f4cd --- /dev/null +++ b/CHANGES/+fix-openapi-logo-url.bugfix @@ -0,0 +1 @@ +Fixed the url of the generated openapi schemas when using `pulpcore-manager openapi`. diff --git a/pulpcore/openapi/hooks.py b/pulpcore/openapi/hooks.py index e6b9d106563..791c36dbb63 100644 --- a/pulpcore/openapi/hooks.py +++ b/pulpcore/openapi/hooks.py @@ -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}