@scalar/api-reference 1.24.34 → 1.24.35
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 +8 -0
- package/dist/browser/standalone.js +23 -19
- package/dist/browser/webpack-stats.json +1 -1
- 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 +72 -72
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;AA+lBA,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,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-38a47495"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, openBlock as u, createElementBlock as i, renderSlot as A, createCommentVNode as l, Fragment as m, createTextVNode as a, toDisplayString as t, createVNode as y, unref as L, withCtx as r, createBlock as o, createSlots as M, renderList as P } from "vue";
|
|
2
2
|
import n from "./SchemaPropertyDetail.vue.js";
|
|
3
3
|
import N from "../../Badge/Badge.vue.js";
|
|
4
|
-
const
|
|
4
|
+
const V = { class: "property-heading" }, C = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "property-name"
|
|
7
7
|
}, $ = {
|
|
@@ -10,22 +10,22 @@ const C = { class: "property-heading" }, V = {
|
|
|
10
10
|
}, b = {
|
|
11
11
|
key: 2,
|
|
12
12
|
class: "property-deprecated"
|
|
13
|
-
},
|
|
13
|
+
}, D = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "property-required"
|
|
16
|
-
},
|
|
16
|
+
}, j = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "property-const"
|
|
19
|
-
},
|
|
19
|
+
}, E = {
|
|
20
20
|
key: 5,
|
|
21
21
|
class: "property-details"
|
|
22
|
-
},
|
|
22
|
+
}, F = {
|
|
23
23
|
key: 6,
|
|
24
24
|
class: "property-write-only"
|
|
25
|
-
},
|
|
25
|
+
}, H = {
|
|
26
26
|
key: 7,
|
|
27
27
|
class: "property-read-only"
|
|
28
|
-
},
|
|
28
|
+
}, Q = /* @__PURE__ */ w({
|
|
29
29
|
__name: "SchemaPropertyHeading",
|
|
30
30
|
props: {
|
|
31
31
|
value: {},
|
|
@@ -33,175 +33,175 @@ const C = { class: "property-heading" }, V = {
|
|
|
33
33
|
required: { type: Boolean, default: !1 },
|
|
34
34
|
additional: { type: Boolean }
|
|
35
35
|
},
|
|
36
|
-
setup(
|
|
37
|
-
const O = ["oneOf", "anyOf", "allOf", "not"];
|
|
38
|
-
return (e,
|
|
39
|
-
var
|
|
40
|
-
return u(), i("div",
|
|
41
|
-
e.$slots.name ? (u(), i("div",
|
|
42
|
-
|
|
43
|
-
])) :
|
|
36
|
+
setup(T) {
|
|
37
|
+
const O = ["oneOf", "anyOf", "allOf", "not"], S = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
|
|
38
|
+
return (e, z) => {
|
|
39
|
+
var v, f, k, h, g, B, q;
|
|
40
|
+
return u(), i("div", V, [
|
|
41
|
+
e.$slots.name ? (u(), i("div", C, [
|
|
42
|
+
A(e.$slots, "name", {}, void 0, !0)
|
|
43
|
+
])) : l("", !0),
|
|
44
44
|
e.additional ? (u(), i("div", $, [
|
|
45
|
-
(
|
|
45
|
+
(v = e.value) != null && v["x-additionalPropertiesName"] ? (u(), i(m, { key: 0 }, [
|
|
46
46
|
a(t(e.value["x-additionalPropertiesName"]), 1)
|
|
47
47
|
], 64)) : (u(), i(m, { key: 1 }, [
|
|
48
48
|
a(" additional properties ")
|
|
49
49
|
], 64))
|
|
50
|
-
])) :
|
|
50
|
+
])) : l("", !0),
|
|
51
51
|
(f = e.value) != null && f.deprecated ? (u(), i("div", b, [
|
|
52
|
-
|
|
53
|
-
default:
|
|
52
|
+
y(L(N), null, {
|
|
53
|
+
default: r(() => [
|
|
54
54
|
a("deprecated")
|
|
55
55
|
]),
|
|
56
56
|
_: 1
|
|
57
57
|
})
|
|
58
|
-
])) :
|
|
59
|
-
e.required ? (u(), i("div",
|
|
60
|
-
(k = e.value) != null && k.const || (h = e.value) != null && h.enum && e.value.enum.length === 1 ? (u(), i("div",
|
|
61
|
-
|
|
62
|
-
prefix:
|
|
58
|
+
])) : l("", !0),
|
|
59
|
+
e.required ? (u(), i("div", D, " required ")) : l("", !0),
|
|
60
|
+
(k = e.value) != null && k.const || (h = e.value) != null && h.enum && e.value.enum.length === 1 ? (u(), i("div", j, [
|
|
61
|
+
y(n, { truncate: "" }, {
|
|
62
|
+
prefix: r(() => [
|
|
63
63
|
a("const:")
|
|
64
64
|
]),
|
|
65
|
-
default:
|
|
65
|
+
default: r(() => [
|
|
66
66
|
a(" " + t(e.value.const ?? e.value.enum[0]), 1)
|
|
67
67
|
]),
|
|
68
68
|
_: 1
|
|
69
69
|
})
|
|
70
|
-
])) : (g = e.value) != null && g.type ? (u(), i("div",
|
|
70
|
+
])) : (g = e.value) != null && g.type ? (u(), i("div", E, [
|
|
71
71
|
e.additional ? (u(), o(n, { key: 0 }, {
|
|
72
|
-
prefix:
|
|
72
|
+
prefix: r(() => [
|
|
73
73
|
a("key:")
|
|
74
74
|
]),
|
|
75
|
-
default:
|
|
75
|
+
default: r(() => [
|
|
76
76
|
a(" string ")
|
|
77
77
|
]),
|
|
78
78
|
_: 1
|
|
79
|
-
})) :
|
|
80
|
-
|
|
81
|
-
default:
|
|
82
|
-
var d, s,
|
|
79
|
+
})) : l("", !0),
|
|
80
|
+
y(n, null, M({
|
|
81
|
+
default: r(() => {
|
|
82
|
+
var d, s, p;
|
|
83
83
|
return [
|
|
84
84
|
(s = (d = e.value) == null ? void 0 : d.items) != null && s.type ? (u(), i(m, { key: 0 }, [
|
|
85
85
|
a(t(e.value.type) + " " + t(e.value.items.type) + "[] ", 1)
|
|
86
86
|
], 64)) : (u(), i(m, { key: 1 }, [
|
|
87
|
-
a(t(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + t((
|
|
87
|
+
a(t(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + t((p = e.value) != null && p.nullable ? " | nullable" : ""), 1)
|
|
88
88
|
], 64)),
|
|
89
89
|
e.value.minItems || e.value.maxItems ? (u(), i(m, { key: 2 }, [
|
|
90
90
|
a(t(e.value.minItems) + "…" + t(e.value.maxItems), 1)
|
|
91
|
-
], 64)) :
|
|
91
|
+
], 64)) : l("", !0)
|
|
92
92
|
];
|
|
93
93
|
}),
|
|
94
94
|
_: 2
|
|
95
95
|
}, [
|
|
96
96
|
e.additional ? {
|
|
97
97
|
name: "prefix",
|
|
98
|
-
fn:
|
|
98
|
+
fn: r(() => [
|
|
99
99
|
a("value:")
|
|
100
100
|
]),
|
|
101
101
|
key: "0"
|
|
102
102
|
} : void 0
|
|
103
103
|
]), 1024),
|
|
104
104
|
e.value.minLength ? (u(), o(n, { key: 1 }, {
|
|
105
|
-
prefix:
|
|
105
|
+
prefix: r(() => [
|
|
106
106
|
a("min:")
|
|
107
107
|
]),
|
|
108
|
-
default:
|
|
108
|
+
default: r(() => [
|
|
109
109
|
a(" " + t(e.value.minLength), 1)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
|
-
})) :
|
|
112
|
+
})) : l("", !0),
|
|
113
113
|
e.value.maxLength ? (u(), o(n, { key: 2 }, {
|
|
114
|
-
prefix:
|
|
114
|
+
prefix: r(() => [
|
|
115
115
|
a("max:")
|
|
116
116
|
]),
|
|
117
|
-
default:
|
|
117
|
+
default: r(() => [
|
|
118
118
|
a(" " + t(e.value.maxLength), 1)
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
121
|
-
})) :
|
|
121
|
+
})) : l("", !0),
|
|
122
122
|
e.value.uniqueItems ? (u(), o(n, { key: 3 }, {
|
|
123
|
-
default:
|
|
123
|
+
default: r(() => [
|
|
124
124
|
a(" unique! ")
|
|
125
125
|
]),
|
|
126
126
|
_: 1
|
|
127
|
-
})) :
|
|
127
|
+
})) : l("", !0),
|
|
128
128
|
e.value.format ? (u(), o(n, { key: 4 }, {
|
|
129
|
-
default:
|
|
129
|
+
default: r(() => [
|
|
130
130
|
a(t(e.value.format), 1)
|
|
131
131
|
]),
|
|
132
132
|
_: 1
|
|
133
|
-
})) :
|
|
133
|
+
})) : l("", !0),
|
|
134
134
|
e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (u(), o(n, { key: 5 }, {
|
|
135
|
-
prefix:
|
|
135
|
+
prefix: r(() => [
|
|
136
136
|
a("greater than:")
|
|
137
137
|
]),
|
|
138
|
-
default:
|
|
138
|
+
default: r(() => [
|
|
139
139
|
a(" " + t(e.value.minimum), 1)
|
|
140
140
|
]),
|
|
141
141
|
_: 1
|
|
142
|
-
})) :
|
|
142
|
+
})) : l("", !0),
|
|
143
143
|
e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (u(), o(n, { key: 6 }, {
|
|
144
|
-
prefix:
|
|
144
|
+
prefix: r(() => [
|
|
145
145
|
a("min:")
|
|
146
146
|
]),
|
|
147
|
-
default:
|
|
147
|
+
default: r(() => [
|
|
148
148
|
a(" " + t(e.value.minimum), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
|
-
})) :
|
|
151
|
+
})) : l("", !0),
|
|
152
152
|
e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (u(), o(n, { key: 7 }, {
|
|
153
|
-
prefix:
|
|
153
|
+
prefix: r(() => [
|
|
154
154
|
a("less than:")
|
|
155
155
|
]),
|
|
156
|
-
default:
|
|
156
|
+
default: r(() => [
|
|
157
157
|
a(" " + t(e.value.maximum), 1)
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
|
-
})) :
|
|
160
|
+
})) : l("", !0),
|
|
161
161
|
e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (u(), o(n, { key: 8 }, {
|
|
162
|
-
prefix:
|
|
162
|
+
prefix: r(() => [
|
|
163
163
|
a("max:")
|
|
164
164
|
]),
|
|
165
|
-
default:
|
|
165
|
+
default: r(() => [
|
|
166
166
|
a(" " + t(e.value.maximum), 1)
|
|
167
167
|
]),
|
|
168
168
|
_: 1
|
|
169
|
-
})) :
|
|
169
|
+
})) : l("", !0),
|
|
170
170
|
e.value.pattern ? (u(), o(n, {
|
|
171
171
|
key: 9,
|
|
172
172
|
code: "",
|
|
173
173
|
truncate: ""
|
|
174
174
|
}, {
|
|
175
|
-
default:
|
|
175
|
+
default: r(() => [
|
|
176
176
|
a(t(e.value.pattern), 1)
|
|
177
177
|
]),
|
|
178
178
|
_: 1
|
|
179
|
-
})) :
|
|
179
|
+
})) : l("", !0),
|
|
180
180
|
e.$props.enum ? (u(), o(n, { key: 10 }, {
|
|
181
|
-
default:
|
|
181
|
+
default: r(() => [
|
|
182
182
|
a("enum")
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
|
-
})) :
|
|
185
|
+
})) : l("", !0),
|
|
186
186
|
e.value.default ? (u(), o(n, {
|
|
187
187
|
key: 11,
|
|
188
188
|
truncate: ""
|
|
189
189
|
}, {
|
|
190
|
-
prefix:
|
|
190
|
+
prefix: r(() => [
|
|
191
191
|
a("default:")
|
|
192
192
|
]),
|
|
193
|
-
default:
|
|
194
|
-
a(" " + t(e.value
|
|
193
|
+
default: r(() => [
|
|
194
|
+
a(" " + t(S(e.value)), 1)
|
|
195
195
|
]),
|
|
196
196
|
_: 1
|
|
197
|
-
})) :
|
|
198
|
-
])) :
|
|
199
|
-
(B = e.value) != null && B.writeOnly ? (u(), i("div",
|
|
197
|
+
})) : l("", !0)
|
|
198
|
+
])) : l("", !0),
|
|
199
|
+
(B = e.value) != null && B.writeOnly ? (u(), i("div", F, " write-only ")) : (q = e.value) != null && q.readOnly ? (u(), i("div", H, " read-only ")) : l("", !0),
|
|
200
200
|
(u(!0), i(m, null, P(O.filter((d) => {
|
|
201
|
-
var s,
|
|
202
|
-
return ((s = e.value) == null ? void 0 : s[d]) || ((I = (
|
|
201
|
+
var s, p, I;
|
|
202
|
+
return ((s = e.value) == null ? void 0 : s[d]) || ((I = (p = e.value) == null ? void 0 : p.items) == null ? void 0 : I[d]);
|
|
203
203
|
}), (d) => (u(), o(L(N), { key: d }, {
|
|
204
|
-
default:
|
|
204
|
+
default: r(() => [
|
|
205
205
|
a(t(d), 1)
|
|
206
206
|
]),
|
|
207
207
|
_: 2
|
|
@@ -211,5 +211,5 @@ const C = { class: "property-heading" }, V = {
|
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
export {
|
|
214
|
-
|
|
214
|
+
Q as default
|
|
215
215
|
};
|