@scalar/api-reference 1.35.2 → 1.35.3
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 +20 -0
- package/dist/browser/standalone.js +9896 -10062
- 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 +6 -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 +86 -140
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +15 -4
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +77 -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 +5 -14
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +47 -68
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -13
- 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 +116 -144
- 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 +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue2.js +77 -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 +1 -1
- package/dist/features/Operation/components/RequestBody.vue2.js +75 -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/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 +12 -12
- 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 M, computed as l, createBlock as u, openBlock as t, resolveDynamicComponent as $, normalizeClass as I, withCtx as f, createCommentVNode as s, createElementBlock as o, createVNode as m, createSlots as z, unref as a, toDisplayString as y, Fragment as b, createTextVNode as S, renderList as U } from "vue";
|
|
2
|
+
import { ScalarMarkdown as R } from "@scalar/components";
|
|
3
|
+
import { isDefined as Z } from "@scalar/helpers/array/is-defined";
|
|
4
|
+
import { getResolvedRef as h } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
5
|
+
import { isArraySchema as p } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
|
|
6
|
+
import { isTypeObject as L } from "./helpers/is-type-object.js";
|
|
7
|
+
import { optimizeValueForDisplay as G } from "./helpers/optimize-value-for-display.js";
|
|
8
|
+
import { compositions as J } from "./helpers/schema-composition.js";
|
|
9
|
+
import D from "./Schema.vue.js";
|
|
10
|
+
import K from "./SchemaComposition.vue.js";
|
|
11
|
+
import Q from "./SchemaEnumValues.vue.js";
|
|
12
|
+
import W 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
|
+
}, re = {
|
|
23
25
|
key: 2,
|
|
24
26
|
class: "property-description"
|
|
25
|
-
},
|
|
26
|
-
key:
|
|
27
|
+
}, ne = {
|
|
28
|
+
key: 4,
|
|
27
29
|
class: "children"
|
|
28
|
-
},
|
|
30
|
+
}, te = {
|
|
29
31
|
key: 0,
|
|
30
32
|
class: "children"
|
|
31
|
-
},
|
|
33
|
+
}, ve = /* @__PURE__ */ M({
|
|
32
34
|
__name: "SchemaProperty",
|
|
33
35
|
props: {
|
|
34
36
|
is: {},
|
|
@@ -38,20 +40,15 @@ 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
|
-
discriminatorMapping: {},
|
|
47
|
-
discriminatorPropertyName: {},
|
|
48
|
-
isDiscriminator: { type: Boolean },
|
|
49
47
|
variant: {},
|
|
50
48
|
breadcrumb: {}
|
|
51
49
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const c = T, w = R, k = {
|
|
50
|
+
setup(H) {
|
|
51
|
+
const c = H, v = {
|
|
55
52
|
integer: {
|
|
56
53
|
_default: "Integer numbers.",
|
|
57
54
|
int32: "Signed 32-bit integers (commonly used integer type).",
|
|
@@ -65,65 +62,68 @@ const ae = {
|
|
|
65
62
|
byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
|
|
66
63
|
binary: "binary data, used to describe files"
|
|
67
64
|
}
|
|
68
|
-
}, g = (e
|
|
69
|
-
var
|
|
70
|
-
return (e == null ? void 0 : e.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")
|
|
65
|
+
}, g = (e) => !e || !v[e.type] ? null : v[e.type][e.format || e.contentEncoding || "_default"], V = (e) => {
|
|
66
|
+
var n;
|
|
67
|
+
return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
|
|
68
|
+
}, r = l(() => G(c.value)), k = l(() => {
|
|
69
|
+
const e = r.value;
|
|
70
|
+
return !e || "properties" in e || "additionalProperties" in e || "patternProperties" in e || e != null && e.allOf || e != null && e.allOf ? null : c.description || (e == null ? void 0 : e.description) || null;
|
|
71
|
+
}), w = (e, n, i) => n || (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) || i, P = l(() => {
|
|
72
|
+
const e = r.value;
|
|
73
|
+
if (!e || !p(e) || typeof e.items != "object")
|
|
82
74
|
return !1;
|
|
83
|
-
const
|
|
84
|
-
return "type" in
|
|
85
|
-
}),
|
|
86
|
-
const
|
|
87
|
-
return !(
|
|
88
|
-
},
|
|
89
|
-
if (!
|
|
75
|
+
const n = e.items;
|
|
76
|
+
return "type" in n && n.type && (Array.isArray(n.type) ? n.type.includes("object") : ["object"].includes(n.type)) || "properties" in n || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
|
|
77
|
+
}), A = (e) => {
|
|
78
|
+
const n = r.value;
|
|
79
|
+
return n && p(n) === !1 || !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !P.value;
|
|
80
|
+
}, T = l(() => P.value), q = l(() => {
|
|
81
|
+
if (!r.value)
|
|
90
82
|
return !1;
|
|
91
|
-
const e =
|
|
92
|
-
return
|
|
93
|
-
}),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
83
|
+
const e = r.value, n = L(e), i = "properties" in e || "additionalProperties" in e;
|
|
84
|
+
return n && i;
|
|
85
|
+
}), E = l(() => c.level <= 1), F = l(() => r.value ? J.map((e) => {
|
|
86
|
+
var i, d;
|
|
87
|
+
return ((i = r.value) == null ? void 0 : i[e]) && !(p(r.value) && ((d = r.value) != null && d.items) && typeof e == "string" && typeof r.value.items == "object" && e in r.value.items) ? {
|
|
88
|
+
composition: e,
|
|
89
|
+
value: r.value
|
|
90
|
+
} : A(e) && r.value && p(r.value) && r.value.items ? {
|
|
91
|
+
composition: e,
|
|
92
|
+
value: r.value.items
|
|
93
|
+
} : null;
|
|
94
|
+
}).filter(Z) : []);
|
|
95
|
+
return (e, n) => {
|
|
96
|
+
var i;
|
|
97
|
+
return t(), u($(e.is ?? "li"), {
|
|
98
|
+
class: I(["property", [
|
|
99
99
|
`property--level-${e.level}`,
|
|
100
100
|
{
|
|
101
101
|
"property--compact": e.compact,
|
|
102
|
-
"property--deprecated": (
|
|
102
|
+
"property--deprecated": (i = r.value) == null ? void 0 : i.deprecated
|
|
103
103
|
}
|
|
104
104
|
]])
|
|
105
105
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
var
|
|
106
|
+
default: f(() => {
|
|
107
|
+
var d, O, C, j;
|
|
108
108
|
return [
|
|
109
|
-
|
|
109
|
+
w(r.value, e.name, e.required) ? (t(), u(W, {
|
|
110
110
|
key: 0,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
value: i.value,
|
|
114
|
-
schemas: e.schemas,
|
|
111
|
+
class: "group",
|
|
112
|
+
enum: V(r.value).length > 0,
|
|
115
113
|
hideModelNames: e.hideModelNames,
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
isDiscriminator: e.discriminator && e.discriminator.propertyName === e.name,
|
|
115
|
+
required: e.required,
|
|
116
|
+
value: r.value
|
|
117
|
+
}, z({ _: 2 }, [
|
|
118
118
|
e.name ? {
|
|
119
119
|
name: "name",
|
|
120
|
-
fn:
|
|
121
|
-
|
|
122
|
-
breadcrumb:
|
|
120
|
+
fn: f(() => [
|
|
121
|
+
m(a(X), {
|
|
122
|
+
breadcrumb: E.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
|
|
123
123
|
}, {
|
|
124
|
-
default:
|
|
125
|
-
e.variant === "patternProperties" ? (
|
|
126
|
-
|
|
124
|
+
default: f(() => [
|
|
125
|
+
e.variant === "patternProperties" ? (t(), o("span", _, y(e.name), 1)) : e.variant === "additionalProperties" ? (t(), o("span", x, y(e.name), 1)) : (t(), o(b, { key: 2 }, [
|
|
126
|
+
S(y(e.name), 1)
|
|
127
127
|
], 64))
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
@@ -131,90 +131,62 @@ const ae = {
|
|
|
131
131
|
]),
|
|
132
132
|
key: "0"
|
|
133
133
|
} : void 0,
|
|
134
|
-
(
|
|
134
|
+
(d = r.value) != null && d.example ? {
|
|
135
135
|
name: "example",
|
|
136
|
-
fn:
|
|
137
|
-
|
|
136
|
+
fn: f(() => [
|
|
137
|
+
S(" Example: " + y(r.value.example), 1)
|
|
138
138
|
]),
|
|
139
139
|
key: "1"
|
|
140
140
|
} : void 0
|
|
141
|
-
]), 1032, ["enum", "
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
d(y(D), {
|
|
148
|
-
value: N(i.value) || ""
|
|
141
|
+
]), 1032, ["enum", "hideModelNames", "isDiscriminator", "required", "value"])) : s("", !0),
|
|
142
|
+
k.value ? (t(), o("div", ee, [
|
|
143
|
+
m(a(R), { value: k.value }, null, 8, ["value"])
|
|
144
|
+
])) : g(r.value) ? (t(), o("div", re, [
|
|
145
|
+
m(a(R), {
|
|
146
|
+
value: g(r.value) || ""
|
|
149
147
|
}, null, 8, ["value"])
|
|
150
|
-
])) :
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
])) : s("", !0),
|
|
149
|
+
(((O = r.value) == null ? void 0 : O.enum) || r.value && a(p)(r.value) && ((j = a(h)((C = r.value) == null ? void 0 : C.items)) == null ? void 0 : j.enum) || []).length ? (t(), u(Q, {
|
|
150
|
+
key: 3,
|
|
151
|
+
value: r.value
|
|
152
|
+
}, null, 8, ["value"])) : s("", !0),
|
|
153
|
+
q.value ? (t(), o("div", ne, [
|
|
154
|
+
m(D, {
|
|
155
155
|
breadcrumb: e.breadcrumb && e.name ? [...e.breadcrumb, e.name] : void 0,
|
|
156
|
+
compact: e.compact,
|
|
156
157
|
level: e.level + 1,
|
|
157
158
|
name: e.name,
|
|
158
159
|
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, {
|
|
160
|
+
schema: r.value
|
|
161
|
+
}, null, 8, ["breadcrumb", "compact", "level", "name", "noncollapsible", "schema"])
|
|
162
|
+
])) : s("", !0),
|
|
163
|
+
r.value && a(p)(r.value) && typeof r.value.items == "object" ? (t(), o(b, { key: 5 }, [
|
|
164
|
+
T.value ? (t(), o("div", te, [
|
|
165
|
+
m(D, {
|
|
170
166
|
compact: e.compact,
|
|
171
167
|
level: e.level + 1,
|
|
172
168
|
name: e.name,
|
|
173
169
|
noncollapsible: e.noncollapsible,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
level: e.level,
|
|
193
|
-
name: e.name,
|
|
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);
|
|
170
|
+
schema: a(h)(r.value.items)
|
|
171
|
+
}, null, 8, ["compact", "level", "name", "noncollapsible", "schema"])
|
|
172
|
+
])) : s("", !0)
|
|
173
|
+
], 64)) : s("", !0),
|
|
174
|
+
(t(!0), o(b, null, U(F.value, (B) => {
|
|
175
|
+
var N;
|
|
176
|
+
return t(), u(K, {
|
|
177
|
+
key: B.composition,
|
|
178
|
+
breadcrumb: e.breadcrumb,
|
|
179
|
+
compact: e.compact,
|
|
180
|
+
composition: B.composition,
|
|
181
|
+
discriminator: (N = e.value) == null ? void 0 : N.discriminator,
|
|
182
|
+
hideHeading: e.hideHeading,
|
|
183
|
+
level: e.level,
|
|
184
|
+
name: e.name,
|
|
185
|
+
noncollapsible: e.noncollapsible,
|
|
186
|
+
value: a(h)(c.value)
|
|
187
|
+
}, null, 8, ["breadcrumb", "compact", "composition", "discriminator", "hideHeading", "level", "name", "noncollapsible", "value"]);
|
|
210
188
|
}), 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"])
|
|
189
|
+
m(a(Y), { value: r.value }, null, 8, ["value"])
|
|
218
190
|
];
|
|
219
191
|
}),
|
|
220
192
|
_: 1
|
|
@@ -223,5 +195,5 @@ const ae = {
|
|
|
223
195
|
}
|
|
224
196
|
});
|
|
225
197
|
export {
|
|
226
|
-
|
|
198
|
+
ve as default
|
|
227
199
|
};
|
|
@@ -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
|
};
|