@scalar/api-reference 1.32.6 → 1.32.7
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 +21 -0
- package/dist/browser/standalone.js +1813 -1790
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +8 -8
- package/dist/components/Badge/Badge.vue.js +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 +97 -156
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
- 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 +54 -55
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +81 -97
- package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
- package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
- package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/example-request/ExampleRequest.vue.js +1 -1
- package/dist/features/example-request/ExampleRequest.vue2.js +126 -124
- package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/helpers/convert-security-scheme.d.ts +9 -0
- package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +18 -17
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +5 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +1 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
- package/dist/v2/events/definitions.d.ts +6 -6
- package/dist/v2/events/definitions.d.ts.map +1 -1
- package/dist/v2/hooks/useStore.d.ts +9 -0
- package/dist/v2/hooks/useStore.d.ts.map +1 -0
- package/package.json +11 -11
- package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
- /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
- /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
|
@@ -4,7 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
enum?: boolean;
|
|
5
5
|
required?: boolean;
|
|
6
6
|
additional?: boolean;
|
|
7
|
-
pattern?: boolean;
|
|
8
7
|
withExamples?: boolean;
|
|
9
8
|
hideModelNames?: boolean;
|
|
10
9
|
schemas?: Schemas;
|
|
@@ -13,7 +12,6 @@ declare function __VLS_template(): {
|
|
|
13
12
|
attrs: Partial<{}>;
|
|
14
13
|
slots: {
|
|
15
14
|
name?(_: {}): any;
|
|
16
|
-
name?(_: {}): any;
|
|
17
15
|
};
|
|
18
16
|
refs: {};
|
|
19
17
|
rootEl: HTMLDivElement;
|
|
@@ -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":"AA2SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,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,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuEF,iBAAS,cAAc;WA2UT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAkBD,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-10b9288a"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import
|
|
4
|
-
import { getDiscriminatorSchemaName as
|
|
5
|
-
import { getSchemaType as
|
|
6
|
-
import { getModelName as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as L, computed as C, createElementBlock as m, openBlock as r, createCommentVNode as a, createBlock as i, normalizeClass as $, renderSlot as T, Fragment as f, withCtx as u, createVNode as y, createTextVNode as l, toDisplayString as o, unref as s } from "vue";
|
|
2
|
+
import { isDefined as p } from "@scalar/helpers/array/is-defined";
|
|
3
|
+
import S from "../../ScreenReader.vue.js";
|
|
4
|
+
import { getDiscriminatorSchemaName as b } from "../../../hooks/useDiscriminator.js";
|
|
5
|
+
import { getSchemaType as F } from "./helpers/get-schema-type.js";
|
|
6
|
+
import { getModelName as J } from "./helpers/schema-name.js";
|
|
7
|
+
import z from "./RenderString.vue.js";
|
|
8
|
+
import n from "./SchemaPropertyDetail.vue.js";
|
|
9
|
+
import H from "./SchemaPropertyExamples.vue.js";
|
|
10
|
+
import R from "../../Badge/Badge.vue.js";
|
|
11
11
|
const j = { class: "property-heading" }, G = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "property-discriminator"
|
|
@@ -16,92 +16,84 @@ const j = { class: "property-heading" }, G = {
|
|
|
16
16
|
class: "property-additional"
|
|
17
17
|
}, Q = {
|
|
18
18
|
key: 4,
|
|
19
|
-
class: "property-
|
|
19
|
+
class: "property-deprecated"
|
|
20
20
|
}, U = {
|
|
21
21
|
key: 5,
|
|
22
|
-
class: "property-deprecated"
|
|
23
|
-
}, W = {
|
|
24
|
-
key: 6,
|
|
25
22
|
class: "property-const"
|
|
23
|
+
}, W = {
|
|
24
|
+
key: 7,
|
|
25
|
+
class: "property-write-only"
|
|
26
26
|
}, X = {
|
|
27
27
|
key: 8,
|
|
28
|
-
class: "property-
|
|
28
|
+
class: "property-read-only"
|
|
29
29
|
}, Y = {
|
|
30
30
|
key: 9,
|
|
31
|
-
class: "property-read-only"
|
|
32
|
-
}, Z = {
|
|
33
|
-
key: 10,
|
|
34
31
|
class: "property-required"
|
|
35
|
-
},
|
|
32
|
+
}, ae = /* @__PURE__ */ L({
|
|
36
33
|
__name: "SchemaPropertyHeading",
|
|
37
34
|
props: {
|
|
38
35
|
value: {},
|
|
39
36
|
enum: { type: Boolean },
|
|
40
37
|
required: { type: Boolean, default: !1 },
|
|
41
38
|
additional: { type: Boolean },
|
|
42
|
-
pattern: { type: Boolean },
|
|
43
39
|
withExamples: { type: Boolean, default: !0 },
|
|
44
40
|
hideModelNames: { type: Boolean, default: !1 },
|
|
45
41
|
schemas: {}
|
|
46
42
|
},
|
|
47
43
|
setup(d) {
|
|
48
|
-
const
|
|
44
|
+
const E = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" || Array.isArray(e == null ? void 0 : e.default) ? JSON.stringify(e.default) : e == null ? void 0 : e.default, B = C(() => {
|
|
49
45
|
var e, t, v, k, g, N;
|
|
50
46
|
if (((e = d.value) == null ? void 0 : e.const) !== void 0)
|
|
51
47
|
return (t = d.value) == null ? void 0 : t.const;
|
|
52
48
|
if (((k = (v = d.value) == null ? void 0 : v.enum) == null ? void 0 : k.length) === 1)
|
|
53
49
|
return d.value.enum[0];
|
|
54
50
|
if ((g = d.value) != null && g.items) {
|
|
55
|
-
if (
|
|
51
|
+
if (p(d.value.items.const))
|
|
56
52
|
return d.value.items.const;
|
|
57
53
|
if (((N = d.value.items.enum) == null ? void 0 : N.length) === 1)
|
|
58
54
|
return d.value.items.enum[0];
|
|
59
55
|
}
|
|
60
|
-
}), D = C(() => d.value ?
|
|
56
|
+
}), D = C(() => d.value ? J(
|
|
61
57
|
d.value,
|
|
62
58
|
d.schemas,
|
|
63
59
|
d.hideModelNames,
|
|
64
|
-
|
|
60
|
+
b
|
|
65
61
|
) : null);
|
|
66
62
|
return (e, t) => {
|
|
67
|
-
var v, k, g, N, M, q, w, P, I,
|
|
68
|
-
return r(),
|
|
69
|
-
e.$slots.name ? (r(),
|
|
63
|
+
var v, k, g, N, M, q, w, O, P, I, V, A;
|
|
64
|
+
return r(), m("div", j, [
|
|
65
|
+
e.$slots.name ? (r(), m("div", {
|
|
70
66
|
key: 0,
|
|
71
|
-
class:
|
|
67
|
+
class: $(["property-name", { deprecated: (v = e.value) == null ? void 0 : v.deprecated }])
|
|
72
68
|
}, [
|
|
73
|
-
e
|
|
74
|
-
t[0] || (t[0] = l("/")),
|
|
75
|
-
E(e.$slots, "name", {}, void 0, !0),
|
|
76
|
-
t[1] || (t[1] = l("/"))
|
|
77
|
-
], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
69
|
+
T(e.$slots, "name", {}, void 0, !0)
|
|
78
70
|
], 2)) : a("", !0),
|
|
79
|
-
(k = e.value) != null && k.isDiscriminator ? (r(),
|
|
80
|
-
e.value ? (r(),
|
|
81
|
-
(g = e.value) != null && g.type ? (r(), n
|
|
71
|
+
(k = e.value) != null && k.isDiscriminator ? (r(), m("div", G, " Discriminator ")) : a("", !0),
|
|
72
|
+
e.value ? (r(), m(f, { key: 2 }, [
|
|
73
|
+
(g = e.value) != null && g.type ? (r(), i(n, { key: 0 }, {
|
|
82
74
|
default: u(() => [
|
|
83
|
-
|
|
84
|
-
default: u(() => t[
|
|
75
|
+
y(S, null, {
|
|
76
|
+
default: u(() => t[0] || (t[0] = [
|
|
85
77
|
l("Type: ")
|
|
86
78
|
])),
|
|
87
79
|
_: 1
|
|
88
80
|
}),
|
|
89
|
-
D.value ? (r(),
|
|
81
|
+
D.value ? (r(), m(f, { key: 0 }, [
|
|
90
82
|
l(o(D.value), 1)
|
|
91
|
-
], 64)) : (r(),
|
|
92
|
-
l(o(s(
|
|
83
|
+
], 64)) : (r(), m(f, { key: 1 }, [
|
|
84
|
+
l(o(s(F)(e.value)), 1)
|
|
93
85
|
], 64))
|
|
94
86
|
]),
|
|
95
87
|
_: 1
|
|
96
88
|
})) : a("", !0),
|
|
97
|
-
e.value.minItems || e.value.maxItems ? (r(), n
|
|
89
|
+
e.value.minItems || e.value.maxItems ? (r(), i(n, { key: 1 }, {
|
|
98
90
|
default: u(() => [
|
|
99
91
|
l(o(e.value.minItems) + "…" + o(e.value.maxItems), 1)
|
|
100
92
|
]),
|
|
101
93
|
_: 1
|
|
102
94
|
})) : a("", !0),
|
|
103
|
-
e.value.minLength ? (r(), n
|
|
104
|
-
prefix: u(() => t[
|
|
95
|
+
e.value.minLength ? (r(), i(n, { key: 2 }, {
|
|
96
|
+
prefix: u(() => t[1] || (t[1] = [
|
|
105
97
|
l("min: ")
|
|
106
98
|
])),
|
|
107
99
|
default: u(() => [
|
|
@@ -109,8 +101,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
109
101
|
]),
|
|
110
102
|
_: 1
|
|
111
103
|
})) : a("", !0),
|
|
112
|
-
e.value.maxLength ? (r(), n
|
|
113
|
-
prefix: u(() => t[
|
|
104
|
+
e.value.maxLength ? (r(), i(n, { key: 3 }, {
|
|
105
|
+
prefix: u(() => t[2] || (t[2] = [
|
|
114
106
|
l("max: ")
|
|
115
107
|
])),
|
|
116
108
|
default: u(() => [
|
|
@@ -118,16 +110,16 @@ const j = { class: "property-heading" }, G = {
|
|
|
118
110
|
]),
|
|
119
111
|
_: 1
|
|
120
112
|
})) : a("", !0),
|
|
121
|
-
e.value.uniqueItems ? (r(), n
|
|
122
|
-
default: u(() => t[
|
|
113
|
+
e.value.uniqueItems ? (r(), i(n, { key: 4 }, {
|
|
114
|
+
default: u(() => t[3] || (t[3] = [
|
|
123
115
|
l(" unique! ")
|
|
124
116
|
])),
|
|
125
117
|
_: 1
|
|
126
118
|
})) : a("", !0),
|
|
127
|
-
e.value.format ? (r(), n
|
|
119
|
+
e.value.format ? (r(), i(n, { key: 5 }, {
|
|
128
120
|
default: u(() => [
|
|
129
|
-
|
|
130
|
-
default: u(() => t[
|
|
121
|
+
y(S, null, {
|
|
122
|
+
default: u(() => t[4] || (t[4] = [
|
|
131
123
|
l("Format:")
|
|
132
124
|
])),
|
|
133
125
|
_: 1
|
|
@@ -136,8 +128,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
136
128
|
]),
|
|
137
129
|
_: 1
|
|
138
130
|
})) : a("", !0),
|
|
139
|
-
s(
|
|
140
|
-
prefix: u(() => t[
|
|
131
|
+
s(p)(e.value.exclusiveMinimum) ? (r(), i(n, { key: 6 }, {
|
|
132
|
+
prefix: u(() => t[5] || (t[5] = [
|
|
141
133
|
l("greater than: ")
|
|
142
134
|
])),
|
|
143
135
|
default: u(() => [
|
|
@@ -145,8 +137,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
145
137
|
]),
|
|
146
138
|
_: 1
|
|
147
139
|
})) : a("", !0),
|
|
148
|
-
s(
|
|
149
|
-
prefix: u(() => t[
|
|
140
|
+
s(p)(e.value.minimum) ? (r(), i(n, { key: 7 }, {
|
|
141
|
+
prefix: u(() => t[6] || (t[6] = [
|
|
150
142
|
l("min: ")
|
|
151
143
|
])),
|
|
152
144
|
default: u(() => [
|
|
@@ -154,8 +146,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
154
146
|
]),
|
|
155
147
|
_: 1
|
|
156
148
|
})) : a("", !0),
|
|
157
|
-
s(
|
|
158
|
-
prefix: u(() => t[
|
|
149
|
+
s(p)(e.value.exclusiveMaximum) ? (r(), i(n, { key: 8 }, {
|
|
150
|
+
prefix: u(() => t[7] || (t[7] = [
|
|
159
151
|
l("less than: ")
|
|
160
152
|
])),
|
|
161
153
|
default: u(() => [
|
|
@@ -163,8 +155,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
163
155
|
]),
|
|
164
156
|
_: 1
|
|
165
157
|
})) : a("", !0),
|
|
166
|
-
s(
|
|
167
|
-
prefix: u(() => t[
|
|
158
|
+
s(p)(e.value.maximum) ? (r(), i(n, { key: 9 }, {
|
|
159
|
+
prefix: u(() => t[8] || (t[8] = [
|
|
168
160
|
l("max: ")
|
|
169
161
|
])),
|
|
170
162
|
default: u(() => [
|
|
@@ -172,8 +164,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
172
164
|
]),
|
|
173
165
|
_: 1
|
|
174
166
|
})) : a("", !0),
|
|
175
|
-
s(
|
|
176
|
-
prefix: u(() => t[
|
|
167
|
+
s(p)(e.value.multipleOf) ? (r(), i(n, { key: 10 }, {
|
|
168
|
+
prefix: u(() => t[9] || (t[9] = [
|
|
177
169
|
l("multiple of: ")
|
|
178
170
|
])),
|
|
179
171
|
default: u(() => [
|
|
@@ -181,14 +173,14 @@ const j = { class: "property-heading" }, G = {
|
|
|
181
173
|
]),
|
|
182
174
|
_: 1
|
|
183
175
|
})) : a("", !0),
|
|
184
|
-
e.value.pattern ? (r(), n
|
|
176
|
+
e.value.pattern ? (r(), i(n, {
|
|
185
177
|
key: 11,
|
|
186
178
|
code: "",
|
|
187
179
|
truncate: ""
|
|
188
180
|
}, {
|
|
189
181
|
default: u(() => [
|
|
190
|
-
|
|
191
|
-
default: u(() => t[
|
|
182
|
+
y(S, null, {
|
|
183
|
+
default: u(() => t[10] || (t[10] = [
|
|
192
184
|
l("Pattern:")
|
|
193
185
|
])),
|
|
194
186
|
_: 1
|
|
@@ -197,77 +189,69 @@ const j = { class: "property-heading" }, G = {
|
|
|
197
189
|
]),
|
|
198
190
|
_: 1
|
|
199
191
|
})) : a("", !0),
|
|
200
|
-
e.$props.enum ? (r(), n
|
|
201
|
-
default: u(() => t[
|
|
192
|
+
e.$props.enum ? (r(), i(n, { key: 12 }, {
|
|
193
|
+
default: u(() => t[11] || (t[11] = [
|
|
202
194
|
l("enum")
|
|
203
195
|
])),
|
|
204
196
|
_: 1
|
|
205
197
|
})) : a("", !0),
|
|
206
|
-
e.value.default !== void 0 ? (r(), n
|
|
198
|
+
e.value.default !== void 0 ? (r(), i(n, {
|
|
207
199
|
key: 13,
|
|
208
200
|
truncate: ""
|
|
209
201
|
}, {
|
|
210
|
-
prefix: u(() => t[
|
|
202
|
+
prefix: u(() => t[12] || (t[12] = [
|
|
211
203
|
l("default: ")
|
|
212
204
|
])),
|
|
213
205
|
default: u(() => [
|
|
214
|
-
l(" " + o(
|
|
206
|
+
l(" " + o(E(e.value)), 1)
|
|
215
207
|
]),
|
|
216
208
|
_: 1
|
|
217
209
|
})) : a("", !0)
|
|
218
210
|
], 64)) : a("", !0),
|
|
219
|
-
e.additional ? (r(),
|
|
220
|
-
(N = e.value) != null && N["x-additionalPropertiesName"] ? (r(),
|
|
211
|
+
e.additional ? (r(), m("div", K, [
|
|
212
|
+
(N = e.value) != null && N["x-additionalPropertiesName"] ? (r(), m(f, { key: 0 }, [
|
|
221
213
|
l(o(e.value["x-additionalPropertiesName"]), 1)
|
|
222
|
-
], 64)) : (r(),
|
|
214
|
+
], 64)) : (r(), m(f, { key: 1 }, [
|
|
223
215
|
l("additional properties")
|
|
224
216
|
], 64))
|
|
225
217
|
])) : a("", !0),
|
|
226
|
-
e.
|
|
227
|
-
|
|
228
|
-
default: u(() => t[
|
|
229
|
-
l("pattern")
|
|
230
|
-
])),
|
|
231
|
-
_: 1
|
|
232
|
-
})
|
|
233
|
-
])) : a("", !0),
|
|
234
|
-
(M = e.value) != null && M.deprecated ? (r(), i("div", U, [
|
|
235
|
-
p(s(L), null, {
|
|
236
|
-
default: u(() => t[16] || (t[16] = [
|
|
218
|
+
(M = e.value) != null && M.deprecated ? (r(), m("div", Q, [
|
|
219
|
+
y(s(R), null, {
|
|
220
|
+
default: u(() => t[13] || (t[13] = [
|
|
237
221
|
l("deprecated")
|
|
238
222
|
])),
|
|
239
223
|
_: 1
|
|
240
224
|
})
|
|
241
225
|
])) : a("", !0),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
prefix: u(() => t[
|
|
226
|
+
B.value !== void 0 ? (r(), m("div", U, [
|
|
227
|
+
y(n, { truncate: "" }, {
|
|
228
|
+
prefix: u(() => t[14] || (t[14] = [
|
|
245
229
|
l("const: ")
|
|
246
230
|
])),
|
|
247
231
|
default: u(() => [
|
|
248
|
-
|
|
232
|
+
y(z, { value: B.value }, null, 8, ["value"])
|
|
249
233
|
]),
|
|
250
234
|
_: 1
|
|
251
235
|
})
|
|
252
|
-
])) : (r(),
|
|
253
|
-
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), n
|
|
254
|
-
default: u(() => t[
|
|
236
|
+
])) : (r(), m(f, { key: 6 }, [
|
|
237
|
+
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), i(n, { key: 0 }, {
|
|
238
|
+
default: u(() => t[15] || (t[15] = [
|
|
255
239
|
l(" nullable ")
|
|
256
240
|
])),
|
|
257
241
|
_: 1
|
|
258
242
|
})) : a("", !0)
|
|
259
243
|
], 64)),
|
|
260
|
-
(w = e.value) != null && w.writeOnly ? (r(),
|
|
261
|
-
e.required ? (r(),
|
|
262
|
-
e.withExamples ? (r(),
|
|
263
|
-
key:
|
|
264
|
-
examples: (
|
|
265
|
-
example: ((
|
|
244
|
+
(w = e.value) != null && w.writeOnly ? (r(), m("div", W, " write-only ")) : (O = e.value) != null && O.readOnly ? (r(), m("div", X, " read-only ")) : a("", !0),
|
|
245
|
+
e.required ? (r(), m("div", Y, " required ")) : a("", !0),
|
|
246
|
+
e.withExamples ? (r(), i(H, {
|
|
247
|
+
key: 10,
|
|
248
|
+
examples: (P = e.value) == null ? void 0 : P.examples,
|
|
249
|
+
example: ((I = e.value) == null ? void 0 : I.example) || ((A = (V = e.value) == null ? void 0 : V.items) == null ? void 0 : A.example)
|
|
266
250
|
}, null, 8, ["examples", "example"])) : a("", !0)
|
|
267
251
|
]);
|
|
268
252
|
};
|
|
269
253
|
}
|
|
270
254
|
});
|
|
271
255
|
export {
|
|
272
|
-
|
|
256
|
+
ae as default
|
|
273
257
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-example.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/format-example.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAkD/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-type-object.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/is-type-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAKxD,eAAO,MAAM,YAAY,WAAY,OAAO,KAAG,MAAM,IAAI,WAAW,CAAC,YAsCpE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const s = (t) => {
|
|
2
|
+
if (t === null || typeof t != "object" || Array.isArray(t) || "oneOf" in t || "anyOf" in t || "allOf" in t || "not" in t)
|
|
3
|
+
return !1;
|
|
4
|
+
const r = "type" in t;
|
|
5
|
+
if (r && Array.isArray(t.type))
|
|
6
|
+
return t.type.includes("object");
|
|
7
|
+
const n = r && t.type === "object";
|
|
8
|
+
if (n)
|
|
9
|
+
return !0;
|
|
10
|
+
if (r && !n)
|
|
11
|
+
return !1;
|
|
12
|
+
const i = "properties" in t, o = "additionalProperties" in t, e = "patternProperties" in t;
|
|
13
|
+
return i || o || e;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
s as isTypeObject
|
|
17
|
+
};
|
|
@@ -5,4 +5,4 @@ export declare const compositions: CompositionKeyword[];
|
|
|
5
5
|
* Optimize the value by removing nulls from compositions.
|
|
6
6
|
*/
|
|
7
7
|
export declare function optimizeValueForDisplay(value: UnknownObject | undefined): Record<string, any> | undefined;
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=optimize-value-for-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAuEzG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
2
|
import { type Component } from 'vue';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
/** The type of element to render as, defaults to `span` */
|
|
@@ -8,7 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
/** Whether or not to abbreviated the slot content */
|
|
9
9
|
short?: boolean;
|
|
10
10
|
/** The HTTP method to show */
|
|
11
|
-
method:
|
|
11
|
+
method: HttpMethod | string;
|
|
12
12
|
};
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
attrs: Partial<{}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,KAAK,WAAW,GAAG;IACjB,2DAA2D;IAC3D,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IACvB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,qDAAqD;IACrD,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,8BAA8B;IAC9B,MAAM,EAAE,UAAU,GAAG,MAAM,CAAA;CAC5B,CAAC;AAcF,iBAAS,cAAc;WA0CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAOnB,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 t from "./ParameterListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-47696a96"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/ExampleRequest.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExampleRequest.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-request/ExampleRequest.vue"],"names":[],"mappings":"AA6jBA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,MAAM,EACZ,MAAM,iCAAiC,CAAA;AAGxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAOL,KAAK,uBAAuB,EAC7B,MAAM,KAAK,CAAA;AAKZ,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAiBjE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuXF,iBAAS,cAAc;WAoOT,OAAO,IAA6B;;wBAZrB,GAAG;wBAEH,GAAG;wBADH,GAAG;wBAEH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAzPF,GAAG,8CACZ,GAAG,yBAAyB,GAAG,6DACzC,GAAG;;;;;;;;EAqQb;AAkCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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 "./ExampleRequest.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7b64d055"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|