rapidoc 9.3.6 → 9.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.eslintrc +9 -1
  2. package/dist/index.html +1 -1
  3. package/dist/index.html.gz +0 -0
  4. package/dist/rapidoc-min.js +390 -376
  5. package/dist/rapidoc-min.js.LICENSE.txt +1 -8
  6. package/dist/rapidoc-min.js.LICENSE.txt.gz +0 -0
  7. package/dist/rapidoc-min.js.gz +0 -0
  8. package/dist/rapidoc-min.js.map +1 -1
  9. package/dist/rapidoc-min.js.map.gz +0 -0
  10. package/dist/rapidoc.js +436 -242
  11. package/dist/report.html +2 -2
  12. package/index.html +5 -4
  13. package/package.json +2 -2
  14. package/src/components/api-request.js +115 -77
  15. package/src/components/api-response.js +6 -7
  16. package/src/components/schema-table.js +6 -5
  17. package/src/components/schema-tree.js +9 -7
  18. package/src/json-schema-viewer.js +6 -2
  19. package/src/rapidoc-mini.js +20 -4
  20. package/src/rapidoc.js +33 -18
  21. package/src/styles/border-styles.js +2 -2
  22. package/src/styles/endpoint-styles.js +13 -10
  23. package/src/styles/flex-styles.js +1 -1
  24. package/src/styles/font-styles.js +13 -13
  25. package/src/styles/input-styles.js +2 -2
  26. package/src/styles/nav-styles.js +1 -1
  27. package/src/styles/schema-styles.js +12 -9
  28. package/src/templates/advance-search-template.js +2 -1
  29. package/src/templates/endpoint-template.js +29 -26
  30. package/src/templates/expanded-endpoint-template.js +4 -2
  31. package/src/templates/json-schema-viewer-template.js +3 -3
  32. package/src/templates/main-body-template.js +2 -2
  33. package/src/templates/navbar-template.js +6 -6
  34. package/src/templates/security-scheme-template.js +9 -7
  35. package/src/utils/common-utils.js +5 -9
  36. package/src/utils/schema-utils.js +65 -16
  37. package/src/utils/spec-parser.js +77 -7
  38. package/src/utils/theme.js +4 -6
package/dist/report.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>rapidoc [18 Sep 2024 at 17:55]</title>
6
+ <title>rapidoc [27 Sep 2024 at 13:09]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
@@ -31,7 +31,7 @@
31
31
  <body>
32
32
  <div id="app"></div>
33
33
  <script>
