@scalar/api-reference 1.35.2 → 1.35.4
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 +31 -0
- package/dist/browser/standalone.js +9636 -9786
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts +2 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +14 -11
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +70 -72
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.d.ts +0 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +80 -80
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
- package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
- package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
- package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
- package/dist/components/Content/Models/Models.vue.d.ts +2 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +27 -20
- package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
- package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
- package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
- package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
- package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +10 -22
- 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 +93 -141
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +19 -4
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +83 -138
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +9 -14
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +62 -75
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +8 -13
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +120 -140
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
- package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
- 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 +130 -84
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
- package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
- package/dist/features/Operation/Operation.vue.d.ts +3 -4
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +54 -73
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
- package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
- package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/Header.vue.js +23 -0
- package/dist/features/Operation/components/Header.vue2.js +4 -0
- package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
- package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/Headers.vue.js +7 -0
- package/dist/features/Operation/components/Headers.vue2.js +61 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
- package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +35 -5
- package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue2.js +78 -74
- package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
- 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 +78 -82
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
- package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
- package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
- package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
- package/dist/features/Operation/helpers/combine-params.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
- 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 +75 -82
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
- package/dist/features/api-client-modal/useApiClient.d.ts +90 -90
- package/dist/index.js +1 -1
- package/dist/libs/openapi.d.ts +1 -13
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +39 -56
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
- package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
- package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
- package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
- package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
- package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
- package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
- package/dist/features/Operation/hooks/useResponses.js +0 -19
- package/dist/hooks/useDiscriminator.d.ts +0 -53
- package/dist/hooks/useDiscriminator.d.ts.map +0 -1
- package/dist/hooks/useDiscriminator.js +0 -149
- package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
- package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
- package/dist/hooks/useOperationDiscriminator.js +0 -57
- /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarMarkdown as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
1
|
+
import { defineComponent as F, computed as l, createBlock as c, openBlock as i, resolveDynamicComponent as M, normalizeClass as $, withCtx as y, createCommentVNode as s, createElementBlock as a, createVNode as d, createSlots as I, unref as o, toDisplayString as f, Fragment as h, createTextVNode as N, renderList as z } from "vue";
|
|
2
|
+
import { ScalarMarkdown as S } from "@scalar/components";
|
|
3
|
+
import { isDefined as U } from "@scalar/helpers/array/is-defined";
|
|
4
|
+
import { getResolvedRef as b } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import { isArraySchema as m } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
6
|
+
import { isTypeObject as Z } from "./helpers/is-type-object.js";
|
|
7
|
+
import { optimizeValueForDisplay as L } from "./helpers/optimize-value-for-display.js";
|
|
8
|
+
import { compositions as G } from "./helpers/schema-composition.js";
|
|
9
|
+
import W from "./Schema.vue.js";
|
|
10
|
+
import J from "./SchemaComposition.vue.js";
|
|
11
|
+
import K from "./SchemaEnumValues.vue.js";
|
|
12
|
+
import Q from "./SchemaPropertyHeading.vue.js";
|
|
13
|
+
import X from "../../Anchor/WithBreadcrumb.vue2.js";
|
|
14
|
+
import Y from "../../../features/specification-extension/SpecificationExtension.vue2.js";
|
|
15
|
+
const _ = {
|
|
14
16
|
key: 0,
|
|
15
17
|
class: "property-name-pattern-properties"
|
|
16
|
-
},
|
|
18
|
+
}, x = {
|
|
17
19
|
key: 1,
|
|
18
20
|
class: "property-name-additional-properties"
|
|
19
|
-
},
|
|
21
|
+
}, ee = {
|
|
20
22
|
key: 1,
|
|
21
23
|
class: "property-description"
|
|
22
|
-
},
|
|
24
|
+
}, ne = {
|
|
23
25
|
key: 2,
|
|
24
26
|
class: "property-description"
|
|
25
|
-
},
|
|
26
|
-
key:
|
|
27
|
+
}, re = {
|
|
28
|
+
key: 4,
|
|
27
29
|
class: "children"
|
|
28
|
-
},
|
|
30
|
+
}, ie = {
|
|
29
31
|
key: 0,
|
|
30
32
|
class: "children"
|
|
31
|
-
},
|
|
33
|
+
}, ve = /* @__PURE__ */ F({
|
|
32
34
|
__name: "SchemaProperty",
|
|
33
35
|
props: {
|
|
34
36
|
is: {},
|
|
@@ -38,20 +40,17 @@ const ae = {
|
|
|
38
40
|
name: {},
|
|
39
41
|
required: { type: Boolean, default: !1 },
|
|
40
42
|
compact: { type: Boolean, default: !1 },
|
|
43
|
+
discriminator: {},
|
|
41
44
|
description: {},
|
|
42
|
-
withExamples: { type: Boolean, default: !0 },
|
|
43
45
|
hideModelNames: { type: Boolean, default: !1 },
|
|
44
|
-
schemas: {},
|
|
45
46
|
hideHeading: { type: Boolean },
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
isDiscriminator: { type: Boolean },
|
|
47
|
+
hideReadOnly: { type: Boolean },
|
|
48
|
+
hideWriteOnly: { type: Boolean },
|
|
49
49
|
variant: {},
|
|
50
50
|
breadcrumb: {}
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const c = T, w = R, k = {
|
|
52
|
+
setup(D) {
|
|
53
|
+
const u = D, v = {
|
|
55
54
|
integer: {
|
|
56
55
|
_default: "Integer numbers.",
|
|
57
56
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,65 +64,68 @@ const ae = {
|
|
|
65
64
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
65
|
binary: "binary data, used to describe files"
|
|
67
66
|
}
|
|
68
|
-
},
|
|
67
|
+
}, O = (e) => !e || !v[e.type] ? null : v[e.type][e.format || e.contentEncoding || "_default"], H = (e) => {
|
|
69
68
|
var r;
|
|
70
69
|
return (e == null ? void 0 : e.enum) || ((r = e == null ? void 0 : e.items) == null ? void 0 : r.enum) || [];
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
return
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}), U = (e, r, p) => r || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || p, v = (e) => {
|
|
78
|
-
w("update:modelValue", e);
|
|
79
|
-
}, P = m(() => {
|
|
80
|
-
const e = i.value;
|
|
81
|
-
if (!(e != null && e.items) || typeof e.items != "object")
|
|
70
|
+
}, n = l(() => L(u.value)), g = l(() => {
|
|
71
|
+
const e = n.value;
|
|
72
|
+
return !e || "properties" in e || "additionalProperties" in e || "patternProperties" in e || e != null && e.allOf || e != null && e.allOf ? null : u.description || (e == null ? void 0 : e.description) || null;
|
|
73
|
+
}), V = (e, r, t) => r || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) !== void 0 || (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) || t, k = l(() => {
|
|
74
|
+
const e = n.value;
|
|
75
|
+
if (!e || !m(e) || typeof e.items != "object")
|
|
82
76
|
return !1;
|
|
83
77
|
const r = e.items;
|
|
84
|
-
return "type" in r && ["object"].includes(r.type) || "$ref" in r || "discriminator" in r || "allOf" in r || "oneOf" in r || "anyOf" in r;
|
|
85
|
-
}),
|
|
86
|
-
const r =
|
|
87
|
-
return !(r != null && r.items) || typeof r.items != "object" || !(e in r.items) ? !1 : !
|
|
88
|
-
},
|
|
89
|
-
if (!
|
|
78
|
+
return "type" in r && r.type && (Array.isArray(r.type) ? r.type.includes("object") : ["object"].includes(r.type)) || "properties" in r || "$ref" in r || "discriminator" in r || "allOf" in r || "oneOf" in r || "anyOf" in r;
|
|
79
|
+
}), w = (e) => {
|
|
80
|
+
const r = n.value;
|
|
81
|
+
return r && m(r) === !1 || !(r != null && r.items) || typeof r.items != "object" || !(e in r.items) ? !1 : !k.value;
|
|
82
|
+
}, A = l(() => k.value), T = l(() => {
|
|
83
|
+
if (!n.value)
|
|
90
84
|
return !1;
|
|
91
|
-
const e =
|
|
92
|
-
return r &&
|
|
93
|
-
}),
|
|
85
|
+
const e = n.value, r = Z(e), t = "properties" in e || "additionalProperties" in e;
|
|
86
|
+
return r && t;
|
|
87
|
+
}), q = l(() => u.level <= 1), E = l(() => n.value ? G.map((e) => {
|
|
88
|
+
var t, p;
|
|
89
|
+
return ((t = n.value) == null ? void 0 : t[e]) && !(m(n.value) && ((p = n.value) != null && p.items) && typeof e == "string" && typeof n.value.items == "object" && e in n.value.items) ? {
|
|
90
|
+
composition: e,
|
|
91
|
+
value: n.value
|
|
92
|
+
} : w(e) && n.value && m(n.value) && n.value.items ? {
|
|
93
|
+
composition: e,
|
|
94
|
+
value: n.value.items
|
|
95
|
+
} : null;
|
|
96
|
+
}).filter(U) : []);
|
|
94
97
|
return (e, r) => {
|
|
95
|
-
var
|
|
96
|
-
return
|
|
97
|
-
class:
|
|
98
|
-
(g(e.description, i.value), ""),
|
|
98
|
+
var t;
|
|
99
|
+
return i(), c(M(e.is ?? "li"), {
|
|
100
|
+
class: $(["property", [
|
|
99
101
|
`property--level-${e.level}`,
|
|
100
102
|
{
|
|
101
103
|
"property--compact": e.compact,
|
|
102
|
-
"property--deprecated": (
|
|
104
|
+
"property--deprecated": (t = n.value) == null ? void 0 : t.deprecated
|
|
103
105
|
}
|
|
104
106
|
]])
|
|
105
107
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
var
|
|
108
|
+
default: y(() => {
|
|
109
|
+
var p, R, P, B;
|
|
108
110
|
return [
|
|
109
|
-
|
|
111
|
+
V(n.value, e.name, e.required) ? (i(), c(Q, {
|
|
110
112
|
key: 0,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
value: i.value,
|
|
114
|
-
schemas: e.schemas,
|
|
113
|
+
class: "group",
|
|
114
|
+
enum: H(n.value).length > 0,
|
|
115
115
|
hideModelNames: e.hideModelNames,
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
isDiscriminator: e.discriminator && e.discriminator.propertyName === e.name,
|
|
117
|
+
required: e.required,
|
|
118
|
+
value: n.value
|
|
119
|
+
}, I({ _: 2 }, [
|
|
118
120
|
e.name ? {
|
|
119
121
|
name: "name",
|
|
120
|
-
fn:
|
|
121
|
-
d(
|
|
122
|
-
breadcrumb:
|
|
122
|
+
fn: y(() => [
|
|
123
|
+
d(o(X), {
|
|
124
|
+
breadcrumb: q.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
|
|
123
125
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
e.variant === "patternProperties" ? (
|
|
126
|
-
|
|
126
|
+
default: y(() => [
|
|
127
|
+
e.variant === "patternProperties" ? (i(), a("span", _, f(e.name), 1)) : e.variant === "additionalProperties" ? (i(), a("span", x, f(e.name), 1)) : (i(), a(h, { key: 2 }, [
|
|
128
|
+
N(f(e.name), 1)
|
|
127
129
|
], 64))
|
|
128
130
|
]),
|
|
129
131
|
_: 1
|
|
@@ -131,90 +133,68 @@ const ae = {
|
|
|
131
133
|
]),
|
|
132
134
|
key: "0"
|
|
133
135
|
} : void 0,
|
|
134
|
-
(
|
|
136
|
+
(p = n.value) != null && p.example ? {
|
|
135
137
|
name: "example",
|
|
136
|
-
fn:
|
|
137
|
-
|
|
138
|
+
fn: y(() => [
|
|
139
|
+
N(" Example: " + f(n.value.example), 1)
|
|
138
140
|
]),
|
|
139
141
|
key: "1"
|
|
140
142
|
} : void 0
|
|
141
|
-
]), 1032, ["enum", "
|
|
142
|
-
g
|
|
143
|
-
d(
|
|
144
|
-
|
|
143
|
+
]), 1032, ["enum", "hideModelNames", "isDiscriminator", "required", "value"])) : s("", !0),
|
|
144
|
+
g.value ? (i(), a("div", ee, [
|
|
145
|
+
d(o(S), { value: g.value }, null, 8, ["value"])
|
|
146
|
+
])) : O(n.value) ? (i(), a("div", ne, [
|
|
147
|
+
d(o(S), {
|
|
148
|
+
value: O(n.value) || ""
|
|
145
149
|
}, null, 8, ["value"])
|
|
146
|
-
])) :
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
])) :
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
d(H, {
|
|
154
|
-
compact: e.compact,
|
|
150
|
+
])) : s("", !0),
|
|
151
|
+
(((R = n.value) == null ? void 0 : R.enum) || n.value && o(m)(n.value) && ((B = o(b)((P = n.value) == null ? void 0 : P.items)) == null ? void 0 : B.enum) || []).length ? (i(), c(K, {
|
|
152
|
+
key: 3,
|
|
153
|
+
value: n.value
|
|
154
|
+
}, null, 8, ["value"])) : s("", !0),
|
|
155
|
+
T.value ? (i(), a("div", re, [
|
|
156
|
+
d(W, {
|
|
155
157
|
breadcrumb: e.breadcrumb && e.name ? [...e.breadcrumb, e.name] : void 0,
|
|
158
|
+
compact: e.compact,
|
|
159
|
+
hideReadOnly: e.hideReadOnly,
|
|
160
|
+
hideWriteOnly: e.hideWriteOnly,
|
|
156
161
|
level: e.level + 1,
|
|
157
162
|
name: e.name,
|
|
158
163
|
noncollapsible: e.noncollapsible,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}, null, 8, ["compact", "breadcrumb", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
|
|
166
|
-
])) : l("", !0),
|
|
167
|
-
(S = i.value) != null && S.items && typeof i.value.items == "object" ? (a(), o(h, { key: 4 }, [
|
|
168
|
-
q.value ? (a(), o("div", me, [
|
|
169
|
-
d(H, {
|
|
164
|
+
schema: n.value
|
|
165
|
+
}, null, 8, ["breadcrumb", "compact", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "schema"])
|
|
166
|
+
])) : s("", !0),
|
|
167
|
+
n.value && o(m)(n.value) && typeof n.value.items == "object" ? (i(), a(h, { key: 5 }, [
|
|
168
|
+
A.value ? (i(), a("div", ie, [
|
|
169
|
+
d(W, {
|
|
170
170
|
compact: e.compact,
|
|
171
|
+
hideReadOnly: e.hideReadOnly,
|
|
172
|
+
hideWriteOnly: e.hideWriteOnly,
|
|
171
173
|
level: e.level + 1,
|
|
172
174
|
name: e.name,
|
|
173
175
|
noncollapsible: e.noncollapsible,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
noncollapsible: e.noncollapsible,
|
|
195
|
-
schemas: e.schemas,
|
|
196
|
-
value: i.value
|
|
197
|
-
}, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : $(s) ? (a(), u(C, {
|
|
198
|
-
key: 1,
|
|
199
|
-
breadcrumb: e.breadcrumb,
|
|
200
|
-
compact: e.compact,
|
|
201
|
-
composition: s,
|
|
202
|
-
hideHeading: e.hideHeading,
|
|
203
|
-
level: e.level,
|
|
204
|
-
name: e.name,
|
|
205
|
-
noncollapsible: e.noncollapsible,
|
|
206
|
-
schemas: e.schemas,
|
|
207
|
-
value: (B = i.value) == null ? void 0 : B.items
|
|
208
|
-
}, null, 8, ["breadcrumb", "compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
|
|
209
|
-
], 64);
|
|
176
|
+
schema: o(b)(n.value.items)
|
|
177
|
+
}, null, 8, ["compact", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "schema"])
|
|
178
|
+
])) : s("", !0)
|
|
179
|
+
], 64)) : s("", !0),
|
|
180
|
+
(i(!0), a(h, null, z(E.value, (C) => {
|
|
181
|
+
var j;
|
|
182
|
+
return i(), c(J, {
|
|
183
|
+
key: C.composition,
|
|
184
|
+
breadcrumb: e.breadcrumb,
|
|
185
|
+
compact: e.compact,
|
|
186
|
+
composition: C.composition,
|
|
187
|
+
discriminator: (j = e.value) == null ? void 0 : j.discriminator,
|
|
188
|
+
hideHeading: e.hideHeading,
|
|
189
|
+
hideReadOnly: e.hideReadOnly,
|
|
190
|
+
hideWriteOnly: e.hideWriteOnly,
|
|
191
|
+
level: e.level,
|
|
192
|
+
name: e.name,
|
|
193
|
+
noncollapsible: e.noncollapsible,
|
|
194
|
+
value: o(b)(u.value)
|
|
195
|
+
}, null, 8, ["breadcrumb", "compact", "composition", "discriminator", "hideHeading", "hideReadOnly", "hideWriteOnly", "level", "name", "noncollapsible", "value"]);
|
|
210
196
|
}), 128)),
|
|
211
|
-
|
|
212
|
-
key: 5,
|
|
213
|
-
"discriminator-mapping": e.discriminatorMapping,
|
|
214
|
-
discriminator: I.value,
|
|
215
|
-
"onUpdate:modelValue": v
|
|
216
|
-
}, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
|
|
217
|
-
d(y(ie), { value: i.value }, null, 8, ["value"])
|
|
197
|
+
d(o(Y), { value: n.value }, null, 8, ["value"])
|
|
218
198
|
];
|
|
219
199
|
}),
|
|
220
200
|
_: 1
|
|
@@ -223,5 +203,5 @@ const ae = {
|
|
|
223
203
|
}
|
|
224
204
|
});
|
|
225
205
|
export {
|
|
226
|
-
|
|
206
|
+
ve as default
|
|
227
207
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
examples?:
|
|
2
|
+
examples?: unknown;
|
|
3
3
|
example?: unknown;
|
|
4
4
|
};
|
|
5
5
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyExamples.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyExamples.vue"],"names":[],"mappings":"AAyJA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"SchemaPropertyExamples.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyExamples.vue"],"names":[],"mappings":"AAyJA,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAgKF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyExamples.vue2.js";
|
|
2
2
|
import "./SchemaPropertyExamples.vue3.js";
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-64e15694"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
value
|
|
3
|
+
value: SchemaObject | undefined;
|
|
4
4
|
enum?: boolean;
|
|
5
|
+
isDiscriminator?: boolean;
|
|
5
6
|
required?: boolean;
|
|
6
7
|
additional?: boolean;
|
|
7
8
|
withExamples?: boolean;
|
|
8
9
|
hideModelNames?: boolean;
|
|
9
|
-
schemas?: Schemas;
|
|
10
10
|
};
|
|
11
11
|
declare var __VLS_1: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
name?: (props: typeof __VLS_1) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
required: boolean;
|
|
17
|
+
hideModelNames: boolean;
|
|
18
|
+
isDiscriminator: boolean;
|
|
19
|
+
withExamples: boolean;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
21
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
22
|
export default _default;
|
|
18
23
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -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":"AAmbA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAiBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA2dJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC5C,QAAA,MAAM,eAAe;cAjgBN,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAsgBxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
import "./SchemaPropertyHeading.vue3.js";
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfc3b782"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|