@scalar/api-reference 1.28.32 → 1.28.34

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 (209) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/browser/standalone.js +7541 -7368
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  5. package/dist/components/Anchor/Anchor.vue.js +2 -2
  6. package/dist/components/Anchor/Anchor.vue2.js +24 -22
  7. package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  10. package/dist/components/ApiReferenceLayout.vue2.js +50 -50
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  13. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
  17. package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
  18. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Content.vue.js +2 -2
  20. package/dist/components/Content/Content.vue2.js +56 -56
  21. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  22. package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
  23. package/dist/components/Content/Lazy/Loading.vue.js +22 -22
  24. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/Models.vue.js +2 -2
  26. package/dist/components/Content/Models/Models.vue2.js +17 -17
  27. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  28. package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
  29. package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
  30. package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
  31. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  34. package/dist/components/Content/Schema/Schema.vue2.js +2 -1
  35. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +99 -5
  37. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +2 -165
  38. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue2.js +27 -26
  41. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  43. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +142 -138
  44. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
  45. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
  47. package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
  48. package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
  49. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  50. package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
  51. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Tag/TagList.vue.js +8 -8
  53. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  54. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  55. package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
  56. package/dist/components/GettingStarted.vue.d.ts +2 -2
  57. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  58. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  59. package/dist/components/Layouts/ModernLayout.vue2.js +4 -4
  60. package/dist/components/MobileHeader.vue.js +3 -3
  61. package/dist/components/Section/CompactSection.vue.js +2 -2
  62. package/dist/components/Section/CompactSection.vue2.js +4 -4
  63. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  64. package/dist/components/Section/Section.vue.js +1 -1
  65. package/dist/components/Section/SectionHeader.vue.js +2 -2
  66. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  67. package/dist/components/ShowMoreButton.vue.js +2 -2
  68. package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
  69. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  70. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  71. package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
  72. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  73. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  74. package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
  75. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  76. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -1
  77. package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +30 -21
  78. package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
  79. package/dist/features/ApiClientModal/index.d.ts +1 -1
  80. package/dist/features/ApiClientModal/index.d.ts.map +1 -1
  81. package/dist/features/ApiClientModal/useApiClient.d.ts +170 -90
  82. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  83. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  84. package/dist/features/BaseUrl/BaseUrl.vue.js +33 -28
  85. package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
  86. package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
  87. package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
  88. package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
  89. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  90. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  91. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
  92. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  93. package/dist/features/Operation/Webhooks.vue.js +2 -2
  94. package/dist/features/Operation/Webhooks.vue2.js +13 -13
  95. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  96. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  97. package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
  98. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  100. package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
  101. package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
  102. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  103. package/dist/features/Operation/hooks/useResponses.js +13 -12
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
  107. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  108. package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
  109. package/dist/features/Search/SearchButton.vue.js +2 -2
  110. package/dist/features/Search/SearchButton.vue2.js +1 -1
  111. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  112. package/dist/features/Search/SearchModal.vue.js +2 -2
  113. package/dist/features/Search/SearchModal.vue2.js +1 -1
  114. package/dist/features/Search/useSearchIndex.d.ts +1 -1
  115. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  116. package/dist/features/Search/useSearchIndex.js +20 -21
  117. package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
  118. package/dist/helpers/is-mac-os.d.ts.map +1 -0
  119. package/dist/helpers/parse.d.ts.map +1 -1
  120. package/dist/helpers/parse.js +1 -1
  121. package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
  122. package/dist/helpers/scroll-to-id.d.ts.map +1 -0
  123. package/dist/helpers/sleep.d.ts +0 -2
  124. package/dist/helpers/sleep.d.ts.map +1 -1
  125. package/dist/hooks/useNavState.d.ts.map +1 -1
  126. package/dist/hooks/useNavState.js +28 -28
  127. package/dist/hooks/useReactiveSpec.js +1 -1
  128. package/dist/hooks/useSidebar.d.ts.map +1 -1
  129. package/dist/hooks/useSidebar.js +45 -49
  130. package/dist/index.d.ts +2 -3
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +26 -28
  133. package/dist/legacy/fixtures/index.d.ts +1 -1
  134. package/dist/legacy/fixtures/index.d.ts.map +1 -1
  135. package/dist/legacy/helpers/index.d.ts +1 -1
  136. package/dist/legacy/helpers/index.d.ts.map +1 -1
  137. package/dist/libs/download.d.ts +9 -0
  138. package/dist/libs/download.d.ts.map +1 -0
  139. package/dist/libs/download.js +19 -0
  140. package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
  141. package/dist/libs/markdown.d.ts.map +1 -0
  142. package/dist/libs/markdown.js +18 -0
  143. package/dist/libs/openapi.d.ts +56 -0
  144. package/dist/libs/openapi.d.ts.map +1 -0
  145. package/dist/libs/openapi.js +102 -0
  146. package/dist/style.css +1 -1
  147. package/dist/types.d.ts +1 -45
  148. package/dist/types.d.ts.map +1 -1
  149. package/package.json +21 -21
  150. package/dist/esm.js +0 -34
  151. package/dist/helpers/createEmptySpecification.d.ts +0 -8
  152. package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
  153. package/dist/helpers/createEmptySpecification.js +0 -27
  154. package/dist/helpers/deepMerge.d.ts +0 -5
  155. package/dist/helpers/deepMerge.d.ts.map +0 -1
  156. package/dist/helpers/deepMerge.js +0 -8
  157. package/dist/helpers/generateParameters.d.ts +0 -6
  158. package/dist/helpers/generateParameters.d.ts.map +0 -1
  159. package/dist/helpers/get-request.d.ts +0 -59
  160. package/dist/helpers/get-request.d.ts.map +0 -1
  161. package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
  162. package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
  163. package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
  164. package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
  165. package/dist/helpers/getLowestHeadingLevel.js +0 -7
  166. package/dist/helpers/getModels.d.ts +0 -7
  167. package/dist/helpers/getModels.d.ts.map +0 -1
  168. package/dist/helpers/getModels.js +0 -22
  169. package/dist/helpers/getVariableNames.d.ts +0 -5
  170. package/dist/helpers/getVariableNames.d.ts.map +0 -1
  171. package/dist/helpers/hasModels.d.ts +0 -3
  172. package/dist/helpers/hasModels.d.ts.map +0 -1
  173. package/dist/helpers/hasModels.js +0 -5
  174. package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
  175. package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
  176. package/dist/helpers/hasWebhooks.d.ts +0 -3
  177. package/dist/helpers/hasWebhooks.d.ts.map +0 -1
  178. package/dist/helpers/hasWebhooks.js +0 -4
  179. package/dist/helpers/index.d.ts +0 -17
  180. package/dist/helpers/index.d.ts.map +0 -1
  181. package/dist/helpers/isMacOs.d.ts.map +0 -1
  182. package/dist/helpers/mapFromObject.d.ts +0 -8
  183. package/dist/helpers/mapFromObject.d.ts.map +0 -1
  184. package/dist/helpers/mergeAllObjects.d.ts +0 -5
  185. package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
  186. package/dist/helpers/scrollToId.d.ts.map +0 -1
  187. package/dist/helpers/specDownloads.d.ts +0 -7
  188. package/dist/helpers/specDownloads.d.ts.map +0 -1
  189. package/dist/helpers/specDownloads.js +0 -19
  190. package/dist/helpers/specHelpers.d.ts +0 -16
  191. package/dist/helpers/specHelpers.d.ts.map +0 -1
  192. package/dist/helpers/specHelpers.js +0 -36
  193. package/dist/helpers/waitFor.d.ts +0 -5
  194. package/dist/helpers/waitFor.d.ts.map +0 -1
  195. package/dist/hooks/index.d.ts +0 -5
  196. package/dist/hooks/index.d.ts.map +0 -1
  197. package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
  198. package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
  199. package/dist/legacy/index.d.ts +0 -5
  200. package/dist/legacy/index.d.ts.map +0 -1
  201. package/dist/legacy/types.d.ts +0 -94
  202. package/dist/legacy/types.d.ts.map +0 -1
  203. package/dist/libs/operation.d.ts +0 -15
  204. package/dist/libs/operation.d.ts.map +0 -1
  205. package/dist/libs/operation.js +0 -16
  206. package/dist/stores/index.d.ts +0 -2
  207. package/dist/stores/index.d.ts.map +0 -1
  208. /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
  209. /package/dist/helpers/{scrollToId.js → scroll-to-id.js} +0 -0
