From 3a76ad5065a0b5220ca4e200dce60bae33ca768e Mon Sep 17 00:00:00 2001 From: Mathias02 <39374601+Mathias02@users.noreply.github.com> Date: Thu, 3 Apr 2025 23:51:16 +0200 Subject: [PATCH 1/2] feat!unsanitized url lead to nowhere --- dist/index.css | 6 + dist/index.html | 65 +++++++++ dist/swagger-ui-bundle.js | 2 +- dist/swagger-ui-bundle.js.LICENSE.txt | 106 +++++++++++++++ dist/swagger-ui-es-bundle-core.js | 2 +- dist/swagger-ui-es-bundle-core.js.LICENSE.txt | 35 +++++ dist/swagger-ui-es-bundle-core.js.map | 2 +- dist/swagger-ui-es-bundle.js | 2 +- dist/swagger-ui-es-bundle.js.LICENSE.txt | 106 +++++++++++++++ ...wagger-ui-standalone-preset.js.LICENSE.txt | 22 +++ dist/swagger-ui.js | 2 +- dist/swagger-ui.js.map | 2 +- .../webpack-getting-started/src/index.js | 46 ++++++- .../src/swagger-config.yaml | 126 ++++++++++++++---- package-lock.json | 16 ++- package.json | 7 +- server.js | 17 +++ 17 files changed, 527 insertions(+), 37 deletions(-) create mode 100644 dist/swagger-ui-bundle.js.LICENSE.txt create mode 100644 dist/swagger-ui-es-bundle-core.js.LICENSE.txt create mode 100644 dist/swagger-ui-es-bundle.js.LICENSE.txt create mode 100644 dist/swagger-ui-standalone-preset.js.LICENSE.txt create mode 100644 server.js diff --git a/dist/index.css b/dist/index.css index f2376fdaa84..d77ab969d33 100644 --- a/dist/index.css +++ b/dist/index.css @@ -14,3 +14,9 @@ body { margin: 0; background: #fafafa; } +/* Add this to index.css or your custom stylesheet */ +.swagger-ui .curl-command { + white-space: pre-wrap; + word-break: break-word; + } + \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 84ae62d3dad..0f0144c8a88 100644 --- a/dist/index.html +++ b/dist/index.html @@ -8,6 +8,8 @@ + +
@@ -15,5 +17,68 @@ + + + + +