Skip to content

Commit 7ab54d3

Browse files
pedro-psbgerrod3
authored andcommitted
Fixed logo-url on genearted openapi spec
(cherry picked from commit 0128e58)
1 parent e132437 commit 7ab54d3

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed the url of the generated openapi schemas when using `pulpcore-manager openapi`.

pulpcore/openapi/hooks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33

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

108
if result["openapi"].split(".", maxsplit=2)[:-1] == ["3", "0"]:
119
result["info"]["license"].pop("identifier", None)

0 commit comments

Comments
 (0)