@@ -1,29 +1,30 @@
1
- import { defineComponent as T, createElementBlock as i, openBlock as t, createCommentVNode as r, createBlock as o, normalizeClass as z, renderSlot as E, Fragment as s, createTextVNode as a, toDisplayString as n, createVNode as p, unref as v, withCtx as u } from "vue";
2
- import { stringify as L } from "flatted";
3
- import { discriminators as H } from "./helpers/optimizeValueForDisplay.js";
1
+ import { defineComponent as T, createElementBlock as i, openBlock as l, createCommentVNode as u, createBlock as o, normalizeClass as z, renderSlot as D, Fragment as s, createTextVNode as r, toDisplayString as n, createVNode as p, unref as g, withCtx as a } from "vue";
2
+ import { isDefined as H } from "@scalar/oas-utils/helpers";
3
+ import { stringify as E } from "flatted";
4
+ import { discriminators as J } from "./helpers/optimizeValueForDisplay.js";
4
5
  import R from "./SchemaPropertyExamples.vue.js";
5
- import f from "../../ScreenReader.vue.js";
6
+ import B from "../../ScreenReader.vue.js";
6
7
  import m from "./SchemaPropertyDetail.vue.js";
7
- import $ from "../../Badge/Badge.vue.js";
8
- const G = { class: "property-heading" }, J = {
8
+ import L from "../../Badge/Badge.vue.js";
9
+ const G = { class: "property-heading" }, K = {
9
10
  key: 1,
10
11
  class: "property-additional"
11
- }, K = {
12
+ }, Q = {
12
13
  key: 2,
13
14
  class: "property-pattern"
14
- }, Q = {
15
+ }, U = {
15
16
  key: 3,
16
17
  class: "property-deprecated"
17
- }, U = {
18
+ }, W = {
18
19
  key: 4,
19
20
  class: "property-const"
20
- }, W = {
21
+ }, X = {
21
22
  key: 7,
22
23
  class: "property-write-only"
23
- }, X = {
24
+ }, Y = {
24
25
  key: 8,
25
26
  class: "property-read-only"
26
- }, Y = {
27
+ }, Z = {
27
28
  key: 9,
28
29
  class: "property-required"
29
30
  }, ae = /* @__PURE__ */ T({
@@ -38,209 +39,212 @@ const G = { class: "property-heading" }, J = {
38
39
  schemas: {}
39
40
  },
40
41
  setup(d) {
41
- const D = H.find((e) => !d.value || typeof d.value != "object" ? !1 : e in d.value || d.value.items && typeof d.value.items == "object" && e in d.value.items), F = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default, O = (e) => {
42
+ const O = J.find((e) => !d.value || typeof d.value != "object" ? !1 : e in d.value || d.value.items && typeof d.value.items == "object" && e in d.value.items), $ = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, F = (e) => {
42
43
  if (!e)
43
44
  return null;
44
45
  if (e.name)
45
46
  return e.name;
46
47
  if (d.schemas && typeof d.schemas == "object") {
47
- for (const [l, y] of Object.entries(d.schemas))
48
- if (L(y) === L(e))
49
- return l;
48
+ for (const [t, k] of Object.entries(d.schemas))
49
+ if (E(k) === E(e))
50
+ return t;
50
51
  }
51
52
  return null;
52
53
  };
53
- return (e, l) => {
54
- var y, k, g, B, b, N, S, q, w, P, j, I, M;
55
- return t(), i("div", G, [
56
- e.$slots.name ? (t(), i("div", {
54
+ return (e, t) => {
55
+ var k, b, N, S, q, w, P, j, I, M, V, A, C;
56
+ return l(), i("div", G, [
57
+ e.$slots.name ? (l(), i("div", {
57
58
  key: 0,
58
- class: z(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
59
+ class: z(["property-name", { deprecated: (k = e.value) == null ? void 0 : k.deprecated }])
59
60
  }, [
60
- e.pattern ? (t(), i(s, { key: 1 }, [
61
- l[0] || (l[0] = a("/")),
62
- E(e.$slots, "name", {}, void 0, !0),
63
- l[1] || (l[1] = a("/"))
64
- ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
65
- ], 2)) : r("", !0),
66
- e.additional ? (t(), i("div", J, [
67
- (k = e.value) != null && k["x-additionalPropertiesName"] ? (t(), i(s, { key: 0 }, [
68
- a(n(e.value["x-additionalPropertiesName"]), 1)
69
- ], 64)) : (t(), i(s, { key: 1 }, [
70
- a("additional properties")
61
+ e.pattern ? (l(), i(s, { key: 1 }, [
62
+ t[0] || (t[0] = r("/")),
63
+ D(e.$slots, "name", {}, void 0, !0),
64
+ t[1] || (t[1] = r("/"))
65
+ ], 64)) : D(e.$slots, "name", { key: 0 }, void 0, !0)
66
+ ], 2)) : u("", !0),
67
+ e.additional ? (l(), i("div", K, [
68
+ (b = e.value) != null && b["x-additionalPropertiesName"] ? (l(), i(s, { key: 0 }, [
69
+ r(n(e.value["x-additionalPropertiesName"]), 1)
70
+ ], 64)) : (l(), i(s, { key: 1 }, [
71
+ r("additional properties")
71
72
  ], 64))
72
- ])) : r("", !0),
73
- e.pattern ? (t(), i("div", K, [
74
- p(v($), null, {
75
- default: u(() => l[2] || (l[2] = [
76
- a("pattern")
73
+ ])) : u("", !0),
74
+ e.pattern ? (l(), i("div", Q, [
75
+ p(g(L), null, {
76
+ default: a(() => t[2] || (t[2] = [
77
+ r("pattern")
77
78
  ])),
78
79
  _: 1
79
80
  })
80
- ])) : r("", !0),
81
- (g = e.value) != null && g.deprecated ? (t(), i("div", Q, [
82
- p(v($), null, {
83
- default: u(() => l[3] || (l[3] = [
84
- a("deprecated")
81
+ ])) : u("", !0),
82
+ (N = e.value) != null && N.deprecated ? (l(), i("div", U, [
83
+ p(g(L), null, {
84
+ default: a(() => t[3] || (t[3] = [
85
+ r("deprecated")
85
86
  ])),
86
87
  _: 1
87
88
  })
88
- ])) : r("", !0),
89
- (B = e.value) != null && B.const || (b = e.value) != null && b.enum && e.value.enum.length === 1 ? (t(), i("div", U, [
89
+ ])) : u("", !0),
90
+ g(H)((S = e.value) == null ? void 0 : S.const) || (q = e.value) != null && q.enum && e.value.enum.length === 1 ? (l(), i("div", W, [
90
91
  p(m, { truncate: "" }, {
91
- prefix: u(() => l[4] || (l[4] = [
92
- a("const:")
92
+ prefix: a(() => t[4] || (t[4] = [
93
+ r("const:")
93
94
  ])),
94
- default: u(() => [
95
- a(" " + n(e.value.const ?? e.value.enum[0]), 1)
96
- ]),
95
+ default: a(() => {
96
+ var y, f, v;
97
+ return [
98
+ r(" " + n(((y = e.value) == null ? void 0 : y.const) ?? ((v = (f = e.value) == null ? void 0 : f.enum) == null ? void 0 : v[0])), 1)
99
+ ];
100
+ }),
97
101
  _: 1
98
102
  })
99
- ])) : (N = e.value) != null && N.type ? (t(), i(s, { key: 5 }, [
103
+ ])) : (w = e.value) != null && w.type ? (l(), i(s, { key: 5 }, [
100
104
  p(m, null, {
101
- default: u(() => {
102
- var V, A, C;
105
+ default: a(() => {
106
+ var y, f, v;
103
107
  return [
104
- p(f, null, {
105
- default: u(() => l[5] || (l[5] = [
106
- a("Type:")
108
+ p(B, null, {
109
+ default: a(() => t[5] || (t[5] = [
110
+ r("Type:")
107
111
  ])),
108
112
  _: 1
109
113
  }),
110
- (A = (V = e.value) == null ? void 0 : V.items) != null && A.type ? (t(), i(s, { key: 0 }, [
111
- a(n(e.value.type) + " " + n(O(e.value.items) || e.value.items.type) + "[] ", 1)
112
- ], 64)) : (t(), i(s, { key: 1 }, [
113
- a(n(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + n((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
114
+ (f = (y = e.value) == null ? void 0 : y.items) != null && f.type ? (l(), i(s, { key: 0 }, [
115
+ r(n(e.value.type) + " " + n(F(e.value.items) || e.value.items.type) + "[] ", 1)
116
+ ], 64)) : (l(), i(s, { key: 1 }, [
117
+ r(n(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + n((v = e.value) != null && v.nullable ? " | nullable" : ""), 1)
114
118
  ], 64)),
115
- e.value.minItems || e.value.maxItems ? (t(), i(s, { key: 2 }, [
116
- a(n(e.value.minItems) + "…" + n(e.value.maxItems), 1)
117
- ], 64)) : r("", !0)
119
+ e.value.minItems || e.value.maxItems ? (l(), i(s, { key: 2 }, [
120
+ r(n(e.value.minItems) + "…" + n(e.value.maxItems), 1)
121
+ ], 64)) : u("", !0)
118
122
  ];
119
123
  }),
120
124
  _: 1
121
125
  }),
122
- e.value.minLength ? (t(), o(m, { key: 0 }, {
123
- prefix: u(() => l[6] || (l[6] = [
124
- a("min:")
126
+ e.value.minLength ? (l(), o(m, { key: 0 }, {
127
+ prefix: a(() => t[6] || (t[6] = [
128
+ r("min:")
125
129
  ])),
126
- default: u(() => [
127
- a(" " + n(e.value.minLength), 1)
130
+ default: a(() => [
131
+ r(" " + n(e.value.minLength), 1)
128
132
  ]),
129
133
  _: 1
130
- })) : r("", !0),
131
- e.value.maxLength ? (t(), o(m, { key: 1 }, {
132
- prefix: u(() => l[7] || (l[7] = [
133
- a("max:")
134
+ })) : u("", !0),
135
+ e.value.maxLength ? (l(), o(m, { key: 1 }, {
136
+ prefix: a(() => t[7] || (t[7] = [
137
+ r("max:")
134
138
  ])),
135
- default: u(() => [
136
- a(" " + n(e.value.maxLength), 1)
139
+ default: a(() => [
140
+ r(" " + n(e.value.maxLength), 1)
137
141
  ]),
138
142
  _: 1
139
- })) : r("", !0),
140
- e.value.uniqueItems ? (t(), o(m, { key: 2 }, {
141
- default: u(() => l[8] || (l[8] = [
142
- a(" unique! ")
143
+ })) : u("", !0),
144
+ e.value.uniqueItems ? (l(), o(m, { key: 2 }, {
145
+ default: a(() => t[8] || (t[8] = [
146
+ r(" unique! ")
143
147
  ])),
144
148
  _: 1
145
- })) : r("", !0),
146
- e.value.format ? (t(), o(m, { key: 3 }, {
147
- default: u(() => [
148
- p(f, null, {
149
- default: u(() => l[9] || (l[9] = [
150
- a("Format:")
149
+ })) : u("", !0),
150
+ e.value.format ? (l(), o(m, { key: 3 }, {
151
+ default: a(() => [
152
+ p(B, null, {
153
+ default: a(() => t[9] || (t[9] = [
154
+ r("Format:")
151
155
  ])),
152
156
  _: 1
153
157
  }),
154
- a(" " + n(e.value.format), 1)
158
+ r(" " + n(e.value.format), 1)
155
159
  ]),
156
160
  _: 1
157
- })) : r("", !0),
158
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), o(m, { key: 4 }, {
159
- prefix: u(() => l[10] || (l[10] = [
160
- a("greater than:")
161
+ })) : u("", !0),
162
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (l(), o(m, { key: 4 }, {
163
+ prefix: a(() => t[10] || (t[10] = [
164
+ r("greater than:")
161
165
  ])),
162
- default: u(() => [
163
- a(" " + n(e.value.minimum), 1)
166
+ default: a(() => [
167
+ r(" " + n(e.value.minimum), 1)
164
168
  ]),
165
169
  _: 1
166
- })) : r("", !0),
167
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), o(m, { key: 5 }, {
168
- prefix: u(() => l[11] || (l[11] = [
169
- a("min:")
170
+ })) : u("", !0),
171
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (l(), o(m, { key: 5 }, {
172
+ prefix: a(() => t[11] || (t[11] = [
173
+ r("min:")
170
174
  ])),
171
- default: u(() => [
172
- a(" " + n(e.value.minimum), 1)
175
+ default: a(() => [
176
+ r(" " + n(e.value.minimum), 1)
173
177
  ]),
174
178
  _: 1
175
- })) : r("", !0),
176
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), o(m, { key: 6 }, {
177
- prefix: u(() => l[12] || (l[12] = [
178
- a("less than:")
179
+ })) : u("", !0),
180
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (l(), o(m, { key: 6 }, {
181
+ prefix: a(() => t[12] || (t[12] = [
182
+ r("less than:")
179
183
  ])),
180
- default: u(() => [
181
- a(" " + n(e.value.maximum), 1)
184
+ default: a(() => [
185
+ r(" " + n(e.value.maximum), 1)
182
186
  ]),
183
187
  _: 1
184
- })) : r("", !0),
185
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), o(m, { key: 7 }, {
186
- prefix: u(() => l[13] || (l[13] = [
187
- a("max:")
188
+ })) : u("", !0),
189
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (l(), o(m, { key: 7 }, {
190
+ prefix: a(() => t[13] || (t[13] = [
191
+ r("max:")
188
192
  ])),
189
- default: u(() => [
190
- a(" " + n(e.value.maximum), 1)
193
+ default: a(() => [
194
+ r(" " + n(e.value.maximum), 1)
191
195
  ]),
192
196
  _: 1
193
- })) : r("", !0),
194
- e.value.pattern ? (t(), o(m, {
197
+ })) : u("", !0),
198
+ e.value.pattern ? (l(), o(m, {
195
199
  key: 8,
196
200
  code: "",
197
201
  truncate: ""
198
202
  }, {
199
- default: u(() => [
200
- p(f, null, {
201
- default: u(() => l[14] || (l[14] = [
202
- a("Pattern:")
203
+ default: a(() => [
204
+ p(B, null, {
205
+ default: a(() => t[14] || (t[14] = [
206
+ r("Pattern:")
203
207
  ])),
204
208
  _: 1
205
209
  }),
206
- a(" " + n(e.value.pattern), 1)
210
+ r(" " + n(e.value.pattern), 1)
207
211
  ]),
208
212
  _: 1
209
- })) : r("", !0),
210
- e.$props.enum ? (t(), o(m, { key: 9 }, {
211
- default: u(() => l[15] || (l[15] = [
212
- a("enum")
213
+ })) : u("", !0),
214
+ e.$props.enum ? (l(), o(m, { key: 9 }, {
215
+ default: a(() => t[15] || (t[15] = [
216
+ r("enum")
213
217
  ])),
214
218
  _: 1
215
- })) : r("", !0),
216
- e.value.default !== void 0 ? (t(), o(m, {
219
+ })) : u("", !0),
220
+ e.value.default !== void 0 ? (l(), o(m, {
217
221
  key: 10,
218
222
  truncate: ""
219
223
  }, {
220
- prefix: u(() => l[16] || (l[16] = [
221
- a("default:")
224
+ prefix: a(() => t[16] || (t[16] = [
225
+ r("default:")
222
226
  ])),
223
- default: u(() => [
224
- a(" " + n(F(e.value)), 1)
227
+ default: a(() => [
228
+ r(" " + n($(e.value)), 1)
225
229
  ]),
226
230
  _: 1
227
- })) : r("", !0)
228
- ], 64)) : (t(), i(s, { key: 6 }, [
229
- ((S = e.value) == null ? void 0 : S.nullable) === !0 ? (t(), o(m, { key: 0 }, {
230
- default: u(() => l[17] || (l[17] = [
231
- a(" nullable ")
231
+ })) : u("", !0)
232
+ ], 64)) : (l(), i(s, { key: 6 }, [
233
+ ((P = e.value) == null ? void 0 : P.nullable) === !0 ? (l(), o(m, { key: 0 }, {
234
+ default: a(() => t[17] || (t[17] = [
235
+ r(" nullable ")
232
236
  ])),
233
237
  _: 1
234
- })) : r("", !0)
238
+ })) : u("", !0)
235
239
  ], 64)),
236
- (q = e.value) != null && q.writeOnly ? (t(), i("div", W, " write-only ")) : (w = e.value) != null && w.readOnly ? (t(), i("div", X, " read-only ")) : r("", !0),
237
- e.required ? (t(), i("div", Y, " required ")) : r("", !0),
238
- e.withExamples ? (t(), o(R, {
240
+ (j = e.value) != null && j.writeOnly ? (l(), i("div", X, " write-only ")) : (I = e.value) != null && I.readOnly ? (l(), i("div", Y, " read-only ")) : u("", !0),
241
+ e.required ? (l(), i("div", Z, " required ")) : u("", !0),
242
+ e.withExamples ? (l(), o(R, {
239
243
  key: 10,
240
- examples: (P = e.value) == null ? void 0 : P.examples,
241
- example: ((j = e.value) == null ? void 0 : j.example) || ((M = (I = e.value) == null ? void 0 : I.items) == null ? void 0 : M.example),
242
- "discriminator-type": v(D)
243
- }, null, 8, ["examples", "example", "discriminator-type"])) : r("", !0)
244
+ examples: (M = e.value) == null ? void 0 : M.examples,
245
+ example: ((V = e.value) == null ? void 0 : V.example) || ((C = (A = e.value) == null ? void 0 : A.items) == null ? void 0 : C.example),
246
+ "discriminator-type": g(O)
247
+ }, null, 8, ["examples", "example", "discriminator-type"])) : u("", !0)
244
248
  ]);
245
249
  };
246
250
  }
@@ -7,6 +7,6 @@ type SchemaObject = OpenAPI.SchemaObject;
7
7
  * @param schemas - Array of OpenAPI schema objects to merge
8
8
  * @returns Merged schema object
9
9
  */
10
- export declare function mergeAllOfSchemas(schemas: SchemaObject[]): SchemaObject;
10
+ export declare function mergeAllOfSchemas(schemas: SchemaObject[], depth?: number): SchemaObject;
11
11
  export {};
12
12
  //# sourceMappingURL=merge-all-of-schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEpD,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;AAExC;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,YAAY,CAwCvE"}
1
+ {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEpD,KAAK,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;AAQxC;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,SAAI,GAAG,YAAY,CA4ClF"}
@@ -1,75 +1,85 @@
1
- function f(i) {
2
- return !Array.isArray(i) || i.length === 0 ? {} : i.reduce((p, r) => {
1
+ function o(f, t = 0) {
2
+ return t >= 20 || !Array.isArray(f) || f.length === 0 ? {} : f.reduce((p, r) => {
3
3
  if (!r || typeof r != "object")
4
4
  return p;
5
5
  if (r.allOf) {
6
- const t = f(r.allOf);
7
- return f([p, t]);
6
+ const i = o(r.allOf, t + 1);
7
+ return o([p, i], t + 1);
8
8
  }
9
9
  const e = typeof p == "object" ? { ...p } : {};
10
- if (r.properties && (e.properties = s(e.properties || {}, r.properties)), r.items) {
10
+ if (r.properties && (e.properties = n(e.properties || {}, r.properties, t + 1)), r.items) {
11
11
  if (r.type === "array")
12
- e.items = d(e.items || {}, r.items);
12
+ e.items = O(e.items || {}, r.items, t + 1);
13
13
  else if (r.type === "object" && r.items.allOf) {
14
- const t = f(r.items.allOf);
15
- e.properties = s(e.properties || {}, t.properties || {});
14
+ const i = o(r.items.allOf, t + 1);
15
+ e.properties = n(
16
+ e.properties || {},
17
+ i.properties || {},
18
+ t + 1
19
+ );
16
20
  }
17
21
  }
18
- return l(e, r);
22
+ return A(e, r, t + 1);
19
23
  }, {});
20
24
  }
21
- function s(i, p) {
22
- const r = typeof i == "object" ? { ...i } : {};
23
- return Object.entries(p).forEach(([e, t]) => {
24
- var o;
25
- if (!t || typeof t != "object") {
26
- r[e] = t;
25
+ function n(f, t, p = 0) {
26
+ if (p >= 20)
27
+ return f;
28
+ const r = typeof f == "object" ? { ...f } : {};
29
+ return Object.entries(t).forEach(([e, i]) => {
30
+ var s;
31
+ if (!i || typeof i != "object") {
32
+ r[e] = i;
27
33
  return;
28
34
  }
29
35
  if (!r[e]) {
30
- t.type === "array" && ((o = t.items) != null && o.allOf) ? r[e] = {
31
- ...t,
32
- items: f(t.items.allOf)
33
- } : t.allOf ? r[e] = f(t.allOf) : r[e] = t;
36
+ i.type === "array" && ((s = i.items) != null && s.allOf) ? r[e] = {
37
+ ...i,
38
+ items: o(i.items.allOf, p + 1)
39
+ } : i.allOf ? r[e] = o(i.allOf, p + 1) : r[e] = i;
34
40
  return;
35
41
  }
36
- if (t.allOf)
37
- r[e] = f([r[e], ...t.allOf]);
38
- else if (t.type === "array" && t.items)
42
+ if (i.allOf)
43
+ r[e] = o([r[e], ...i.allOf], p + 1);
44
+ else if (i.type === "array" && i.items)
39
45
  r[e] = {
40
46
  ...r[e],
41
47
  type: "array",
42
- items: d(r[e].items || {}, t.items)
48
+ items: O(r[e].items || {}, i.items, p + 1)
43
49
  };
44
50
  else {
45
- const n = r[e].properties || t.properties ? s(r[e].properties || {}, t.properties || {}) : void 0;
51
+ const l = r[e].properties || i.properties ? n(r[e].properties || {}, i.properties || {}, p + 1) : void 0;
46
52
  r[e] = {
47
53
  ...r[e],
48
- ...t
49
- }, n && (r[e].properties = n);
54
+ ...i
55
+ }, l && (r[e].properties = l);
50
56
  }
51
57
  }), r;
52
58
  }
53
- function d(i, p) {
54
- if (i.allOf || p.allOf) {
55
- const e = [...i.allOf || [i], ...p.allOf || [p]];
56
- return f(e);
59
+ function O(f, t, p = 0) {
60
+ if (p >= 20)
61
+ return f;
62
+ if (f.allOf || t.allOf) {
63
+ const e = [...f.allOf || [f], ...t.allOf || [t]];
64
+ return o(e, p + 1);
57
65
  }
58
66
  const r = {
59
- ...i,
60
- ...p
67
+ ...f,
68
+ ...t
61
69
  };
62
- return (r.properties || p.properties) && (r.properties = s(r.properties || {}, p.properties || {})), r;
70
+ return (r.properties || t.properties) && (r.properties = n(r.properties || {}, t.properties || {}, p + 1)), r;
63
71
  }
64
- const l = (i, p) => {
65
- const r = typeof i == "object" ? { ...i } : {};
66
- return p.required && Array.isArray(p.required) && (r.required = [...i.required || [], ...p.required]), p.type && !i.type && (r.type = p.type), p.description && !i.description && (r.description = p.description), ["oneOf", "anyOf"].forEach((e) => {
67
- const t = p[e];
68
- t && t.forEach((o) => {
69
- o.properties && (r.properties = s(r.properties || {}, o.properties));
72
+ const A = (f, t, p = 0) => {
73
+ if (p >= 20)
74
+ return f;
75
+ const r = typeof f == "object" ? { ...f } : {};
76
+ return t.required && Array.isArray(t.required) && (r.required = [...f.required || [], ...t.required]), t.type && !f.type && (r.type = t.type), t.description && !f.description && (r.description = t.description), ["oneOf", "anyOf"].forEach((e) => {
77
+ const i = t[e];
78
+ i && i.forEach((s) => {
79
+ s.properties && (r.properties = n(r.properties || {}, s.properties, p + 1));
70
80
  });
71
81
  }), r;
72
82
  };
73
83
  export {
74
- f as mergeAllOfSchemas
84
+ o as mergeAllOfSchemas
75
85
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-03fcdc42"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-04178576"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -4,7 +4,7 @@ import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
4
4
  import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
5
5
  import { useNavState as w } from "../../../hooks/useNavState.js";
6
6
  import { useSidebar as H } from "../../../hooks/useSidebar.js";
7
- import { isOperationDeprecated as I } from "../../../libs/operation.js";
7
+ import { isOperationDeprecated as I } from "../../../libs/openapi.js";
8
8
  import T from "../../Section/SectionHeaderTag.vue.js";
9
9
  import $ from "../../HttpMethod/HttpMethod.vue.js";
10
10
  const b = ["href"], F = /* @__PURE__ */ u({
@@ -1,7 +1,7 @@
1
1
  import o from "./TagAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-448f4a19"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ab8ddc14"]]);
5
5
  export {
6
- f as default
6
+ d as default
7
7
  };
@@ -1,26 +1,26 @@
1
1
  import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
2
2
  import { ScalarMarkdown as m } from "@scalar/components";
3
- import p from "../../Section/SectionContainerAccordion.vue.js";
4
- import f from "../../Section/SectionHeader.vue.js";
5
- import u from "../../Anchor/Anchor.vue.js";
6
- import g from "../../Section/SectionHeaderTag.vue.js";
7
- import { useNavState as _ } from "../../../hooks/useNavState.js";
3
+ import { useNavState as p } from "../../../hooks/useNavState.js";
4
+ import f from "../../Section/SectionContainerAccordion.vue.js";
5
+ import u from "../../Section/SectionHeader.vue.js";
6
+ import g from "../../Anchor/Anchor.vue.js";
7
+ import _ from "../../Section/SectionHeaderTag.vue.js";
8
8
  const B = /* @__PURE__ */ i({
9
9
  __name: "TagAccordion",
10
10
  props: {
11
11
  tag: {}
12
12
  },
13
13
  setup(S) {
14
- const { getTagId: r } = _();
15
- return (o, v) => (c(), n(e(p), { class: "tag-section" }, {
14
+ const { getTagId: r } = p();
15
+ return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
16
16
  title: t(() => [
17
- a(e(f), { class: "tag-name" }, {
17
+ a(e(u), { class: "tag-name" }, {
18
18
  default: t(() => [
19
- a(e(u), {
19
+ a(e(g), {
20
20
  id: e(r)(o.tag)
21
21
  }, {
22
22
  default: t(() => [
23
- a(e(g), { level: 2 }, {
23
+ a(e(_), { level: 2 }, {
24
24
  default: t(() => [
25
25
  d(s(o.tag.name), 1)
26
26
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AA+HF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAqFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAahE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AA+HF,wBAMG"}