34
- window.chartData = [{"label":"rapidoc-min.js","isAsset":true,"statSize":1171772,"parsedSize":873309,"gzipSize":225319,"groups":[{"label":"node_modules","path":"./node_modules","statSize":188499,"groups":[{"label":"base64-js","path":"./node_modules/base64-js","statSize":3932,"groups":[{"id":526,"label":"index.js","path":"./node_modules/base64-js/index.js","statSize":3932,"parsedSize":1384,"gzipSize":745}],"parsedSize":1384,"gzipSize":745},{"label":"buffer","path":"./node_modules/buffer","statSize":58353,"groups":[{"id":287,"label":"index.js","path":"./node_modules/buffer/index.js","statSize":58353,"parsedSize":24953,"gzipSize":7023}],"parsedSize":24953,"gzipSize":7023},{"label":"drange/lib","path":"./node_modules/drange/lib","statSize":4918,"groups":[{"id":4,"label":"index.js","path":"./node_modules/drange/lib/index.js","statSize":4918,"parsedSize":2197,"gzipSize":689}],"parsedSize":2197,"gzipSize":689},{"label":"ieee754","path":"./node_modules/ieee754","statSize":2154,"groups":[{"id":251,"label":"index.js","path":"./node_modules/ieee754/index.js","statSize":2154,"parsedSize":875,"gzipSize":497}],"parsedSize":875,"gzipSize":497},{"label":"prismjs","path":"./node_modules/prismjs","statSize":98341,"groups":[{"label":"components","path":"./node_modules/prismjs/components","statSize":40143,"groups":[{"id":22,"label":"prism-bash.js","path":"./node_modules/prismjs/components/prism-bash.js","statSize":9170,"parsedSize":6148,"gzipSize":2955},{"id":651,"label":"prism-csharp.js","path":"./node_modules/prismjs/components/prism-csharp.js","statSize":13567,"parsedSize":6354,"gzipSize":2440},{"id":113,"label":"prism-css.js","path":"./node_modules/prismjs/components/prism-css.js","statSize":1746,"parsedSize":1265,"gzipSize":618},{"id":378,"label":"prism-go.js","path":"./node_modules/prismjs/components/prism-go.js","statSize":1159,"parsedSize":975,"gzipSize":610},{"id":784,"label":"prism-http.js","path":"./node_modules/prismjs/components/prism-http.js","statSize":4087,"parsedSize":1933,"gzipSize":875},{"id":976,"label":"prism-java.js","path":"./node_modules/prismjs/components/prism-java.js","statSize":4130,"parsedSize":2813,"gzipSize":1210},{"id":514,"label":"prism-json.js","path":"./node_modules/prismjs/components/prism-json.js","statSize":592,"parsedSize":454,"gzipSize":273},{"id":342,"label":"prism-python.js","path":"./node_modules/prismjs/components/prism-python.js","statSize":2508,"parsedSize":2118,"gzipSize":1081},{"id":83,"label":"prism-yaml.js","path":"./node_modules/prismjs/components/prism-yaml.js","statSize":3184,"parsedSize":1958,"gzipSize":854}],"parsedSize":24018,"gzipSize":9099},{"id":848,"label":"prism.js","path":"./node_modules/prismjs/prism.js","statSize":58198,"parsedSize":18822,"gzipSize":6956}],"parsedSize":42840,"gzipSize":15063},{"label":"randexp/lib","path":"./node_modules/randexp/lib","statSize":6293,"groups":[{"id":859,"label":"randexp.js","path":"./node_modules/randexp/lib/randexp.js","statSize":6293,"parsedSize":2287,"gzipSize":1043}],"parsedSize":2287,"gzipSize":1043},{"label":"repeat-string","path":"./node_modules/repeat-string","statSize":1213,"groups":[{"id":208,"label":"index.js","path":"./node_modules/repeat-string/index.js","statSize":1213,"parsedSize":315,"gzipSize":224}],"parsedSize":315,"gzipSize":224},{"label":"ret/lib","path":"./node_modules/ret/lib","statSize":11078,"groups":[{"id":96,"label":"index.js","path":"./node_modules/ret/lib/index.js","statSize":6514,"parsedSize":2019,"gzipSize":887},{"id":48,"label":"positions.js","path":"./node_modules/ret/lib/positions.js","statSize":297,"parsedSize":208,"gzipSize":124},{"id":23,"label":"sets.js","path":"./node_modules/ret/lib/sets.js","statSize":1665,"parsedSize":950,"gzipSize":287},{"id":205,"label":"types.js","path":"./node_modules/ret/lib/types.js","statSize":166,"parsedSize":88,"gzipSize":102},{"id":586,"label":"util.js","path":"./node_modules/ret/lib/util.js","statSize":2436,"parsedSize":1091,"gzipSize":670}],"parsedSize":4356,"gzipSize":1694},{"label":"xml-but-prettier/dist","path":"./node_modules/xml-but-prettier/dist","statSize":2217,"groups":[{"id":657,"label":"index.js","path":"./node_modules/xml-but-prettier/dist/index.js","statSize":2217,"parsedSize":907,"gzipSize":466}],"parsedSize":907,"gzipSize":466}],"parsedSize":80114,"gzipSize":26385},{"label":"src","path":"./src","statSize":983273,"groups":[{"id":138,"label":"index.js + 59 modules (concatenated)","path":"./src/index.js + 59 modules (concatenated)","statSize":983273,"parsedSize":782283,"gzipSize":195313,"concatenated":true,"groups":[{"label":"src","path":"./src/index.js + 59 modules (concatenated)/src","statSize":432050,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 59 modules (concatenated)/src/index.js","statSize":260,"parsedSize":206,"gzipSize":51,"inaccurateSizes":true},{"id":null,"label":"rapidoc.js","path":"./src/index.js + 59 modules (concatenated)/src/rapidoc.js","statSize":43231,"parsedSize":34394,"gzipSize":8587,"inaccurateSizes":true},{"id":null,"label":"rapidoc-mini.js","path":"./src/index.js + 59 modules (concatenated)/src/rapidoc-mini.js","statSize":14628,"parsedSize":11637,"gzipSize":2905,"inaccurateSizes":true},{"id":null,"label":"oauth-receiver.js","path":"./src/index.js + 59 modules (concatenated)/src/oauth-receiver.js","statSize":1984,"parsedSize":1578,"gzipSize":394,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer.js","path":"./src/index.js + 59 modules (concatenated)/src/json-schema-viewer.js","statSize":12001,"parsedSize":9547,"gzipSize":2383,"inaccurateSizes":true},{"label":"styles","path":"./src/index.js + 59 modules (concatenated)/src/styles","statSize":29149,"groups":[{"id":null,"label":"font-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/font-styles.js","statSize":6320,"parsedSize":5028,"gzipSize":1255,"inaccurateSizes":true},{"id":null,"label":"input-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/input-styles.js","statSize":4859,"parsedSize":3865,"gzipSize":965,"inaccurateSizes":true},{"id":null,"label":"flex-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/flex-styles.js","statSize":192,"parsedSize":152,"gzipSize":38,"inaccurateSizes":true},{"id":null,"label":"table-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/table-styles.js","statSize":1201,"parsedSize":955,"gzipSize":238,"inaccurateSizes":true},{"id":null,"label":"endpoint-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/endpoint-styles.js","statSize":4874,"parsedSize":3877,"gzipSize":968,"inaccurateSizes":true},{"id":null,"label":"prism-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/prism-styles.js","statSize":1469,"parsedSize":1168,"gzipSize":291,"inaccurateSizes":true},{"id":null,"label":"tab-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/tab-styles.js","statSize":919,"parsedSize":731,"gzipSize":182,"inaccurateSizes":true},{"id":null,"label":"nav-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/nav-styles.js","statSize":4404,"parsedSize":3503,"gzipSize":874,"inaccurateSizes":true},{"id":null,"label":"info-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/info-styles.js","statSize":343,"parsedSize":272,"gzipSize":68,"inaccurateSizes":true},{"id":null,"label":"custom-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/custom-styles.js","statSize":202,"parsedSize":160,"gzipSize":40,"inaccurateSizes":true},{"id":null,"label":"border-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/border-styles.js","statSize":402,"parsedSize":319,"gzipSize":79,"inaccurateSizes":true},{"id":null,"label":"schema-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/schema-styles.js","statSize":2406,"parsedSize":1914,"gzipSize":477,"inaccurateSizes":true},{"id":null,"label":"dialog-box-styles.js","path":"./src/index.js + 59 modules (concatenated)/src/styles/dialog-box-styles.js","statSize":1558,"parsedSize":1239,"gzipSize":309,"inaccurateSizes":true}],"parsedSize":23190,"gzipSize":5790,"inaccurateSizes":true},{"label":"utils","path":"./src/index.js + 59 modules (concatenated)/src/utils","statSize":81771,"groups":[{"id":null,"label":"common-utils.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/common-utils.js","statSize":6282,"parsedSize":4997,"gzipSize":1247,"inaccurateSizes":true},{"id":null,"label":"spec-parser.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/spec-parser.js","statSize":18218,"parsedSize":14494,"gzipSize":3618,"inaccurateSizes":true},{"id":null,"label":"schema-utils.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/schema-utils.js","statSize":42951,"parsedSize":34171,"gzipSize":8531,"inaccurateSizes":true},{"id":null,"label":"theme.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/theme.js","statSize":12462,"parsedSize":9914,"gzipSize":2475,"inaccurateSizes":true},{"id":null,"label":"color-utils.js","path":"./src/index.js + 59 modules (concatenated)/src/utils/color-utils.js","statSize":1858,"parsedSize":1478,"gzipSize":369,"inaccurateSizes":true}],"parsedSize":65056,"gzipSize":16242,"inaccurateSizes":true},{"label":"templates","path":"./src/index.js + 59 modules (concatenated)/src/templates","statSize":110889,"groups":[{"id":null,"label":"main-body-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/main-body-template.js","statSize":5303,"parsedSize":4219,"gzipSize":1053,"inaccurateSizes":true},{"id":null,"label":"security-scheme-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/security-scheme-template.js","statSize":29099,"parsedSize":23150,"gzipSize":5780,"inaccurateSizes":true},{"id":null,"label":"server-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/server-template.js","statSize":4622,"parsedSize":3677,"gzipSize":918,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/json-schema-viewer-template.js","statSize":8396,"parsedSize":6679,"gzipSize":1667,"inaccurateSizes":true},{"id":null,"label":"expanded-endpoint-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/expanded-endpoint-template.js","statSize":11564,"parsedSize":9200,"gzipSize":2297,"inaccurateSizes":true},{"id":null,"label":"focused-endpoint-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/focused-endpoint-template.js","statSize":4594,"parsedSize":3654,"gzipSize":912,"inaccurateSizes":true},{"id":null,"label":"overview-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/overview-template.js","statSize":3781,"parsedSize":3008,"gzipSize":751,"inaccurateSizes":true},{"id":null,"label":"navbar-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/navbar-template.js","statSize":13496,"parsedSize":10737,"gzipSize":2680,"inaccurateSizes":true},{"id":null,"label":"endpoint-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/endpoint-template.js","statSize":12888,"parsedSize":10253,"gzipSize":2560,"inaccurateSizes":true},{"id":null,"label":"header-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/header-template.js","statSize":2617,"parsedSize":2082,"gzipSize":519,"inaccurateSizes":true},{"id":null,"label":"advance-search-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/advance-search-template.js","statSize":3489,"parsedSize":2775,"gzipSize":693,"inaccurateSizes":true},{"id":null,"label":"code-samples-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/code-samples-template.js","statSize":2040,"parsedSize":1623,"gzipSize":405,"inaccurateSizes":true},{"id":null,"label":"callback-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/callback-template.js","statSize":4592,"parsedSize":3653,"gzipSize":912,"inaccurateSizes":true},{"id":null,"label":"components-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/components-template.js","statSize":3455,"parsedSize":2748,"gzipSize":686,"inaccurateSizes":true},{"id":null,"label":"logo-template.js","path":"./src/index.js + 59 modules (concatenated)/src/templates/logo-template.js","statSize":953,"parsedSize":758,"gzipSize":189,"inaccurateSizes":true}],"parsedSize":88222,"gzipSize":22026,"inaccurateSizes":true},{"label":"components","path":"./src/index.js + 59 modules (concatenated)/src/components","statSize":138137,"groups":[{"id":null,"label":"json-tree.js","path":"./src/index.js + 59 modules (concatenated)/src/components/json-tree.js","statSize":4854,"parsedSize":3861,"gzipSize":964,"inaccurateSizes":true},{"id":null,"label":"schema-tree.js","path":"./src/index.js + 59 modules (concatenated)/src/components/schema-tree.js","statSize":16294,"parsedSize":12963,"gzipSize":3236,"inaccurateSizes":true},{"id":null,"label":"api-request.js","path":"./src/index.js + 59 modules (concatenated)/src/components/api-request.js","statSize":79169,"parsedSize":62986,"gzipSize":15725,"inaccurateSizes":true},{"id":null,"label":"api-response.js","path":"./src/index.js + 59 modules (concatenated)/src/components/api-response.js","statSize":16430,"parsedSize":13071,"gzipSize":3263,"inaccurateSizes":true},{"id":null,"label":"dialog-box.js","path":"./src/index.js + 59 modules (concatenated)/src/components/dialog-box.js","statSize":1794,"parsedSize":1427,"gzipSize":356,"inaccurateSizes":true},{"id":null,"label":"tag-input.js","path":"./src/index.js + 59 modules (concatenated)/src/components/tag-input.js","statSize":3588,"parsedSize":2854,"gzipSize":712,"inaccurateSizes":true},{"id":null,"label":"schema-table.js","path":"./src/index.js + 59 modules (concatenated)/src/components/schema-table.js","statSize":16008,"parsedSize":12735,"gzipSize":3179,"inaccurateSizes":true}],"parsedSize":109900,"gzipSize":27438,"inaccurateSizes":true}],"parsedSize":343735,"gzipSize":85820,"inaccurateSizes":true},{"label":"node_modules","path":"./src/index.js + 59 modules (concatenated)/node_modules","statSize":551223,"groups":[{"label":"lit","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit","statSize":398,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/index.js","statSize":157,"parsedSize":124,"gzipSize":31,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives","statSize":241,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives/unsafe-html.js","statSize":89,"parsedSize":70,"gzipSize":17,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives/guard.js","statSize":77,"parsedSize":61,"gzipSize":15,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit/directives/live.js","statSize":75,"parsedSize":59,"gzipSize":14,"inaccurateSizes":true}],"parsedSize":191,"gzipSize":47,"inaccurateSizes":true}],"parsedSize":316,"gzipSize":79,"inaccurateSizes":true},{"label":"marked/lib","path":"./src/index.js + 59 modules (concatenated)/node_modules/marked/lib","statSize":79710,"groups":[{"id":null,"label":"marked.esm.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/marked/lib/marked.esm.js","statSize":79710,"parsedSize":63416,"gzipSize":15833,"inaccurateSizes":true}],"parsedSize":63416,"gzipSize":15833,"inaccurateSizes":true},{"label":"@lit/reactive-element","path":"./src/index.js + 59 modules (concatenated)/node_modules/@lit/reactive-element","statSize":7525,"groups":[{"id":null,"label":"reactive-element.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/@lit/reactive-element/reactive-element.js","statSize":5936,"parsedSize":4722,"gzipSize":1179,"inaccurateSizes":true},{"id":null,"label":"css-tag.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/@lit/reactive-element/css-tag.js","statSize":1589,"parsedSize":1264,"gzipSize":315,"inaccurateSizes":true}],"parsedSize":5986,"gzipSize":1494,"inaccurateSizes":true},{"label":"lit-html","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html","statSize":11509,"groups":[{"id":null,"label":"lit-html.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/lit-html.js","statSize":7310,"parsedSize":5815,"gzipSize":1452,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives","statSize":2348,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives/unsafe-html.js","statSize":845,"parsedSize":672,"gzipSize":167,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives/guard.js","statSize":578,"parsedSize":459,"gzipSize":114,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directives/live.js","statSize":925,"parsedSize":735,"gzipSize":183,"inaccurateSizes":true}],"parsedSize":1868,"gzipSize":466,"inaccurateSizes":true},{"id":null,"label":"directive.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directive.js","statSize":475,"parsedSize":377,"gzipSize":94,"inaccurateSizes":true},{"id":null,"label":"directive-helpers.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-html/directive-helpers.js","statSize":1376,"parsedSize":1094,"gzipSize":273,"inaccurateSizes":true}],"parsedSize":9156,"gzipSize":2286,"inaccurateSizes":true},{"label":"lit-element","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-element","statSize":1120,"groups":[{"id":null,"label":"lit-element.js","path":"./src/index.js + 59 modules (concatenated)/node_modules/lit-element/lit-element.js","statSize":1120,"parsedSize":891,"gzipSize":222,"inaccurateSizes":true}],"parsedSize":891,"gzipSize":222,"inaccurateSizes":true},{"label":"@apitools/openapi-parser/dist","path":"./src/index.js + 59 modules (concatenated)/node_modules/@apitools/openapi-parser/dist","statSize":450961,"groups":[{"id":null,"label":"openapi-parser.mjs","path":"./src/index.js + 59 modules (concatenated)/node_modules/@apitools/openapi-parser/dist/openapi-parser.mjs","statSize":450961,"parsedSize":358780,"gzipSize":89576,"inaccurateSizes":true}],"parsedSize":358780,"gzipSize":89576,"inaccurateSizes":true}],"parsedSize":438547,"gzipSize":109492,"inaccurateSizes":true}]}],"parsedSize":782283,"gzipSize":195313}],"isInitialByEntrypoint":{"main":true}}];
34
+ window.chartData = [{"label":"rapidoc-min.js","isAsset":true,"statSize":1164880,"parsedSize":861522,"gzipSize":217230,"groups":[{"label":"node_modules","path":"./node_modules","statSize":188499,"groups":[{"label":"base64-js","path":"./node_modules/base64-js","statSize":3932,"groups":[{"id":526,"label":"index.js","path":"./node_modules/base64-js/index.js","statSize":3932,"parsedSize":1384,"gzipSize":745}],"parsedSize":1384,"gzipSize":745},{"label":"buffer","path":"./node_modules/buffer","statSize":58353,"groups":[{"id":287,"label":"index.js","path":"./node_modules/buffer/index.js","statSize":58353,"parsedSize":24953,"gzipSize":7022}],"parsedSize":24953,"gzipSize":7022},{"label":"drange/lib","path":"./node_modules/drange/lib","statSize":4918,"groups":[{"id":4,"label":"index.js","path":"./node_modules/drange/lib/index.js","statSize":4918,"parsedSize":2197,"gzipSize":689}],"parsedSize":2197,"gzipSize":689},{"label":"ieee754","path":"./node_modules/ieee754","statSize":2154,"groups":[{"id":251,"label":"index.js","path":"./node_modules/ieee754/index.js","statSize":2154,"parsedSize":875,"gzipSize":497}],"parsedSize":875,"gzipSize":497},{"label":"prismjs","path":"./node_modules/prismjs","statSize":98341,"groups":[{"label":"components","path":"./node_modules/prismjs/components","statSize":40143,"groups":[{"id":22,"label":"prism-bash.js","path":"./node_modules/prismjs/components/prism-bash.js","statSize":9170,"parsedSize":6148,"gzipSize":2955},{"id":651,"label":"prism-csharp.js","path":"./node_modules/prismjs/components/prism-csharp.js","statSize":13567,"parsedSize":6354,"gzipSize":2440},{"id":113,"label":"prism-css.js","path":"./node_modules/prismjs/components/prism-css.js","statSize":1746,"parsedSize":1265,"gzipSize":618},{"id":378,"label":"prism-go.js","path":"./node_modules/prismjs/components/prism-go.js","statSize":1159,"parsedSize":975,"gzipSize":610},{"id":784,"label":"prism-http.js","path":"./node_modules/prismjs/components/prism-http.js","statSize":4087,"parsedSize":1933,"gzipSize":875},{"id":976,"label":"prism-java.js","path":"./node_modules/prismjs/components/prism-java.js","statSize":4130,"parsedSize":2813,"gzipSize":1210},{"id":514,"label":"prism-json.js","path":"./node_modules/prismjs/components/prism-json.js","statSize":592,"parsedSize":454,"gzipSize":273},{"id":342,"label":"prism-python.js","path":"./node_modules/prismjs/components/prism-python.js","statSize":2508,"parsedSize":2118,"gzipSize":1081},{"id":83,"label":"prism-yaml.js","path":"./node_modules/prismjs/components/prism-yaml.js","statSize":3184,"parsedSize":1958,"gzipSize":854}],"parsedSize":24018,"gzipSize":9098},{"id":848,"label":"prism.js","path":"./node_modules/prismjs/prism.js","statSize":58198,"parsedSize":18822,"gzipSize":6952}],"parsedSize":42840,"gzipSize":15058},{"label":"randexp/lib","path":"./node_modules/randexp/lib","statSize":6293,"groups":[{"id":859,"label":"randexp.js","path":"./node_modules/randexp/lib/randexp.js","statSize":6293,"parsedSize":2287,"gzipSize":1043}],"parsedSize":2287,"gzipSize":1043},{"label":"repeat-string","path":"./node_modules/repeat-string","statSize":1213,"groups":[{"id":208,"label":"index.js","path":"./node_modules/repeat-string/index.js","statSize":1213,"parsedSize":315,"gzipSize":224}],"parsedSize":315,"gzipSize":224},{"label":"ret/lib","path":"./node_modules/ret/lib","statSize":11078,"groups":[{"id":96,"label":"index.js","path":"./node_modules/ret/lib/index.js","statSize":6514,"parsedSize":2019,"gzipSize":887},{"id":48,"label":"positions.js","path":"./node_modules/ret/lib/positions.js","statSize":297,"parsedSize":208,"gzipSize":124},{"id":23,"label":"sets.js","path":"./node_modules/ret/lib/sets.js","statSize":1665,"parsedSize":950,"gzipSize":288},{"id":205,"label":"types.js","path":"./node_modules/ret/lib/types.js","statSize":166,"parsedSize":88,"gzipSize":102},{"id":586,"label":"util.js","path":"./node_modules/ret/lib/util.js","statSize":2436,"parsedSize":1091,"gzipSize":670}],"parsedSize":4356,"gzipSize":1695},{"label":"xml-but-prettier/dist","path":"./node_modules/xml-but-prettier/dist","statSize":2217,"groups":[{"id":657,"label":"index.js","path":"./node_modules/xml-but-prettier/dist/index.js","statSize":2217,"parsedSize":907,"gzipSize":466}],"parsedSize":907,"gzipSize":466}],"parsedSize":80114,"gzipSize":26378},{"label":"src","path":"./src","statSize":976381,"groups":[{"id":557,"label":"index.js + 61 modules (concatenated)","path":"./src/index.js + 61 modules (concatenated)","statSize":976381,"parsedSize":770496,"gzipSize":187254,"concatenated":true,"groups":[{"label":"src","path":"./src/index.js + 61 modules (concatenated)/src","statSize":441132,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 61 modules (concatenated)/src/index.js","statSize":260,"parsedSize":205,"gzipSize":49,"inaccurateSizes":true},{"id":null,"label":"rapidoc.js","path":"./src/index.js + 61 modules (concatenated)/src/rapidoc.js","statSize":43902,"parsedSize":34644,"gzipSize":8419,"inaccurateSizes":true},{"id":null,"label":"rapidoc-mini.js","path":"./src/index.js + 61 modules (concatenated)/src/rapidoc-mini.js","statSize":15292,"parsedSize":12067,"gzipSize":2932,"inaccurateSizes":true},{"id":null,"label":"oauth-receiver.js","path":"./src/index.js + 61 modules (concatenated)/src/oauth-receiver.js","statSize":1984,"parsedSize":1565,"gzipSize":380,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer.js","path":"./src/index.js + 61 modules (concatenated)/src/json-schema-viewer.js","statSize":12153,"parsedSize":9590,"gzipSize":2330,"inaccurateSizes":true},{"label":"styles","path":"./src/index.js + 61 modules (concatenated)/src/styles","statSize":29256,"groups":[{"id":null,"label":"font-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/font-styles.js","statSize":6335,"parsedSize":4999,"gzipSize":1214,"inaccurateSizes":true},{"id":null,"label":"input-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/input-styles.js","statSize":4861,"parsedSize":3835,"gzipSize":932,"inaccurateSizes":true},{"id":null,"label":"flex-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/flex-styles.js","statSize":193,"parsedSize":152,"gzipSize":37,"inaccurateSizes":true},{"id":null,"label":"table-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/table-styles.js","statSize":1201,"parsedSize":947,"gzipSize":230,"inaccurateSizes":true},{"id":null,"label":"endpoint-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/endpoint-styles.js","statSize":4915,"parsedSize":3878,"gzipSize":942,"inaccurateSizes":true},{"id":null,"label":"prism-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/prism-styles.js","statSize":1469,"parsedSize":1159,"gzipSize":281,"inaccurateSizes":true},{"id":null,"label":"tab-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/tab-styles.js","statSize":919,"parsedSize":725,"gzipSize":176,"inaccurateSizes":true},{"id":null,"label":"nav-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/nav-styles.js","statSize":4405,"parsedSize":3476,"gzipSize":844,"inaccurateSizes":true},{"id":null,"label":"info-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/info-styles.js","statSize":343,"parsedSize":270,"gzipSize":65,"inaccurateSizes":true},{"id":null,"label":"custom-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/custom-styles.js","statSize":202,"parsedSize":159,"gzipSize":38,"inaccurateSizes":true},{"id":null,"label":"border-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/border-styles.js","statSize":404,"parsedSize":318,"gzipSize":77,"inaccurateSizes":true},{"id":null,"label":"schema-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/schema-styles.js","statSize":2451,"parsedSize":1934,"gzipSize":470,"inaccurateSizes":true},{"id":null,"label":"dialog-box-styles.js","path":"./src/index.js + 61 modules (concatenated)/src/styles/dialog-box-styles.js","statSize":1558,"parsedSize":1229,"gzipSize":298,"inaccurateSizes":true}],"parsedSize":23086,"gzipSize":5610,"inaccurateSizes":true},{"label":"utils","path":"./src/index.js + 61 modules (concatenated)/src/utils","statSize":85905,"groups":[{"id":null,"label":"common-utils.js","path":"./src/index.js + 61 modules (concatenated)/src/utils/common-utils.js","statSize":6156,"parsedSize":4857,"gzipSize":1180,"inaccurateSizes":true},{"id":null,"label":"spec-parser.js","path":"./src/index.js + 61 modules (concatenated)/src/utils/spec-parser.js","statSize":20533,"parsedSize":16203,"gzipSize":3937,"inaccurateSizes":true},{"id":null,"label":"schema-utils.js","path":"./src/index.js + 61 modules (concatenated)/src/utils/schema-utils.js","statSize":44908,"parsedSize":35438,"gzipSize":8612,"inaccurateSizes":true},{"id":null,"label":"theme.js","path":"./src/index.js + 61 modules (concatenated)/src/utils/theme.js","statSize":12450,"parsedSize":9824,"gzipSize":2387,"inaccurateSizes":true},{"id":null,"label":"color-utils.js","path":"./src/index.js + 61 modules (concatenated)/src/utils/color-utils.js","statSize":1858,"parsedSize":1466,"gzipSize":356,"inaccurateSizes":true}],"parsedSize":67790,"gzipSize":16475,"inaccurateSizes":true},{"label":"templates","path":"./src/index.js + 61 modules (concatenated)/src/templates","statSize":111629,"groups":[{"id":null,"label":"main-body-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/main-body-template.js","statSize":5237,"parsedSize":4132,"gzipSize":1004,"inaccurateSizes":true},{"id":null,"label":"security-scheme-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/security-scheme-template.js","statSize":29599,"parsedSize":23357,"gzipSize":5676,"inaccurateSizes":true},{"id":null,"label":"server-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/server-template.js","statSize":4622,"parsedSize":3647,"gzipSize":886,"inaccurateSizes":true},{"id":null,"label":"json-schema-viewer-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/json-schema-viewer-template.js","statSize":8412,"parsedSize":6638,"gzipSize":1613,"inaccurateSizes":true},{"id":null,"label":"expanded-endpoint-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/expanded-endpoint-template.js","statSize":11715,"parsedSize":9244,"gzipSize":2246,"inaccurateSizes":true},{"id":null,"label":"focused-endpoint-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/focused-endpoint-template.js","statSize":4594,"parsedSize":3625,"gzipSize":881,"inaccurateSizes":true},{"id":null,"label":"overview-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/overview-template.js","statSize":3781,"parsedSize":2983,"gzipSize":725,"inaccurateSizes":true},{"id":null,"label":"navbar-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/navbar-template.js","statSize":13482,"parsedSize":10639,"gzipSize":2585,"inaccurateSizes":true},{"id":null,"label":"endpoint-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/endpoint-template.js","statSize":12998,"parsedSize":10257,"gzipSize":2492,"inaccurateSizes":true},{"id":null,"label":"header-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/header-template.js","statSize":2617,"parsedSize":2065,"gzipSize":501,"inaccurateSizes":true},{"id":null,"label":"advance-search-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/advance-search-template.js","statSize":3532,"parsedSize":2787,"gzipSize":677,"inaccurateSizes":true},{"id":null,"label":"code-samples-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/code-samples-template.js","statSize":2040,"parsedSize":1609,"gzipSize":391,"inaccurateSizes":true},{"id":null,"label":"callback-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/callback-template.js","statSize":4592,"parsedSize":3623,"gzipSize":880,"inaccurateSizes":true},{"id":null,"label":"components-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/components-template.js","statSize":3455,"parsedSize":2726,"gzipSize":662,"inaccurateSizes":true},{"id":null,"label":"logo-template.js","path":"./src/index.js + 61 modules (concatenated)/src/templates/logo-template.js","statSize":953,"parsedSize":752,"gzipSize":182,"inaccurateSizes":true}],"parsedSize":88090,"gzipSize":21408,"inaccurateSizes":true},{"label":"components","path":"./src/index.js + 61 modules (concatenated)/src/components","statSize":140751,"groups":[{"id":null,"label":"json-tree.js","path":"./src/index.js + 61 modules (concatenated)/src/components/json-tree.js","statSize":4854,"parsedSize":3830,"gzipSize":930,"inaccurateSizes":true},{"id":null,"label":"schema-tree.js","path":"./src/index.js + 61 modules (concatenated)/src/components/schema-tree.js","statSize":16531,"parsedSize":13045,"gzipSize":3170,"inaccurateSizes":true},{"id":null,"label":"api-request.js","path":"./src/index.js + 61 modules (concatenated)/src/components/api-request.js","statSize":81438,"parsedSize":64265,"gzipSize":15618,"inaccurateSizes":true},{"id":null,"label":"api-response.js","path":"./src/index.js + 61 modules (concatenated)/src/components/api-response.js","statSize":16490,"parsedSize":13012,"gzipSize":3162,"inaccurateSizes":true},{"id":null,"label":"dialog-box.js","path":"./src/index.js + 61 modules (concatenated)/src/components/dialog-box.js","statSize":1794,"parsedSize":1415,"gzipSize":344,"inaccurateSizes":true},{"id":null,"label":"tag-input.js","path":"./src/index.js + 61 modules (concatenated)/src/components/tag-input.js","statSize":3588,"parsedSize":2831,"gzipSize":688,"inaccurateSizes":true},{"id":null,"label":"schema-table.js","path":"./src/index.js + 61 modules (concatenated)/src/components/schema-table.js","statSize":16056,"parsedSize":12670,"gzipSize":3079,"inaccurateSizes":true}],"parsedSize":111071,"gzipSize":26993,"inaccurateSizes":true}],"parsedSize":348112,"gzipSize":84601,"inaccurateSizes":true},{"label":"node_modules","path":"./src/index.js + 61 modules (concatenated)/node_modules","statSize":535249,"groups":[{"label":"lit","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit","statSize":485,"groups":[{"id":null,"label":"index.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit/index.js","statSize":157,"parsedSize":123,"gzipSize":30,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit/directives","statSize":328,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit/directives/unsafe-html.js","statSize":89,"parsedSize":70,"gzipSize":17,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit/directives/guard.js","statSize":77,"parsedSize":60,"gzipSize":14,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit/directives/live.js","statSize":75,"parsedSize":59,"gzipSize":14,"inaccurateSizes":true},{"id":null,"label":"if-defined.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit/directives/if-defined.js","statSize":87,"parsedSize":68,"gzipSize":16,"inaccurateSizes":true}],"parsedSize":258,"gzipSize":62,"inaccurateSizes":true}],"parsedSize":382,"gzipSize":93,"inaccurateSizes":true},{"label":"marked/lib","path":"./src/index.js + 61 modules (concatenated)/node_modules/marked/lib","statSize":79710,"groups":[{"id":null,"label":"marked.esm.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/marked/lib/marked.esm.js","statSize":79710,"parsedSize":62901,"gzipSize":15287,"inaccurateSizes":true}],"parsedSize":62901,"gzipSize":15287,"inaccurateSizes":true},{"label":"@lit/reactive-element","path":"./src/index.js + 61 modules (concatenated)/node_modules/@lit/reactive-element","statSize":7525,"groups":[{"id":null,"label":"reactive-element.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/@lit/reactive-element/reactive-element.js","statSize":5936,"parsedSize":4684,"gzipSize":1138,"inaccurateSizes":true},{"id":null,"label":"css-tag.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/@lit/reactive-element/css-tag.js","statSize":1589,"parsedSize":1253,"gzipSize":304,"inaccurateSizes":true}],"parsedSize":5938,"gzipSize":1443,"inaccurateSizes":true},{"label":"lit-html","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html","statSize":11721,"groups":[{"id":null,"label":"lit-html.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/lit-html.js","statSize":7310,"parsedSize":5768,"gzipSize":1401,"inaccurateSizes":true},{"label":"directives","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directives","statSize":2560,"groups":[{"id":null,"label":"unsafe-html.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directives/unsafe-html.js","statSize":845,"parsedSize":666,"gzipSize":162,"inaccurateSizes":true},{"id":null,"label":"guard.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directives/guard.js","statSize":578,"parsedSize":456,"gzipSize":110,"inaccurateSizes":true},{"id":null,"label":"live.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directives/live.js","statSize":925,"parsedSize":729,"gzipSize":177,"inaccurateSizes":true},{"id":null,"label":"if-defined.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directives/if-defined.js","statSize":212,"parsedSize":167,"gzipSize":40,"inaccurateSizes":true}],"parsedSize":2020,"gzipSize":490,"inaccurateSizes":true},{"id":null,"label":"directive.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directive.js","statSize":475,"parsedSize":374,"gzipSize":91,"inaccurateSizes":true},{"id":null,"label":"directive-helpers.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-html/directive-helpers.js","statSize":1376,"parsedSize":1085,"gzipSize":263,"inaccurateSizes":true}],"parsedSize":9249,"gzipSize":2247,"inaccurateSizes":true},{"label":"lit-element","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-element","statSize":1120,"groups":[{"id":null,"label":"lit-element.js","path":"./src/index.js + 61 modules (concatenated)/node_modules/lit-element/lit-element.js","statSize":1120,"parsedSize":883,"gzipSize":214,"inaccurateSizes":true}],"parsedSize":883,"gzipSize":214,"inaccurateSizes":true},{"label":"@apitools/openapi-parser/dist","path":"./src/index.js + 61 modules (concatenated)/node_modules/@apitools/openapi-parser/dist","statSize":434688,"groups":[{"id":null,"label":"openapi-parser.mjs","path":"./src/index.js + 61 modules (concatenated)/node_modules/@apitools/openapi-parser/dist/openapi-parser.mjs","statSize":434688,"parsedSize":343027,"gzipSize":83366,"inaccurateSizes":true}],"parsedSize":343027,"gzipSize":83366,"inaccurateSizes":true}],"parsedSize":422383,"gzipSize":102652,"inaccurateSizes":true}]}],"parsedSize":770496,"gzipSize":187254}],"isInitialByEntrypoint":{"main":true}}];
35
35
  window.entrypoints = ["main"];
