Skip to content

Commit

Permalink
fix(event-handler): upgrade Swagger UI to fix regressions (#3526)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca authored Dec 18, 2023
1 parent 30eafc0 commit cacadd3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def generate_swagger_html(spec: str, js_url: str, css_url: str) -> str:
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<meta
http-equiv="Cache-control"
content="no-cache, no-store, must-revalidate"
/>
<link rel="stylesheet" type="text/css" href="{css_url}">
</head>
Expand All @@ -34,6 +38,9 @@ def generate_swagger_html(spec: str, js_url: str, css_url: str) -> str:
docExpansion: "list",
deepLinking: true,
filter: true,
layout: "BaseLayout",
showExtensions: true,
showCommonExtensions: true,
spec: JSON.parse(`
{spec}
`.trim()),
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit cacadd3

Please sign in to comment.