@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.
- package/CHANGELOG.md +62 -0
- package/dist/browser/standalone.js +7541 -7368
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/components/Anchor/Anchor.vue.js +2 -2
- package/dist/components/Anchor/Anchor.vue2.js +24 -22
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +50 -50
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts +1 -1
- package/dist/components/Content/ClientLibraries/useFeaturedHttpClients.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +56 -56
- package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
- package/dist/components/Content/Introduction/Introduction.vue2.js +21 -21
- package/dist/components/Content/Lazy/Loading.vue.js +22 -22
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +17 -17
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +14 -14
- package/dist/components/Content/Schema/Schema.preview.d.ts +98 -15
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +2 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +99 -5
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +2 -165
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +27 -26
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +142 -138
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +50 -40
- package/dist/components/Content/Tag/OperationsListItem.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +1 -1
- package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
- package/dist/components/Content/Tag/TagAccordion.vue2.js +10 -10
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +8 -8
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagSection.vue.js +2 -2
- package/dist/components/Content/Tag/TagSection.vue2.js +8 -8
- package/dist/components/GettingStarted.vue.d.ts +2 -2
- package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ModernLayout.vue.js +2 -2
- package/dist/components/Layouts/ModernLayout.vue2.js +4 -4
- package/dist/components/MobileHeader.vue.js +3 -3
- package/dist/components/Section/CompactSection.vue.js +2 -2
- package/dist/components/Section/CompactSection.vue2.js +4 -4
- package/dist/components/Section/Section.vue.d.ts.map +1 -1
- package/dist/components/Section/Section.vue.js +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
- package/dist/components/ShowMoreButton.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
- package/dist/components/Sidebar/SidebarElement.vue2.js +6 -6
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -1
- package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +30 -21
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +3 -3
- package/dist/features/ApiClientModal/index.d.ts +1 -1
- package/dist/features/ApiClientModal/index.d.ts.map +1 -1
- package/dist/features/ApiClientModal/useApiClient.d.ts +170 -90
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.js +33 -28
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +17 -17
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +12 -12
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
- package/dist/features/Operation/Webhooks.vue.js +2 -2
- package/dist/features/Operation/Webhooks.vue2.js +13 -13
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +18 -18
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +38 -32
- package/dist/features/Operation/hooks/useResponses.d.ts +1 -0
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
- package/dist/features/Operation/hooks/useResponses.js +13 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.d.ts +1 -1
- package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
- package/dist/features/Search/useSearchIndex.js +20 -21
- package/dist/helpers/{isMacOs.d.ts → is-mac-os.d.ts} +1 -1
- package/dist/helpers/is-mac-os.d.ts.map +1 -0
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +1 -1
- package/dist/helpers/{scrollToId.d.ts → scroll-to-id.d.ts} +1 -1
- package/dist/helpers/scroll-to-id.d.ts.map +1 -0
- package/dist/helpers/sleep.d.ts +0 -2
- package/dist/helpers/sleep.d.ts.map +1 -1
- package/dist/hooks/useNavState.d.ts.map +1 -1
- package/dist/hooks/useNavState.js +28 -28
- package/dist/hooks/useReactiveSpec.js +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/hooks/useSidebar.js +45 -49
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -28
- package/dist/legacy/fixtures/index.d.ts +1 -1
- package/dist/legacy/fixtures/index.d.ts.map +1 -1
- package/dist/legacy/helpers/index.d.ts +1 -1
- package/dist/legacy/helpers/index.d.ts.map +1 -1
- package/dist/libs/download.d.ts +9 -0
- package/dist/libs/download.d.ts.map +1 -0
- package/dist/libs/download.js +19 -0
- package/dist/{helpers/getLowestHeadingLevel.d.ts → libs/markdown.d.ts} +5 -1
- package/dist/libs/markdown.d.ts.map +1 -0
- package/dist/libs/markdown.js +18 -0
- package/dist/libs/openapi.d.ts +56 -0
- package/dist/libs/openapi.d.ts.map +1 -0
- package/dist/libs/openapi.js +102 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +1 -45
- package/dist/types.d.ts.map +1 -1
- package/package.json +21 -21
- package/dist/esm.js +0 -34
- package/dist/helpers/createEmptySpecification.d.ts +0 -8
- package/dist/helpers/createEmptySpecification.d.ts.map +0 -1
- package/dist/helpers/createEmptySpecification.js +0 -27
- package/dist/helpers/deepMerge.d.ts +0 -5
- package/dist/helpers/deepMerge.d.ts.map +0 -1
- package/dist/helpers/deepMerge.js +0 -8
- package/dist/helpers/generateParameters.d.ts +0 -6
- package/dist/helpers/generateParameters.d.ts.map +0 -1
- package/dist/helpers/get-request.d.ts +0 -59
- package/dist/helpers/get-request.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.d.ts +0 -6
- package/dist/helpers/getHeadingsFromMarkdown.d.ts.map +0 -1
- package/dist/helpers/getHeadingsFromMarkdown.js +0 -13
- package/dist/helpers/getLowestHeadingLevel.d.ts.map +0 -1
- package/dist/helpers/getLowestHeadingLevel.js +0 -7
- package/dist/helpers/getModels.d.ts +0 -7
- package/dist/helpers/getModels.d.ts.map +0 -1
- package/dist/helpers/getModels.js +0 -22
- package/dist/helpers/getVariableNames.d.ts +0 -5
- package/dist/helpers/getVariableNames.d.ts.map +0 -1
- package/dist/helpers/hasModels.d.ts +0 -3
- package/dist/helpers/hasModels.d.ts.map +0 -1
- package/dist/helpers/hasModels.js +0 -5
- package/dist/helpers/hasSecuritySchemes.d.ts +0 -3
- package/dist/helpers/hasSecuritySchemes.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.d.ts +0 -3
- package/dist/helpers/hasWebhooks.d.ts.map +0 -1
- package/dist/helpers/hasWebhooks.js +0 -4
- package/dist/helpers/index.d.ts +0 -17
- package/dist/helpers/index.d.ts.map +0 -1
- package/dist/helpers/isMacOs.d.ts.map +0 -1
- package/dist/helpers/mapFromObject.d.ts +0 -8
- package/dist/helpers/mapFromObject.d.ts.map +0 -1
- package/dist/helpers/mergeAllObjects.d.ts +0 -5
- package/dist/helpers/mergeAllObjects.d.ts.map +0 -1
- package/dist/helpers/scrollToId.d.ts.map +0 -1
- package/dist/helpers/specDownloads.d.ts +0 -7
- package/dist/helpers/specDownloads.d.ts.map +0 -1
- package/dist/helpers/specDownloads.js +0 -19
- package/dist/helpers/specHelpers.d.ts +0 -16
- package/dist/helpers/specHelpers.d.ts.map +0 -1
- package/dist/helpers/specHelpers.js +0 -36
- package/dist/helpers/waitFor.d.ts +0 -5
- package/dist/helpers/waitFor.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +0 -5
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +0 -1
- package/dist/legacy/index.d.ts +0 -5
- package/dist/legacy/index.d.ts.map +0 -1
- package/dist/legacy/types.d.ts +0 -94
- package/dist/legacy/types.d.ts.map +0 -1
- package/dist/libs/operation.d.ts +0 -15
- package/dist/libs/operation.d.ts.map +0 -1
- package/dist/libs/operation.js +0 -16
- package/dist/stores/index.d.ts +0 -2
- package/dist/stores/index.d.ts.map +0 -1
- /package/dist/helpers/{isMacOs.js → is-mac-os.js} +0 -0
- /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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
6
|
+
import B from "../../ScreenReader.vue.js";
|
|
6
7
|
import m from "./SchemaPropertyDetail.vue.js";
|
|
7
|
-
import
|
|
8
|
-
const G = { class: "property-heading" },
|
|
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
|
-
},
|
|
12
|
+
}, Q = {
|
|
12
13
|
key: 2,
|
|
13
14
|
class: "property-pattern"
|
|
14
|
-
},
|
|
15
|
+
}, U = {
|
|
15
16
|
key: 3,
|
|
16
17
|
class: "property-deprecated"
|
|
17
|
-
},
|
|
18
|
+
}, W = {
|
|
18
19
|
key: 4,
|
|
19
20
|
class: "property-const"
|
|
20
|
-
},
|
|
21
|
+
}, X = {
|
|
21
22
|
key: 7,
|
|
22
23
|
class: "property-write-only"
|
|
23
|
-
},
|
|
24
|
+
}, Y = {
|
|
24
25
|
key: 8,
|
|
25
26
|
class: "property-read-only"
|
|
26
|
-
},
|
|
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
|
|
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 [
|
|
48
|
-
if (
|
|
49
|
-
return
|
|
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,
|
|
54
|
-
var
|
|
55
|
-
return
|
|
56
|
-
e.$slots.name ? (
|
|
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: (
|
|
59
|
+
class: z(["property-name", { deprecated: (k = e.value) == null ? void 0 : k.deprecated }])
|
|
59
60
|
}, [
|
|
60
|
-
e.pattern ? (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
], 64)) :
|
|
65
|
-
], 2)) :
|
|
66
|
-
e.additional ? (
|
|
67
|
-
(
|
|
68
|
-
|
|
69
|
-
], 64)) : (
|
|
70
|
-
|
|
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
|
-
])) :
|
|
73
|
-
e.pattern ? (
|
|
74
|
-
p(
|
|
75
|
-
default:
|
|
76
|
-
|
|
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
|
-
])) :
|
|
81
|
-
(
|
|
82
|
-
p(
|
|
83
|
-
default:
|
|
84
|
-
|
|
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
|
-
])) :
|
|
89
|
-
(
|
|
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:
|
|
92
|
-
|
|
92
|
+
prefix: a(() => t[4] || (t[4] = [
|
|
93
|
+
r("const:")
|
|
93
94
|
])),
|
|
94
|
-
default:
|
|
95
|
-
|
|
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
|
-
])) : (
|
|
103
|
+
])) : (w = e.value) != null && w.type ? (l(), i(s, { key: 5 }, [
|
|
100
104
|
p(m, null, {
|
|
101
|
-
default:
|
|
102
|
-
var
|
|
105
|
+
default: a(() => {
|
|
106
|
+
var y, f, v;
|
|
103
107
|
return [
|
|
104
|
-
p(
|
|
105
|
-
default:
|
|
106
|
-
|
|
108
|
+
p(B, null, {
|
|
109
|
+
default: a(() => t[5] || (t[5] = [
|
|
110
|
+
r("Type:")
|
|
107
111
|
])),
|
|
108
112
|
_: 1
|
|
109
113
|
}),
|
|
110
|
-
(
|
|
111
|
-
|
|
112
|
-
], 64)) : (
|
|
113
|
-
|
|
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 ? (
|
|
116
|
-
|
|
117
|
-
], 64)) :
|
|
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 ? (
|
|
123
|
-
prefix:
|
|
124
|
-
|
|
126
|
+
e.value.minLength ? (l(), o(m, { key: 0 }, {
|
|
127
|
+
prefix: a(() => t[6] || (t[6] = [
|
|
128
|
+
r("min:")
|
|
125
129
|
])),
|
|
126
|
-
default:
|
|
127
|
-
|
|
130
|
+
default: a(() => [
|
|
131
|
+
r(" " + n(e.value.minLength), 1)
|
|
128
132
|
]),
|
|
129
133
|
_: 1
|
|
130
|
-
})) :
|
|
131
|
-
e.value.maxLength ? (
|
|
132
|
-
prefix:
|
|
133
|
-
|
|
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:
|
|
136
|
-
|
|
139
|
+
default: a(() => [
|
|
140
|
+
r(" " + n(e.value.maxLength), 1)
|
|
137
141
|
]),
|
|
138
142
|
_: 1
|
|
139
|
-
})) :
|
|
140
|
-
e.value.uniqueItems ? (
|
|
141
|
-
default:
|
|
142
|
-
|
|
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
|
-
})) :
|
|
146
|
-
e.value.format ? (
|
|
147
|
-
default:
|
|
148
|
-
p(
|
|
149
|
-
default:
|
|
150
|
-
|
|
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
|
-
|
|
158
|
+
r(" " + n(e.value.format), 1)
|
|
155
159
|
]),
|
|
156
160
|
_: 1
|
|
157
|
-
})) :
|
|
158
|
-
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (
|
|
159
|
-
prefix:
|
|
160
|
-
|
|
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:
|
|
163
|
-
|
|
166
|
+
default: a(() => [
|
|
167
|
+
r(" " + n(e.value.minimum), 1)
|
|
164
168
|
]),
|
|
165
169
|
_: 1
|
|
166
|
-
})) :
|
|
167
|
-
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (
|
|
168
|
-
prefix:
|
|
169
|
-
|
|
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:
|
|
172
|
-
|
|
175
|
+
default: a(() => [
|
|
176
|
+
r(" " + n(e.value.minimum), 1)
|
|
173
177
|
]),
|
|
174
178
|
_: 1
|
|
175
|
-
})) :
|
|
176
|
-
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (
|
|
177
|
-
prefix:
|
|
178
|
-
|
|
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:
|
|
181
|
-
|
|
184
|
+
default: a(() => [
|
|
185
|
+
r(" " + n(e.value.maximum), 1)
|
|
182
186
|
]),
|
|
183
187
|
_: 1
|
|
184
|
-
})) :
|
|
185
|
-
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (
|
|
186
|
-
prefix:
|
|
187
|
-
|
|
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:
|
|
190
|
-
|
|
193
|
+
default: a(() => [
|
|
194
|
+
r(" " + n(e.value.maximum), 1)
|
|
191
195
|
]),
|
|
192
196
|
_: 1
|
|
193
|
-
})) :
|
|
194
|
-
e.value.pattern ? (
|
|
197
|
+
})) : u("", !0),
|
|
198
|
+
e.value.pattern ? (l(), o(m, {
|
|
195
199
|
key: 8,
|
|
196
200
|
code: "",
|
|
197
201
|
truncate: ""
|
|
198
202
|
}, {
|
|
199
|
-
default:
|
|
200
|
-
p(
|
|
201
|
-
default:
|
|
202
|
-
|
|
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
|
-
|
|
210
|
+
r(" " + n(e.value.pattern), 1)
|
|
207
211
|
]),
|
|
208
212
|
_: 1
|
|
209
|
-
})) :
|
|
210
|
-
e.$props.enum ? (
|
|
211
|
-
default:
|
|
212
|
-
|
|
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
|
-
})) :
|
|
216
|
-
e.value.default !== void 0 ? (
|
|
219
|
+
})) : u("", !0),
|
|
220
|
+
e.value.default !== void 0 ? (l(), o(m, {
|
|
217
221
|
key: 10,
|
|
218
222
|
truncate: ""
|
|
219
223
|
}, {
|
|
220
|
-
prefix:
|
|
221
|
-
|
|
224
|
+
prefix: a(() => t[16] || (t[16] = [
|
|
225
|
+
r("default:")
|
|
222
226
|
])),
|
|
223
|
-
default:
|
|
224
|
-
|
|
227
|
+
default: a(() => [
|
|
228
|
+
r(" " + n($(e.value)), 1)
|
|
225
229
|
]),
|
|
226
230
|
_: 1
|
|
227
|
-
})) :
|
|
228
|
-
], 64)) : (
|
|
229
|
-
((
|
|
230
|
-
default:
|
|
231
|
-
|
|
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
|
-
})) :
|
|
238
|
+
})) : u("", !0)
|
|
235
239
|
], 64)),
|
|
236
|
-
(
|
|
237
|
-
e.required ? (
|
|
238
|
-
e.withExamples ? (
|
|
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: (
|
|
241
|
-
example: ((
|
|
242
|
-
"discriminator-type":
|
|
243
|
-
}, null, 8, ["examples", "example", "discriminator-type"])) :
|
|
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;
|
|
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
|
|
2
|
-
return !Array.isArray(
|
|
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
|
|
7
|
-
return
|
|
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 =
|
|
10
|
+
if (r.properties && (e.properties = n(e.properties || {}, r.properties, t + 1)), r.items) {
|
|
11
11
|
if (r.type === "array")
|
|
12
|
-
e.items =
|
|
12
|
+
e.items = O(e.items || {}, r.items, t + 1);
|
|
13
13
|
else if (r.type === "object" && r.items.allOf) {
|
|
14
|
-
const
|
|
15
|
-
e.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
|
|
22
|
+
return A(e, r, t + 1);
|
|
19
23
|
}, {});
|
|
20
24
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
31
|
-
...
|
|
32
|
-
items:
|
|
33
|
-
} :
|
|
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 (
|
|
37
|
-
r[e] =
|
|
38
|
-
else if (
|
|
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:
|
|
48
|
+
items: O(r[e].items || {}, i.items, p + 1)
|
|
43
49
|
};
|
|
44
50
|
else {
|
|
45
|
-
const
|
|
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
|
-
...
|
|
49
|
-
},
|
|
54
|
+
...i
|
|
55
|
+
}, l && (r[e].properties = l);
|
|
50
56
|
}
|
|
51
57
|
}), r;
|
|
52
58
|
}
|
|
53
|
-
function
|
|
54
|
-
if (
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
...
|
|
60
|
-
...
|
|
67
|
+
...f,
|
|
68
|
+
...t
|
|
61
69
|
};
|
|
62
|
-
return (r.properties ||
|
|
70
|
+
return (r.properties || t.properties) && (r.properties = n(r.properties || {}, t.properties || {}, p + 1)), r;
|
|
63
71
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
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-
|
|
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/
|
|
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
|
|
4
|
+
const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ab8ddc14"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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 "
|
|
4
|
-
import f from "../../Section/
|
|
5
|
-
import u from "../../
|
|
6
|
-
import g from "../../
|
|
7
|
-
import
|
|
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(
|
|
14
|
+
const { getTagId: r } = p();
|
|
15
|
+
return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
|
|
16
16
|
title: t(() => [
|
|
17
|
-
a(e(
|
|
17
|
+
a(e(u), { class: "tag-name" }, {
|
|
18
18
|
default: t(() => [
|
|
19
|
-
a(e(
|
|
19
|
+
a(e(g), {
|
|
20
20
|
id: e(r)(o.tag)
|
|
21
21
|
}, {
|
|
22
22
|
default: t(() => [
|
|
23
|
-
a(e(
|
|
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":"
|
|
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"}
|