36
36
  window.defaultSizes = "parsed";
37
37
  </script>
package/index.html CHANGED
@@ -31,23 +31,24 @@
31
31
  https://cesdev.eng.sonicwall.com/api/q/openapi
32
32
  -->
33
33
  <rapi-doc
34
- spec-url = "https://api.apis.guru/v2/specs/azure.com/azureactivedirectory/2017-04-01/swagger.yaml"
34
+ spec-url = "./specs/petstore_mini.yaml"
35
35
  id="thedoc"
36
36
  theme = "dark"
37
- render-style="read"
38
- schema-style="table"
37
+ render-style="focused"
38
+ schema-style="tree"
39
39
  show-method-in-nav-bar = "true"
40
40
  use-path-in-nav-bar = "true"
41
41
  show-components = "true"
42
42
  show-info = "true"
43
43
  show-header = "true"
44
- allow-search = "false"
44
+ allow-search = "true"
45
45
  allow-advanced-search = "true"
46
46
  allow-spec-url-load="false"
47
47
  allow-spec-file-download="true"
48
48
  allow-server-selection = "true"
49
49
  allow-authentication = "true"
50
50
  update-route="false"
51
+ remove-endpoints-with-badge-label-as="one"
51
52
  match-type="regex"
52
53
  persist-auth="true"
