@scalar/api-reference 1.28.33 → 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 +28 -0
- package/dist/browser/standalone.js +6779 -6794
- 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 +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +5 -5
- 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.js +2 -2
- package/dist/components/Content/Content.vue2.js +31 -32
- 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/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/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/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 +42 -42
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- 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 +16 -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,7 +1,101 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as g, ref as h, computed as p, createElementBlock as u, openBlock as i, createBlock as S, Fragment as k, createVNode as s, createElementVNode as r, unref as m, withCtx as O, toDisplayString as d } from "vue";
|
|
2
|
+
import { ScalarListbox as C } from "@scalar/components";
|
|
3
|
+
import { ScalarIconCaretDown as V } from "@scalar/icons";
|
|
4
|
+
import { stringify as f } from "flatted";
|
|
5
|
+
import { mergeAllOfSchemas as j } from "./helpers/merge-all-of-schemas.js";
|
|
6
|
+
import v from "./Schema.vue.js";
|
|
7
|
+
const B = { class: "property-rule" }, N = {
|
|
8
|
+
class: "discriminator-selector bg-b-1.5 hover:bg-b-2 py-1.25 flex cursor-pointer gap-1 rounded-t-lg border border-b-0 px-2 pr-3 text-left",
|
|
9
|
+
type: "button"
|
|
10
|
+
}, w = { class: "text-c-2" }, H = { class: "discriminator-selector-label text-c-1 relative" }, z = { class: "discriminator-panel" }, I = /* @__PURE__ */ g({
|
|
11
|
+
__name: "SchemaDiscriminator",
|
|
12
|
+
props: {
|
|
13
|
+
discriminator: {},
|
|
14
|
+
schemas: {},
|
|
15
|
+
name: {},
|
|
16
|
+
value: {},
|
|
17
|
+
level: {},
|
|
18
|
+
compact: { type: Boolean },
|
|
19
|
+
hideHeading: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
setup(o) {
|
|
22
|
+
const l = h(0), c = p(
|
|
23
|
+
() => o.value[o.discriminator].map((e, t) => ({
|
|
24
|
+
id: String(t),
|
|
25
|
+
label: y(e) || "Schema"
|
|
26
|
+
}))
|
|
27
|
+
), n = p({
|
|
28
|
+
get: () => c.value.find(
|
|
29
|
+
(e) => e.id === String(l.value)
|
|
30
|
+
),
|
|
31
|
+
set: (e) => l.value = Number(e.id)
|
|
32
|
+
}), y = (e) => {
|
|
33
|
+
if (!e)
|
|
34
|
+
return null;
|
|
35
|
+
if (e.name)
|
|
36
|
+
return e.name;
|
|
37
|
+
if (e.title)
|
|
38
|
+
return e.title;
|
|
39
|
+
if (o.schemas && typeof o.schemas == "object") {
|
|
40
|
+
for (const [t, a] of Object.entries(o.schemas))
|
|
41
|
+
if (f(a) === f(e))
|
|
42
|
+
return t;
|
|
43
|
+
return Object.keys(e)[0];
|
|
44
|
+
}
|
|
45
|
+
if (e.type === "array" && e.items)
|
|
46
|
+
return `Array of ${e.items.type || "any"}`;
|
|
47
|
+
if (e.type)
|
|
48
|
+
return e.type;
|
|
49
|
+
if (typeof e == "object") {
|
|
50
|
+
const t = Object.keys(e);
|
|
51
|
+
if (t.length > 0)
|
|
52
|
+
return t[0];
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}, b = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).toLowerCase().replace(/^(\w)/, (t) => t.toUpperCase());
|
|
56
|
+
return (e, t) => (i(), u("div", B, [
|
|
57
|
+
e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (i(), u(k, { key: 0 }, [
|
|
58
|
+
s(m(C), {
|
|
59
|
+
modelValue: n.value,
|
|
60
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => n.value = a),
|
|
61
|
+
options: c.value,
|
|
62
|
+
resize: ""
|
|
63
|
+
}, {
|
|
64
|
+
default: O(() => {
|
|
65
|
+
var a;
|
|
66
|
+
return [
|
|
67
|
+
r("button", N, [
|
|
68
|
+
r("span", w, d(b(e.discriminator)), 1),
|
|
69
|
+
r("span", H, d(((a = n.value) == null ? void 0 : a.label) || "Schema"), 1),
|
|
70
|
+
s(m(V), { class: "z-1" })
|
|
71
|
+
])
|
|
72
|
+
];
|
|
73
|
+
}),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["modelValue", "options"]),
|
|
76
|
+
r("div", z, [
|
|
77
|
+
s(v, {
|
|
78
|
+
compact: e.compact,
|
|
79
|
+
level: e.level,
|
|
80
|
+
hideHeading: e.hideHeading,
|
|
81
|
+
name: e.name,
|
|
82
|
+
noncollapsible: !0,
|
|
83
|
+
schemas: e.schemas,
|
|
84
|
+
value: e.value[e.discriminator][l.value]
|
|
85
|
+
}, null, 8, ["compact", "level", "hideHeading", "name", "schemas", "value"])
|
|
86
|
+
])
|
|
87
|
+
], 64)) : (i(), S(v, {
|
|
88
|
+
key: 1,
|
|
89
|
+
compact: e.compact,
|
|
90
|
+
level: e.level,
|
|
91
|
+
name: e.name,
|
|
92
|
+
noncollapsible: e.level == 0,
|
|
93
|
+
schemas: e.schemas,
|
|
94
|
+
value: m(j)(e.value[e.discriminator])
|
|
95
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
96
|
+
]));
|
|
97
|
+
}
|
|
98
|
+
});
|
|
5
99
|
export {
|
|
6
|
-
|
|
100
|
+
I as default
|
|
7
101
|
};
|
|
@@ -1,167 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { TabGroup as U, TabList as A, Tab as D, TabPanel as H } from "@headlessui/vue";
|
|
3
|
-
import { cva as $, cx as w, ScalarListbox as E } from "@scalar/components";
|
|
4
|
-
import { ScalarIconCaretDown as F } from "@scalar/icons";
|
|
5
|
-
import { stringify as z } from "flatted";
|
|
6
|
-
import { mergeAllOfSchemas as I } from "./helpers/merge-all-of-schemas.js";
|
|
7
|
-
import h from "./Schema.vue.js";
|
|
8
|
-
const M = { class: "property-rule" }, W = { class: "text-c-3" }, G = { class: "schema-tab-label z-1 relative" }, P = { class: "schema-tab-label z-1 text-c-1 relative" }, x = /* @__PURE__ */ B({
|
|
9
|
-
__name: "SchemaDiscriminator",
|
|
10
|
-
props: {
|
|
11
|
-
discriminator: {},
|
|
12
|
-
schemas: {},
|
|
13
|
-
name: {},
|
|
14
|
-
value: {},
|
|
15
|
-
level: {},
|
|
16
|
-
compact: { type: Boolean },
|
|
17
|
-
hideHeading: { type: Boolean }
|
|
18
|
-
},
|
|
19
|
-
setup(s) {
|
|
20
|
-
const r = v(0), d = v(null), p = v(!1);
|
|
21
|
-
N(async () => {
|
|
22
|
-
if (await L(), d.value) {
|
|
23
|
-
const e = d.value;
|
|
24
|
-
p.value = e.scrollWidth > e.clientWidth;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const g = $({
|
|
28
|
-
base: "schema-tab",
|
|
29
|
-
variants: {
|
|
30
|
-
selected: {
|
|
31
|
-
true: "schema-tab-selected",
|
|
32
|
-
false: "text-c-3"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}), k = C(
|
|
36
|
-
() => s.value[s.discriminator].map((e, a) => ({
|
|
37
|
-
id: String(a),
|
|
38
|
-
label: S(e) || "Schema"
|
|
39
|
-
}))
|
|
40
|
-
), f = C({
|
|
41
|
-
get: () => k.value.find(
|
|
42
|
-
(e) => e.id === String(r.value)
|
|
43
|
-
),
|
|
44
|
-
set: (e) => r.value = Number(e.id)
|
|
45
|
-
}), S = (e) => {
|
|
46
|
-
if (!e)
|
|
47
|
-
return null;
|
|
48
|
-
if (e.name)
|
|
49
|
-
return e.name;
|
|
50
|
-
if (e.title)
|
|
51
|
-
return e.title;
|
|
52
|
-
if (s.schemas && typeof s.schemas == "object") {
|
|
53
|
-
for (const [a, t] of Object.entries(s.schemas))
|
|
54
|
-
if (z(t) === z(e))
|
|
55
|
-
return a;
|
|
56
|
-
return Object.keys(e)[0];
|
|
57
|
-
}
|
|
58
|
-
if (e.type === "array" && e.items)
|
|
59
|
-
return `Array of ${e.items.type || "any"}`;
|
|
60
|
-
if (e.type)
|
|
61
|
-
return e.type;
|
|
62
|
-
if (typeof e == "object") {
|
|
63
|
-
const a = Object.keys(e);
|
|
64
|
-
if (a.length > 0)
|
|
65
|
-
return a[0];
|
|
66
|
-
}
|
|
67
|
-
return null;
|
|
68
|
-
}, j = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (a) => a.toUpperCase()).toLowerCase().replace(/^(\w)/, (a) => a.toUpperCase());
|
|
69
|
-
return (e, a) => (n(), b("div", M, [
|
|
70
|
-
e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (n(), i(l(U), {
|
|
71
|
-
key: 0,
|
|
72
|
-
modelValue: r.value,
|
|
73
|
-
"onUpdate:modelValue": a[1] || (a[1] = (t) => r.value = t),
|
|
74
|
-
as: "div"
|
|
75
|
-
}, {
|
|
76
|
-
default: o(() => [
|
|
77
|
-
u(l(A), { class: "discriminator-tab-list py-1.25 flex flex-col gap-1 rounded-t-lg border border-b-0 px-2 pr-3" }, {
|
|
78
|
-
default: o(() => [
|
|
79
|
-
m("span", W, y(j(e.discriminator)), 1),
|
|
80
|
-
m("div", {
|
|
81
|
-
ref_key: "tabsContainer",
|
|
82
|
-
ref: d,
|
|
83
|
-
class: "flex items-center gap-1.5"
|
|
84
|
-
}, [
|
|
85
|
-
p.value ? (n(), i(l(E), {
|
|
86
|
-
key: 1,
|
|
87
|
-
modelValue: f.value,
|
|
88
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => f.value = t),
|
|
89
|
-
options: k.value,
|
|
90
|
-
resize: ""
|
|
91
|
-
}, {
|
|
92
|
-
default: o(() => {
|
|
93
|
-
var t;
|
|
94
|
-
return [
|
|
95
|
-
m("div", {
|
|
96
|
-
class: T(["flex cursor-pointer items-center gap-1", l(w)(l(g)({ selected: !0 }))])
|
|
97
|
-
}, [
|
|
98
|
-
m("span", P, y(((t = f.value) == null ? void 0 : t.label) || "Schema"), 1),
|
|
99
|
-
u(l(F), { class: "z-1" })
|
|
100
|
-
], 2)
|
|
101
|
-
];
|
|
102
|
-
}),
|
|
103
|
-
_: 1
|
|
104
|
-
}, 8, ["modelValue", "options"])) : (n(!0), b(V, { key: 0 }, O(e.value[e.discriminator], (t, c) => (n(), i(l(D), {
|
|
105
|
-
key: c,
|
|
106
|
-
class: T(
|
|
107
|
-
l(w)(l(g)({ selected: r.value === c }))
|
|
108
|
-
),
|
|
109
|
-
onClick: (Z) => r.value = c
|
|
110
|
-
}, {
|
|
111
|
-
default: o(() => [
|
|
112
|
-
m("span", G, y(S(t) || "Schema"), 1)
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
116
|
-
], 512)
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}),
|
|
120
|
-
p.value ? (n(), i(l(H), {
|
|
121
|
-
key: 1,
|
|
122
|
-
class: "discriminator-panel"
|
|
123
|
-
}, {
|
|
124
|
-
default: o(() => [
|
|
125
|
-
u(h, {
|
|
126
|
-
compact: e.compact,
|
|
127
|
-
hideHeading: e.hideHeading,
|
|
128
|
-
name: e.name,
|
|
129
|
-
noncollapsible: !0,
|
|
130
|
-
schemas: e.schemas,
|
|
131
|
-
value: e.value[e.discriminator][r.value]
|
|
132
|
-
}, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
})) : (n(!0), b(V, { key: 0 }, O(e.value[e.discriminator], (t, c) => (n(), i(l(H), {
|
|
136
|
-
key: c,
|
|
137
|
-
class: "discriminator-panel"
|
|
138
|
-
}, {
|
|
139
|
-
default: o(() => [
|
|
140
|
-
u(h, {
|
|
141
|
-
compact: e.compact,
|
|
142
|
-
hideHeading: e.hideHeading,
|
|
143
|
-
name: e.name,
|
|
144
|
-
noncollapsible: !0,
|
|
145
|
-
schemas: e.schemas,
|
|
146
|
-
value: t
|
|
147
|
-
}, null, 8, ["compact", "hideHeading", "name", "schemas", "value"])
|
|
148
|
-
]),
|
|
149
|
-
_: 2
|
|
150
|
-
}, 1024))), 128))
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["modelValue"])) : (n(), i(h, {
|
|
154
|
-
key: 1,
|
|
155
|
-
compact: e.compact,
|
|
156
|
-
level: e.level,
|
|
157
|
-
name: e.name,
|
|
158
|
-
noncollapsible: e.level == 0,
|
|
159
|
-
schemas: e.schemas,
|
|
160
|
-
value: l(I)(e.value[e.discriminator])
|
|
161
|
-
}, null, 8, ["compact", "level", "name", "noncollapsible", "schemas", "value"]))
|
|
162
|
-
]));
|
|
163
|
-
}
|
|
164
|
-
});
|
|
1
|
+
import f from "./SchemaDiscriminator.vue.js";
|
|
165
2
|
export {
|
|
166
|
-
|
|
3
|
+
f as default
|
|
167
4
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAghBA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAe9C;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,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;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AAmd1B,0BAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaProperty.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-03890de7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Z, computed as y, createBlock as h, openBlock as l, resolveDynamicComponent as M, normalizeClass as A, withCtx as m, createCommentVNode as r, createElementBlock as s, createVNode as a, createSlots as G, createTextVNode as D, toDisplayString as c, unref as i, Fragment as d, renderList as k, createElementVNode as f } from "vue";
|
|
2
2
|
import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
|
|
3
|
-
import { ScalarMarkdown as
|
|
3
|
+
import { ScalarMarkdown as H, ScalarIcon as W } from "@scalar/components";
|
|
4
4
|
import { optimizeValueForDisplay as X, discriminators as Y } from "./helpers/optimizeValueForDisplay.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import I from "./Schema.vue.js";
|
|
6
|
+
import L from "./SchemaDiscriminator.vue.js";
|
|
7
7
|
import x from "./SchemaPropertyHeading.vue.js";
|
|
8
8
|
import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
|
|
9
9
|
const ne = {
|
|
@@ -27,7 +27,7 @@ const ne = {
|
|
|
27
27
|
}, de = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "children"
|
|
30
|
-
}, Be = /* @__PURE__ */
|
|
30
|
+
}, Be = /* @__PURE__ */ Z({
|
|
31
31
|
__name: "SchemaProperty",
|
|
32
32
|
props: {
|
|
33
33
|
is: {},
|
|
@@ -44,8 +44,8 @@ const ne = {
|
|
|
44
44
|
schemas: {},
|
|
45
45
|
hideHeading: { type: Boolean }
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const
|
|
47
|
+
setup(O) {
|
|
48
|
+
const $ = O, S = {
|
|
49
49
|
integer: {
|
|
50
50
|
_default: "Integer numbers.",
|
|
51
51
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -58,20 +58,20 @@ const ne = {
|
|
|
58
58
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
59
59
|
binary: "binary data, used to describe files"
|
|
60
60
|
}
|
|
61
|
-
}, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !
|
|
61
|
+
}, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !S[e.type] ? null : S[e.type][e.format || "_default"], p = (e) => {
|
|
62
62
|
var t;
|
|
63
63
|
return (e == null ? void 0 : e.enum) || ((t = e == null ? void 0 : e.items) == null ? void 0 : t.enum) || [];
|
|
64
64
|
}, C = y(
|
|
65
65
|
() => p(n.value).length > 9
|
|
66
|
-
), P = y(() => C.value ? 5 : 9),
|
|
66
|
+
), P = y(() => C.value ? 5 : 9), R = y(
|
|
67
67
|
() => p(n.value).slice(0, P.value)
|
|
68
|
-
),
|
|
68
|
+
), T = y(
|
|
69
69
|
() => p(n.value).slice(P.value)
|
|
70
|
-
), n = y(() => X(
|
|
70
|
+
), n = y(() => X($.value)), U = (e, t, g, b, v) => t || g || b || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
|
|
71
71
|
return (e, t) => {
|
|
72
72
|
var g;
|
|
73
73
|
return l(), h(M(e.is ?? "li"), {
|
|
74
|
-
class:
|
|
74
|
+
class: A(["property", [
|
|
75
75
|
(B(e.description, n.value), ""),
|
|
76
76
|
`property--level-${e.level}`,
|
|
77
77
|
{
|
|
@@ -83,7 +83,7 @@ const ne = {
|
|
|
83
83
|
default: m(() => {
|
|
84
84
|
var b, v, w, q, F, N, V, j, z;
|
|
85
85
|
return [
|
|
86
|
-
|
|
86
|
+
U(
|
|
87
87
|
n.value,
|
|
88
88
|
e.name,
|
|
89
89
|
e.additional,
|
|
@@ -114,11 +114,11 @@ const ne = {
|
|
|
114
114
|
} : void 0
|
|
115
115
|
]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas"])) : r("", !0),
|
|
116
116
|
B(e.description, n.value) ? (l(), s("div", ne, [
|
|
117
|
-
a(i(
|
|
117
|
+
a(i(H), {
|
|
118
118
|
value: B(e.description, n.value)
|
|
119
119
|
}, null, 8, ["value"])
|
|
120
120
|
])) : E(n.value) ? (l(), s("div", te, [
|
|
121
|
-
a(i(
|
|
121
|
+
a(i(H), {
|
|
122
122
|
value: E(n.value) || ""
|
|
123
123
|
}, null, 8, ["value"])
|
|
124
124
|
])) : r("", !0),
|
|
@@ -132,13 +132,13 @@ const ne = {
|
|
|
132
132
|
f("div", ae, c(o), 1)
|
|
133
133
|
]),
|
|
134
134
|
f("div", ie, [
|
|
135
|
-
a(i(
|
|
135
|
+
a(i(H), {
|
|
136
136
|
value: n.value["x-enumDescriptions"][o]
|
|
137
137
|
}, null, 8, ["value"])
|
|
138
138
|
])
|
|
139
139
|
]))), 128))
|
|
140
140
|
])) : (l(), s("ul", re, [
|
|
141
|
-
(l(!0), s(d, null, k(
|
|
141
|
+
(l(!0), s(d, null, k(R.value, (o) => (l(), s("li", {
|
|
142
142
|
key: o,
|
|
143
143
|
class: "property-enum-value"
|
|
144
144
|
}, [
|
|
@@ -148,7 +148,7 @@ const ne = {
|
|
|
148
148
|
default: m(({ open: o }) => [
|
|
149
149
|
a(i(K), null, {
|
|
150
150
|
default: m(() => [
|
|
151
|
-
(l(!0), s(d, null, k(
|
|
151
|
+
(l(!0), s(d, null, k(T.value, (u) => (l(), s("li", {
|
|
152
152
|
key: u,
|
|
153
153
|
class: "property-enum-value"
|
|
154
154
|
}, [
|
|
@@ -160,7 +160,7 @@ const ne = {
|
|
|
160
160
|
a(i(Q), { class: "enum-toggle-button" }, {
|
|
161
161
|
default: m(() => [
|
|
162
162
|
a(i(W), {
|
|
163
|
-
class:
|
|
163
|
+
class: A(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
|
|
164
164
|
icon: "Add",
|
|
165
165
|
size: "sm"
|
|
166
166
|
}, null, 8, ["class"]),
|
|
@@ -174,17 +174,18 @@ const ne = {
|
|
|
174
174
|
]))
|
|
175
175
|
])) : r("", !0),
|
|
176
176
|
((q = n.value) == null ? void 0 : q.type) === "object" && ((F = n.value) != null && F.properties || (N = n.value) != null && N.additionalProperties) ? (l(), s("div", ce, [
|
|
177
|
-
a(
|
|
177
|
+
a(I, {
|
|
178
178
|
compact: e.compact,
|
|
179
179
|
level: e.level + 1,
|
|
180
180
|
name: e.name,
|
|
181
181
|
noncollapsible: e.noncollapsible,
|
|
182
|
-
value: n.value
|
|
183
|
-
|
|
182
|
+
value: n.value,
|
|
183
|
+
schemas: e.schemas
|
|
184
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "value", "schemas"])
|
|
184
185
|
])) : r("", !0),
|
|
185
186
|
(V = n.value) != null && V.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), s(d, { key: 5 }, [
|
|
186
187
|
["object"].includes((z = (j = n.value) == null ? void 0 : j.items) == null ? void 0 : z.type) ? (l(), s("div", de, [
|
|
187
|
-
a(
|
|
188
|
+
a(I, {
|
|
188
189
|
compact: e.compact,
|
|
189
190
|
level: e.level + 1,
|
|
190
191
|
name: e.name,
|
|
@@ -194,9 +195,9 @@ const ne = {
|
|
|
194
195
|
])) : r("", !0)
|
|
195
196
|
], 64)) : r("", !0),
|
|
196
197
|
(l(!0), s(d, null, k(i(Y), (o) => {
|
|
197
|
-
var u,
|
|
198
|
+
var u, _;
|
|
198
199
|
return l(), s(d, { key: o }, [
|
|
199
|
-
(u = n.value) != null && u[o] ? (l(), h(
|
|
200
|
+
(u = n.value) != null && u[o] ? (l(), h(L, {
|
|
200
201
|
key: 0,
|
|
201
202
|
compact: e.compact,
|
|
202
203
|
discriminator: o,
|
|
@@ -206,7 +207,7 @@ const ne = {
|
|
|
206
207
|
noncollapsible: e.noncollapsible,
|
|
207
208
|
schemas: e.schemas,
|
|
208
209
|
value: n.value
|
|
209
|
-
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (
|
|
210
|
+
}, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (_ = n.value) != null && _.items && typeof o == "string" && typeof n.value.items == "object" && !("type" in n.value.items) && o in n.value.items ? (l(), h(L, {
|
|
210
211
|
key: 1,
|
|
211
212
|
compact: e.compact,
|
|
212
213
|
discriminator: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAqSA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,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;AA8DF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b06c8228"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -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
|
};
|