53
54
  scroll-behavior="smooth"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapidoc",
3
- "version": "9.3.6",
3
+ "version": "9.3.7",
4
4
  "description": "RapiDoc - Open API spec viewer with built in console",
5
5
  "author": "Mrinmoy Majumdar <mrin9@yahoo.com>",
6
6
  "homepage": "https://rapidocweb.com",
@@ -33,7 +33,7 @@
33
33
  "module": "dist/rapidoc-min.js",
34
34
  "mode": "production",
35
35
  "dependencies": {
36
- "@apitools/openapi-parser": "0.0.32",
36
+ "@apitools/openapi-parser": "0.0.33",
37
37
  "base64-arraybuffer": "^1.0.2",
38
38
  "buffer": "^6.0.3",
39
39
  "lit": "^3.2.0",
@@ -2,6 +2,7 @@ import { LitElement, html, css } from 'lit';
2
2
  import { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions
3
3
  import { guard } from 'lit/directives/guard.js'; // eslint-disable-line import/extensions
4
4
  import { live } from 'lit/directives/live.js'; // eslint-disable-line import/extensions
5
+ import { ifDefined } from 'lit/directives/if-defined.js'; // eslint-disable-line import/extensions
5
6
  import { marked } from 'marked';
6
7
  import formatXml from 'xml-but-prettier';
7
8
  import Prism from 'prismjs';
@@ -20,7 +21,7 @@ import { schemaInObjectNotation,
20
21
  normalizeExamples,
21
22
  getSchemaFromParam,
22
23
  json2xml,
23
- nestExampleIfPresent,
24
+ standardizeExample,
24
25
  anyExampleWithSummaryOrDescription } from '~/utils/schema-utils';
25
26
  import '~/components/json-tree';
26
27
  import '~/components/schema-tree';
@@ -99,6 +100,9 @@ export default class ApiRequest extends LitElement {
99
100
  TabStyles,
100
101
  PrismStyles,
101
102
  css`
103
+ :host {
104
+ container-type: inline-size;
105
+ }
102
106
  *, *:before, *:after { box-sizing: border-box; }
103
107
  :where(button, input[type="checkbox"], [tabindex="0"]):focus-visible { box-shadow: var(--focus-shadow); }
104
108
  :where(input[type="text"], input[type="password"], select, textarea):focus-visible { border-color: var(--primary-color); }
@@ -183,13 +187,13 @@ export default class ApiRequest extends LitElement {
183
187
  opacity: 1;
184
188
  }
185
189
 
186
- @media only screen and (min-width: 768px) {
190
+ @container (min-width: 768px) {
187
191
  .textarea {
188
192
  padding:8px;
189
193
  }
190
194
  }
191
195
 
192
- @media only screen and (max-width: 470px) {
196
+ @container (max-width: 470px) {
193
197
  .hide-in-small-screen {
194
198
  display:none;
195
199
  }
@@ -353,7 +357,7 @@ export default class ApiRequest extends LitElement {
353
357
  let paramStyle = 'form';
354
358
  let paramExplode = true;
355
359
  let paramAllowReserved = false;
356
- if (paramType === 'query') {
360
+ if (paramType === 'query' || paramType === 'header' || paramType === 'path') {
357
361
  if (param.style && 'form spaceDelimited pipeDelimited'.includes(param.style)) {
358
362
  paramStyle = param.style;
359
363
  } else if (serializeStyle) {
@@ -368,12 +372,12 @@ export default class ApiRequest extends LitElement {
368
372
  }
369
373
  // openapi 3.1.0 spec based examples (which must be Object(string : { value:any, summary?: string, description?: string})
370
374
  const example = normalizeExamples(
371
- (param.examples
372
- || nestExampleIfPresent(param.example)
373
- || nestExampleIfPresent(mimeTypeElem?.example)
374
- || mimeTypeElem?.examples
375
- || nestExampleIfPresent(paramSchema.examples)
376
- || nestExampleIfPresent(paramSchema.example)
375
+ (standardizeExample(param.examples)
376
+ || standardizeExample(param.example)
377
+ || standardizeExample(mimeTypeElem?.example)
378
+ || standardizeExample(mimeTypeElem?.examples)
379
+ || standardizeExample(paramSchema.examples)
380
+ || standardizeExample(paramSchema.example)
377
381
  ),
378
382
  paramSchema.type,
379
383
  );
@@ -381,8 +385,8 @@ export default class ApiRequest extends LitElement {
381
385
  example.exampleVal = generateExample(
382
386
  declaredParamSchema,
383
387
  serializeStyle || 'json',
384
- '',
385
- '',
388
+ {},
389
+ {},
386
390
  this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary
387
391
  this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary
388
392
  true,
@@ -412,6 +416,7 @@ export default class ApiRequest extends LitElement {
412
416
  ${paramSchema.type === 'array'
413
417
  ? html`
414
418
  <tag-input class="request-param"
419
+ id = "tag-input-request-param-${param.name}"
415
420
  style = "width:100%"
416
421
  data-ptype = "${paramType}"
417
422
  data-pname = "${param.name}"
@@ -441,47 +446,49 @@ export default class ApiRequest extends LitElement {
441
446
  <button class="tab-btn ${this.activeParameterSchemaTabs[param.name] === 'example' ? 'active' : ''}" data-tab = 'example'>EXAMPLE </button>
442
447
  <button class="tab-btn ${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'active' : ''}" data-tab = 'schema'>SCHEMA</button>
443
448
  </div>
444
- ${this.activeParameterSchemaTabs[param.name] === 'example'
445
- ? html`<div class="tab-content col">
446
- <textarea
447
- class = "textarea request-param"
448
- part = "textarea textarea-param"
449
- data-ptype = "${paramType}-object"
450
- data-pname = "${param.name}"
451
- data-example = "${example.exampleVal}"
452
- data-param-serialize-style = "${paramStyle}"
453
- data-param-serialize-explode = "${paramExplode}"
454
- data-param-allow-reserved = "${paramAllowReserved}"
455
- data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
456
- spellcheck = "false"
457
- .textContent="${param['x-fill-example'] === 'no' ? '' : live(this.fillRequestFieldsWithExample === 'true' ? (typeof example.exampleVal === 'object' ? JSON.stringify(example.exampleVal, null, 2) : example.exampleVal) : '')}"
458
- style = "resize:vertical; width:100%; height: ${'read focused'.includes(this.renderStyle) ? '180px' : '120px'};"
459
- @input=${(e) => {
460
- const requestPanelEl = this.getRequestPanel(e);
461
- this.liveCURLSyntaxUpdate(requestPanelEl);
462
- }}
463
- ></textarea>
464
- </div>`
465
- : html`
466
- <div class="tab-content col">
467
- <schema-tree
468
- class = 'json'
469
- style = 'display: block'
470
- .data = '${schemaAsObj}'
471
- schema-expand-level = "${this.schemaExpandLevel}"
472
- schema-description-expanded = "${this.schemaDescriptionExpanded}"
473
- allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
474
- schema-hide-read-only = "${this.schemaHideReadOnly.includes(this.method)}"
475
- schema-hide-write-only = "${this.schemaHideWriteOnly.includes(this.method)}"
476
- exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
477
- file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
478
- anchor:anchor, anchor-param-example:anchor-param-example"
479
- > </schema-tree>
480
- </div>`
481
- }
482
- </div>`
449
+
450
+ ${html`<div class="tab-content col" data-tab = 'example' style="display:${this.activeParameterSchemaTabs[param.name] === 'example' ? 'block' : 'none'}; padding-left:5px; width:100%">
451
+ <textarea
452
+ id = "textarea-request-param-${param.name}"
453
+ class = "textarea request-param"
454
+ part = "textarea textarea-param"
455
+ data-ptype = "${paramType}-object"
456
+ data-pname = "${param.name}"
457
+ data-example = "${example.exampleVal}"
458
+ data-param-serialize-style = "${paramStyle}"
459
+ data-param-serialize-explode = "${paramExplode}"
460
+ data-param-allow-reserved = "${paramAllowReserved}"
461
+ data-x-fill-example = "${param['x-fill-example'] || 'yes'}"
462
+ spellcheck = "false"
463
+ .textContent="${param['x-fill-example'] === 'no' ? '' : live(this.fillRequestFieldsWithExample === 'true' ? (typeof example.exampleVal === 'object' ? JSON.stringify(example.exampleVal, null, 2) : example.exampleVal) : '')}"
464
+ style = "resize:vertical; width:100%; height: ${'read focused'.includes(this.renderStyle) ? '180px' : '120px'};"
465
+ @input=${(e) => {
466
+ const requestPanelEl = this.getRequestPanel(e);
467
+ this.liveCURLSyntaxUpdate(requestPanelEl);
468
+ }}
469
+ ></textarea>
470
+ </div>`
471
+ }
472
+ ${html`<div class="tab-content col" data-tab = 'schema' style="display:${this.activeParameterSchemaTabs[param.name] !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
473
+ <schema-tree
474
+ class = 'json'
475
+ style = 'display: block'
476
+ .data = '${schemaAsObj}'
477
+ schema-expand-level = "${this.schemaExpandLevel}"
478
+ schema-description-expanded = "${this.schemaDescriptionExpanded}"
479
+ allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}"
480
+ schema-hide-read-only = "${this.schemaHideReadOnly.includes(this.method)}"
481
+ schema-hide-write-only = "${this.schemaHideWriteOnly.includes(this.method)}"
482
+ exportparts = "wrap-request-btn:wrap-request-btn, btn:btn, btn-fill:btn-fill, btn-outline:btn-outline, btn-try:btn-try, btn-clear:btn-clear, btn-clear-resp:btn-clear-resp,
483
+ file-input:file-input, textbox:textbox, textbox-param:textbox-param, textarea:textarea, textarea-param:textarea-param,
484
+ anchor:anchor, anchor-param-example:anchor-param-example"
485
+ > </schema-tree>
486
+ </div>`
487
+ }
488
+ </div>`
483
489
  : html`
484
490
  <input type="${paramSchema.format === 'password' ? 'password' : 'text'}" spellcheck="false" style="width:100%"
491
+ id="input-request-param-${param.name}"
485
492
  class="request-param"
486
493
  part="textbox textbox-param"
487
494
  data-ptype="${paramType}"
@@ -641,8 +648,8 @@ export default class ApiRequest extends LitElement {
641
648
  reqBodyExamples = generateExample(
642
649
  reqBody.schema,
643
650
  reqBody.mimeType,
644
- reqBody.examples,
645
- reqBody.example,
651
+ standardizeExample(reqBody.examples),
652
+ standardizeExample(reqBody.example),
646
653
  this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary
647
654
  this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary
648
655
  'text',
@@ -725,7 +732,7 @@ export default class ApiRequest extends LitElement {
725
732
  if (reqBody.mimeType === this.selectedRequestBodyType) {
726
733
  reqBodyFileInputHtml = html`
727
734
  <div class = "small-font-size bold-text row">
728
- <input type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${reqBody.mimeType}" spellcheck="false" />
735
+ <input id="input-request-body-param-file" type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${reqBody.mimeType}" spellcheck="false" />
729
736
  </div>
730
737
  `;
731
738
  }
@@ -802,8 +809,8 @@ export default class ApiRequest extends LitElement {
802
809
  const formdataPartExample = generateExample(
803
810
  fieldSchema,
804
811
  'json',
805
- fieldSchema.examples,
806
- fieldSchema.example,
812
+ standardizeExample(fieldSchema.examples),
813
+ standardizeExample(fieldSchema.example),
807
814
  this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary
808
815
  this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary
809
816
  'text',
@@ -852,7 +859,7 @@ export default class ApiRequest extends LitElement {
852
859
  ${html`
853
860
  <div class="tab-content col" data-tab = 'schema' style="display:${this.activeSchemaTab !== 'example' ? 'block' : 'none'}; padding-left:5px; width:100%;">
854
861
  <schema-tree
855
- .data = '${formdataPartSchema}'
862
+ .data = "${formdataPartSchema}"
856
863
  schema-expand-level = "${this.schemaExpandLevel}"
857
864
  schema-description-expanded = "${this.schemaDescriptionExpanded}"
858
865
  allow-schema-description-expand-toggle = "${this.allowSchemaDescriptionExpandToggle}",
@@ -1014,7 +1021,7 @@ export default class ApiRequest extends LitElement {
1014
1021
  curlSyntaxTemplate(display = 'flex') {
1015
1022
  return html`
1016
1023
  <div class="col m-markdown" style="flex:1; display:${display}; position:relative; max-width: 100%;">
1017
- <button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${(e) => { copyToClipboard(this.curlSyntax.replace(/\\$/, ''), e); }}' part="btn btn-fill"> Copy </button>
1024
+ <button class="toolbar-btn" style = "position:absolute; top:12px; right:8px" @click='${(e) => { copyToClipboard(this.curlSyntax.trim().replace(/\\$/, ''), e); }}' part="btn btn-fill"> Copy </button>
1018
1025
  <pre style="white-space:pre"><code>${unsafeHTML(Prism.highlight(this.curlSyntax.trim().replace(/\\$/, ''), Prism.languages.shell, 'shell'))}</code></pre>
1019
1026
  </div>
1020
1027
  `;
@@ -1060,7 +1067,7 @@ export default class ApiRequest extends LitElement {
1060
1067
  ? html`
1061
1068
  <div class="tab-content col" style="flex:1; display:${this.activeResponseTab === 'response' ? 'flex' : 'none'};">
1062
1069
  ${this.responseBlobType === 'image'
1063
- ? html`<img style="max-height:var(--resp-area-height, 400px); object-fit:contain;" class="mar-top-8" src="${this.responseBlobUrl}"></img>`
1070
+ ? html`<img style="max-height:var(--resp-area-height, 400px); object-fit:contain;" class="mar-top-8" src="${ifDefined(this.responseBlobUrl)}"></img>`
1064
1071
  : ''
1065
1072
  }
1066
1073
  <button class="m-btn thin-border mar-top-8" style="width:135px" @click='${(e) => { downloadResource(this.responseBlobUrl, this.respContentDisposition, e); }}' part="btn btn-outline">
@@ -1086,18 +1093,8 @@ export default class ApiRequest extends LitElement {
1086
1093
  }
1087
1094
 
1088
1095
  apiCallTemplate() {
1089
- let selectServerDropdownHtml = '';
1090
-
1091
- if (this.servers && this.servers.length > 0) {
1092
- selectServerDropdownHtml = html`
1093
- <select style="min-width:100px;" @change='${(e) => { this.serverUrl = e.target.value; }}'>
1094
- ${this.servers.map((v) => html`<option value = "${v.url}"> ${v.url} - ${v.description} </option>`)}
1095
- </select>
1096
- `;
1097
- }
1098
1096
  const selectedServerHtml = html`
1099
1097
  <div style="display:flex; flex-direction:column;">
1100
- ${selectServerDropdownHtml}
1101
1098
  ${this.serverUrl
1102
1099
  ? html`
1103
1100
  <div style="display:flex; align-items:baseline;">
@@ -1127,7 +1124,7 @@ export default class ApiRequest extends LitElement {
1127
1124
  : `${this.api_keys.length} API keys applied`
1128
1125
  }
1129
1126
  </div>`
1130
- : html`<div class="gray-text">Required <span style="color:var(--red)">(None Applied)</span>`
1127
+ : html`<div class="gray-text">Required <span style="color:var(--red)">(None Applied)</span> </div>`
1131
1128
  }`
1132
1129
  : html`<span class="gray-text"> Not Required </span>`
1133
1130
  }
@@ -1263,7 +1260,7 @@ export default class ApiRequest extends LitElement {
1263
1260
  }
1264
1261
  }
1265
1262
  }
1266
- } catch (err) {
1263
+ } catch {
1267
1264
  console.error('RapiDoc: unable to parse %s into object', el.value); // eslint-disable-line no-console
1268
1265
  }
1269
1266
  if (queryParam.toString()) {
@@ -1301,7 +1298,7 @@ export default class ApiRequest extends LitElement {
1301
1298
 
1302
1299
  buildFetchHeaders(requestPanelEl) {
1303
1300
  const respEl = this.closest('.expanded-req-resp-container, .req-resp-container')?.getElementsByTagName('api-response')[0];
1304
- const headerParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='header']")];
1301
+ const headerParamEls = [...requestPanelEl.querySelectorAll("[data-ptype='header'], [data-ptype='header-object']")];
1305
1302
  const requestBodyContainerEl = requestPanelEl.querySelector('.request-body-container');
1306
1303
  const acceptHeader = respEl?.selectedMimeType;
1307
1304
  const reqHeaders = new Headers();
@@ -1322,7 +1319,38 @@ export default class ApiRequest extends LitElement {
1322
1319
  // Add Header Params
1323
1320
  headerParamEls.map((el) => {
1324
1321
  if (el.value) {
1325
- reqHeaders.append(el.dataset.pname, el.value);
1322
+ if (el.dataset.ptype === 'header-object') {
1323
+ /* CONVERT
1324
+ a header value from below object style
1325
+ {
1326
+ "key1": "val1",
1327
+ "key2": {
1328
+ "key2_1": "val2_1",
1329
+ "key2_2": {
1330
+ "key2_2_1": "val2_2_1"
1331
+ }
1332
+ },
1333
+ "key3": "val3"
1334
+ };
1335
+
1336
+ TO >>>
1337
+ key1=val1, key2={"key2_1":"val2_1","key2_2":{"key2_2_1":"val2_2_1"}}, key3=val3
1338
+ */
1339
+ const headerObjVal = JSON.parse(el.value.replace(/\n/g, '').trim());
1340
+ const firstLevelKeySeparator = el.dataset.paramSerializeExplode === 'true' ? '=' : ',';
1341
+ const headerStrVal = Object.keys(headerObjVal)
1342
+ .map((key) => {
1343
+ const value = headerObjVal[key];
1344
+ if (typeof value === 'object') {
1345
+ return `${key}${firstLevelKeySeparator}${JSON.stringify(value)}`;
1346
+ }
1347
+ return `${key}${firstLevelKeySeparator}${value}`;
1348
+ })
1349
+ .join(',');
1350
+ reqHeaders.append(el.dataset.pname, headerStrVal);
1351
+ } else {
1352
+ reqHeaders.append(el.dataset.pname, el.value);
1353
+ }
1326
1354
  }
1327
1355
  });
1328
1356
 
@@ -1334,7 +1362,6 @@ export default class ApiRequest extends LitElement {
1334
1362
  reqHeaders.append('Content-Type', requestBodyType);
1335
1363
  }
1336
1364
  }
1337
-
1338
1365
  return reqHeaders;
1339
1366
  }
1340
1367
 
@@ -1543,7 +1570,18 @@ export default class ApiRequest extends LitElement {
1543
1570
  }
1544
1571
  if (this.responseIsBlob) {
1545
1572
  const contentDisposition = fetchResponse.headers.get('content-disposition');
1546
- this.respContentDisposition = contentDisposition ? contentDisposition.split('filename=')[1].replace(/"|'/g, '') : 'filename';
1573
+ let filenameFromContentDeposition = 'filename';
1574
+ const filenameStarRegexMatch = contentDisposition.match(/filename\*=\s*UTF-8''([^;]+)/); // Support Headers like >>> Content-Disposition: attachment; filename*=UTF-8''example%20file.pdf
1575
+ if (filenameStarRegexMatch) {
1576
+ filenameFromContentDeposition = decodeURIComponent(filenameStarRegexMatch[1]); // the filename* format in the Content-Disposition header follows RFC 5987, which allows encoding non-ASCII characters using percent encoding. so example%20file.pdf becomes example file.pdf
1577
+ } else {
1578
+ // Fallback to the regular filename format
1579
+ const filenameMatch = contentDisposition.match(/filename="?([^"]+)"?/); // Content-Disposition: attachment; filename=example.pdf
1580
+ if (filenameMatch) {
1581
+ filenameFromContentDeposition = filenameMatch[1];
1582
+ }
1583
+ }
1584
+ this.respContentDisposition = filenameFromContentDeposition;
1547
1585
  respBlob = await fetchResponse.blob();
1548
1586
  this.responseBlobUrl = URL.createObjectURL(respBlob);
1549
1587
  }
@@ -1635,7 +1673,7 @@ export default class ApiRequest extends LitElement {
1635
1673
  fetchHeaders.set(key, tempHeaderArray.join(', '));
1636
1674
  });
1637
1675
 
1638
- curlHeaders = Array.from(fetchHeaders).map(([key, value]) => ` -H "${key}: ${value}"`).join('\\\n');
1676
+ curlHeaders = Array.from(fetchHeaders).map(([key, value]) => ` -H '${key}: ${value}'`).join('\\\n');
1639
1677
  if (curlHeaders) {
1640
1678
  curlHeaders = `${curlHeaders} \\\n`;
1641
1679
  }
@@ -1667,7 +1705,7 @@ export default class ApiRequest extends LitElement {
1667
1705
  if (requestBodyType.includes('json')) {
1668
1706
  try {
1669
1707
  curlData = ` -d '${JSON.stringify(JSON.parse(exampleTextAreaEl.value))}' \\\n`;
1670
- } catch (err) {
1708
+ } catch {
1671
1709
  // Ignore.
1672
1710
  }
1673
1711
  }
@@ -1,7 +1,7 @@
1
1
  import { LitElement, html, css } from 'lit';
2
2
  import { unsafeHTML } from 'lit/directives/unsafe-html.js'; // eslint-disable-line import/extensions
3
3
  import { marked } from 'marked';
4
- import { schemaInObjectNotation, generateExample } from '~/utils/schema-utils';
4
+ import { schemaInObjectNotation, generateExample, standardizeExample } from '~/utils/schema-utils';
5
5
  import FontStyles from '~/styles/font-styles';
6
6
  import FlexStyles from '~/styles/flex-styles';
7
7
  import TableStyles from '~/styles/table-styles';
@@ -92,7 +92,7 @@ export default class ApiResponse extends LitElement {
92
92
  </div>
93
93
  <div>
94
94
  ${this.responseTemplate()}
95
- <div>
95
+ </div>
96
96
  </div>
97
97
  `;
98
98
  }
@@ -121,8 +121,8 @@ export default class ApiResponse extends LitElement {
121
121
  const respExamples = generateExample(
122
122
  mimeRespObj.schema,
123
123
  mimeResp,
124
- mimeRespObj.examples,
125
- mimeRespObj.example,
124
+ standardizeExample(mimeRespObj.examples),
125
+ standardizeExample(mimeRespObj.example),
126
126
  this.callback === 'true' || this.webhook === 'true' ? false : true, // eslint-disable-line no-unneeded-ternary
127
127
  this.callback === 'true' || this.webhook === 'true' ? true : false, // eslint-disable-line no-unneeded-ternary
128
128
  mimeResp.includes('json') ? 'json' : 'text',
@@ -165,10 +165,9 @@ export default class ApiResponse extends LitElement {
165
165
  ${respStatus}
166
166
  </button>`
167
167
  }`)
168
- }`
168
+ }</div>`
169
169
  : html`<span>${Object.keys(this.responses)[0]}</span>`
170
170
  }
171
- </div>
172
171
 
173
172
  ${Object.keys(this.responses).map((status) => html`
174
173
  <div style = 'display: ${status === this.selectedStatus ? 'block' : 'none'}' >
@@ -202,7 +201,7 @@ export default class ApiResponse extends LitElement {
202
201
  }
203
202
  </div>
204
203
  `
205
- }`)
204
+ }</div>`)
206
205
  }
207
206
  `;
208
207
  }