@scalar/api-reference 1.25.113 → 1.25.115

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/browser/standalone.js +7272 -7231
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  5. package/dist/components/Content/Content.vue.js +1 -1
  6. package/dist/components/Content/Content.vue2.js +65 -59
  7. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  9. package/dist/components/Content/Introduction/Description.vue2.js +24 -24
  10. package/dist/components/Content/Introduction/Introduction.vue2.js +13 -13
  11. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  13. package/dist/components/Content/Schema/Schema.vue2.js +67 -56
  14. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -0
  15. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  17. package/dist/components/Content/Schema/SchemaProperty.vue2.js +68 -66
  18. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -0
  19. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +3 -3
  21. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +101 -85
  22. package/dist/components/Content/Schema/helpers/formatExample.js +1 -1
  23. package/dist/features/ApiClientModal/useApiClient.d.ts +58 -58
  24. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  25. package/dist/features/Operation/hooks/useRequestExample.js +1 -1
  26. package/dist/helpers/get-request.d.ts +1 -1
  27. package/dist/helpers/get-request.d.ts.map +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/style.css +1 -1
  30. package/package.json +12 -12
@@ -1,23 +1,23 @@
1
- import { defineComponent as Q, computed as y, openBlock as l, createElementBlock as t, normalizeClass as $, createVNode as n, createSlots as W, withCtx as f, createTextVNode as b, toDisplayString as r, unref as i, createCommentVNode as s, createElementVNode as c, Fragment as u, renderList as d, createBlock as E } from "vue";
1
+ import { defineComponent as Q, computed as y, openBlock as l, createElementBlock as t, normalizeClass as $, createVNode as r, createSlots as W, withCtx as f, createTextVNode as b, toDisplayString as s, unref as i, createCommentVNode as n, createElementVNode as c, Fragment as p, renderList as d, createBlock as E } from "vue";
2
2
  import { formatExample as X } from "./helpers/formatExample.js";
3
3
  import { optimizeValueForDisplay as Y, discriminators as _ } from "./helpers/optimizeValueForDisplay.js";
4
4
  import { Disclosure as x, DisclosurePanel as ee, DisclosureButton as le } from "@headlessui/vue";
5
- import { ScalarMarkdown as S, ScalarIcon as te } from "@scalar/components";
5
+ import { ScalarMarkdown as B, ScalarIcon as te } from "@scalar/components";
6
6
  import g from "./Schema.vue.js";
7
7
  import ae from "./SchemaPropertyHeading.vue.js";
8
8
  const oe = {
9
9
  key: 0,
10
10
  class: "property-description"
11
- }, se = {
11
+ }, ne = {
12
12
  key: 1,
13
13
  class: "property-description"
14
- }, ne = {
14
+ }, re = {
15
15
  key: 2,
16
16
  class: "property-example custom-scroll"
17
- }, re = { class: "property-example-value" }, ie = {
17
+ }, se = { class: "property-example-value" }, ie = {
18
18
  key: 3,
19
19
  class: "property-example custom-scroll"
20
- }, ue = { class: "property-example-label" }, pe = {
20
+ }, pe = { class: "property-example-label" }, ue = {
21
21
  key: 4,
22
22
  class: "property-enum"
23
23
  }, de = {
@@ -48,10 +48,11 @@ const oe = {
48
48
  compact: { type: Boolean, default: !1 },
49
49
  description: {},
50
50
  additional: { type: Boolean },
51
+ pattern: { type: Boolean },
51
52
  withExamples: { type: Boolean, default: !0 }
52
53
  },
53
54
  setup(G) {
54
- const h = G, B = {
55
+ const h = G, S = {
55
56
  integer: {
56
57
  _default: "Integer numbers.",
57
58
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -64,19 +65,19 @@ const oe = {
64
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
65
66
  binary: "binary data, used to describe files"
66
67
  }
67
- }, D = function(e, o) {
68
- return o != null && o.properties || o != null && o.additionalProperties ? null : e || (o == null ? void 0 : o.description) || null;
68
+ }, D = function(e, a) {
69
+ return a != null && a.properties || a != null && a.additionalProperties || a != null && a.patternProperties ? null : e || (a == null ? void 0 : a.description) || null;
69
70
  }, w = function(e) {
70
- return !e || !B[e.type] ? null : B[e.type][e.format || "_default"];
71
+ return !e || !S[e.type] ? null : S[e.type][e.format || "_default"];
71
72
  }, m = function(e) {
72
- var o;
73
- return (e == null ? void 0 : e.enum) || ((o = e == null ? void 0 : e.items) == null ? void 0 : o.enum) || [];
73
+ var a;
74
+ return (e == null ? void 0 : e.enum) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.enum) || [];
74
75
  }, C = y(() => m(h.value).length > 9), P = y(() => C.value ? 5 : 9), J = y(
75
76
  () => m(h.value).slice(0, P.value)
76
77
  ), K = y(
77
78
  () => m(h.value).slice(P.value)
78
79
  ), k = y(() => Y(h.value));
79
- return (e, o) => {
80
+ return (e, a) => {
80
81
  var j, F, N, V, q, z, I, L, H, O, R, T, U;
81
82
  return l(), t("div", {
82
83
  class: $(["property", [
@@ -87,8 +88,9 @@ const oe = {
87
88
  }
88
89
  ]])
89
90
  }, [
90
- n(ae, {
91
+ r(ae, {
91
92
  additional: e.additional,
93
+ pattern: e.pattern,
92
94
  enum: m(e.value).length > 0,
93
95
  required: e.required,
94
96
  value: k.value
@@ -96,124 +98,124 @@ const oe = {
96
98
  e.name ? {
97
99
  name: "name",
98
100
  fn: f(() => [
99
- b(r(e.name), 1)
101
+ b(s(e.name), 1)
100
102
  ]),
101
103
  key: "0"
102
104
  } : void 0,
103
105
  (F = e.value) != null && F.example ? {
104
106
  name: "example",
105
107
  fn: f(() => [
106
- b(" Example: " + r(e.value.example), 1)
108
+ b(" Example: " + s(e.value.example), 1)
107
109
  ]),
108
110
  key: "1"
109
111
  } : void 0
110
- ]), 1032, ["additional", "enum", "required", "value"]),
112
+ ]), 1032, ["additional", "pattern", "enum", "required", "value"]),
111
113
  D(e.description, e.value) ? (l(), t("div", oe, [
112
- n(i(S), {
114
+ r(i(B), {
113
115
  value: D(e.description, e.value)
114
116
  }, null, 8, ["value"])
115
- ])) : w(e.value) ? (l(), t("div", se, [
116
- n(i(S), {
117
+ ])) : w(e.value) ? (l(), t("div", ne, [
118
+ r(i(B), {
117
119
  value: w(e.value) || ""
118
120
  }, null, 8, ["value"])
119
- ])) : s("", !0),
120
- e.withExamples && ((N = e.value) != null && N.example || (q = (V = e.value) == null ? void 0 : V.items) != null && q.example) ? (l(), t("div", ne, [
121
- o[0] || (o[0] = c("span", { class: "property-example-label" }, "Example", -1)),
122
- c("code", re, r(i(X)(e.value.example || ((z = e.value) == null ? void 0 : z.items.example))), 1)
123
- ])) : s("", !0),
121
+ ])) : n("", !0),
122
+ e.withExamples && ((N = e.value) != null && N.example || (q = (V = e.value) == null ? void 0 : V.items) != null && q.example) ? (l(), t("div", re, [
123
+ a[0] || (a[0] = c("span", { class: "property-example-label" }, "Example", -1)),
124
+ c("code", se, s(i(X)(e.value.example || ((z = e.value) == null ? void 0 : z.items.example))), 1)
125
+ ])) : n("", !0),
124
126
  (I = e.value) != null && I.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), t("div", ie, [
125
- c("span", ue, r(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
126
- (l(!0), t(u, null, d(e.value.examples, (a, p) => (l(), t("code", {
127
- key: p,
127
+ c("span", pe, s(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
128
+ (l(!0), t(p, null, d(e.value.examples, (o, u) => (l(), t("code", {
129
+ key: u,
128
130
  class: "property-example-value"
129
- }, r(a), 1))), 128))
130
- ])) : s("", !0),
131
- ((L = m(e.value)) == null ? void 0 : L.length) > 0 ? (l(), t("div", pe, [
131
+ }, s(o), 1))), 128))
132
+ ])) : n("", !0),
133
+ ((L = m(e.value)) == null ? void 0 : L.length) > 0 ? (l(), t("div", ue, [
132
134
  (H = e.value) != null && H["x-enumDescriptions"] ? (l(), t("div", de, [
133
- (l(!0), t(u, null, d(m(e.value), (a) => (l(), t("div", {
134
- key: a,
135
+ (l(!0), t(p, null, d(m(e.value), (o) => (l(), t("div", {
136
+ key: o,
135
137
  class: "property"
136
138
  }, [
137
139
  c("div", me, [
138
- c("div", ce, r(a), 1)
140
+ c("div", ce, s(o), 1)
139
141
  ]),
140
142
  c("div", ve, [
141
- n(i(S), {
142
- value: e.value["x-enumDescriptions"][a]
143
+ r(i(B), {
144
+ value: e.value["x-enumDescriptions"][o]
143
145
  }, null, 8, ["value"])
144
146
  ])
145
147
  ]))), 128))
146
148
  ])) : (l(), t("ul", ye, [
147
- (l(!0), t(u, null, d(J.value, (a) => (l(), t("li", {
148
- key: a,
149
+ (l(!0), t(p, null, d(J.value, (o) => (l(), t("li", {
150
+ key: o,
149
151
  class: "property-enum-value"
150
- }, r(a), 1))), 128)),
152
+ }, s(o), 1))), 128)),
151
153
  C.value ? (l(), E(i(x), { key: 0 }, {
152
- default: f(({ open: a }) => [
153
- n(i(ee), null, {
154
+ default: f(({ open: o }) => [
155
+ r(i(ee), null, {
154
156
  default: f(() => [
155
- (l(!0), t(u, null, d(K.value, (p) => (l(), t("li", {
156
- key: p,
157
+ (l(!0), t(p, null, d(K.value, (u) => (l(), t("li", {
158
+ key: u,
157
159
  class: "property-enum-value"
158
- }, r(p), 1))), 128))
160
+ }, s(u), 1))), 128))
159
161
  ]),
160
162
  _: 1
161
163
  }),
162
- n(i(le), { class: "enum-toggle-button" }, {
164
+ r(i(le), { class: "enum-toggle-button" }, {
163
165
  default: f(() => [
164
- n(i(te), {
165
- class: $(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
166
+ r(i(te), {
167
+ class: $(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
166
168
  icon: "Add",
167
169
  size: "sm"
168
170
  }, null, 8, ["class"]),
169
- b(" " + r(a ? "Hide values" : "Show all values"), 1)
171
+ b(" " + s(o ? "Hide values" : "Show all values"), 1)
170
172
  ]),
171
173
  _: 2
172
174
  }, 1024)
173
175
  ]),
174
176
  _: 1
175
- })) : s("", !0)
177
+ })) : n("", !0)
176
178
  ]))
177
- ])) : s("", !0),
179
+ ])) : n("", !0),
178
180
  ((O = e.value) == null ? void 0 : O.type) === "object" && ((R = e.value) != null && R.properties || (T = e.value) != null && T.additionalProperties) ? (l(), t("div", fe, [
179
- n(g, {
181
+ r(g, {
180
182
  compact: e.compact,
181
183
  level: e.level + 1,
182
184
  value: e.value
183
185
  }, null, 8, ["compact", "level", "value"])
184
- ])) : s("", !0),
185
- (U = e.value) != null && U.items ? (l(), t(u, { key: 6 }, [
186
+ ])) : n("", !0),
187
+ (U = e.value) != null && U.items ? (l(), t(p, { key: 6 }, [
186
188
  ["object"].includes(e.value.items.type) ? (l(), t("div", he, [
187
- n(g, {
189
+ r(g, {
188
190
  compact: e.compact,
189
191
  level: e.level + 1,
190
192
  value: e.value.items
191
193
  }, null, 8, ["compact", "level", "value"])
192
- ])) : s("", !0)
193
- ], 64)) : s("", !0),
194
- (l(!0), t(u, null, d(i(_), (a) => {
195
- var p, Z, A;
196
- return l(), t(u, { key: a }, [
197
- (p = k.value) != null && p[a] ? (l(), t("div", ge, [
198
- (l(!0), t(u, null, d(k.value[a], (v) => {
194
+ ])) : n("", !0)
195
+ ], 64)) : n("", !0),
196
+ (l(!0), t(p, null, d(i(_), (o) => {
197
+ var u, Z, A;
198
+ return l(), t(p, { key: o }, [
199
+ (u = k.value) != null && u[o] ? (l(), t("div", ge, [
200
+ (l(!0), t(p, null, d(k.value[o], (v) => {
199
201
  var M;
200
202
  return l(), E(g, {
201
203
  key: v.id,
202
204
  compact: e.compact,
203
205
  level: e.level + 1,
204
- noncollapsible: ((M = e.value) == null ? void 0 : M[a].length) === 1,
206
+ noncollapsible: ((M = e.value) == null ? void 0 : M[o].length) === 1,
205
207
  value: v
206
208
  }, null, 8, ["compact", "level", "noncollapsible", "value"]);
207
209
  }), 128))
208
- ])) : s("", !0),
209
- (A = (Z = e.value) == null ? void 0 : Z.items) != null && A[a] && e.level < 3 ? (l(), t("div", ke, [
210
- (l(!0), t(u, null, d(e.value.items[a], (v) => (l(), E(g, {
210
+ ])) : n("", !0),
211
+ (A = (Z = e.value) == null ? void 0 : Z.items) != null && A[o] && e.level < 3 ? (l(), t("div", ke, [
212
+ (l(!0), t(p, null, d(e.value.items[o], (v) => (l(), E(g, {
211
213
  key: v.id,
212
214
  compact: e.compact,
213
215
  level: e.level + 1,
214
216
  value: v
215
217
  }, null, 8, ["compact", "level", "value"]))), 128))
216
- ])) : s("", !0)
218
+ ])) : n("", !0)
217
219
  ], 64);
218
220
  }), 128))
219
221
  ], 2);
@@ -3,11 +3,13 @@ type __VLS_Props = {
3
3
  enum?: boolean;
4
4
  required?: boolean;
5
5
  additional?: boolean;
6
+ pattern?: boolean;
6
7
  };
7
8
  declare function __VLS_template(): {
8
9
  attrs: Partial<{}>;
9
10
  slots: {
10
11
  name?(_: {}): any;
12
+ name?(_: {}): any;
11
13
  };
12
14
  refs: {};
13
15
  rootEl: HTMLDivElement;
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2NA,KAAK,WAAW,GAAG;IACf,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;CACrB,CAAC;AA0BJ,iBAAS,cAAc;WA0RT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAzUN,OAAO;wFAiVpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAoOA,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WA4ST,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA5VN,OAAO;wFAoWpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,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
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-e3aa4b0d"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dd95f4d7"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,209 +1,225 @@
1
- import { defineComponent as P, openBlock as u, createElementBlock as n, renderSlot as S, createCommentVNode as t, Fragment as s, createTextVNode as l, toDisplayString as i, createVNode as v, unref as b, withCtx as r, createBlock as d, renderList as V } from "vue";
1
+ import { defineComponent as S, openBlock as u, createElementBlock as n, renderSlot as A, Fragment as m, createTextVNode as l, createCommentVNode as r, toDisplayString as i, createVNode as v, unref as f, withCtx as t, createBlock as d, renderList as V } from "vue";
2
2
  import o from "./SchemaPropertyDetail.vue.js";
3
- import w from "../../Badge/Badge.vue.js";
4
- const C = { class: "property-heading" }, D = {
3
+ import k from "../../Badge/Badge.vue.js";
4
+ const $ = { class: "property-heading" }, C = {
5
5
  key: 0,
6
6
  class: "property-name"
7
- }, $ = {
7
+ }, D = {
8
8
  key: 1,
9
9
  class: "property-additional"
10
10
  }, j = {
11
11
  key: 2,
12
- class: "property-deprecated"
12
+ class: "property-pattern"
13
13
  }, E = {
14
14
  key: 3,
15
- class: "property-const"
15
+ class: "property-deprecated"
16
16
  }, F = {
17
- key: 6,
18
- class: "property-write-only"
17
+ key: 4,
18
+ class: "property-const"
19
19
  }, H = {
20
20
  key: 7,
21
- class: "property-read-only"
21
+ class: "property-write-only"
22
22
  }, T = {
23
23
  key: 8,
24
+ class: "property-read-only"
25
+ }, z = {
26
+ key: 9,
24
27
  class: "property-required"
25
- }, Q = /* @__PURE__ */ P({
28
+ }, R = /* @__PURE__ */ S({
26
29
  __name: "SchemaPropertyHeading",
27
30
  props: {
28
31
  value: {},
29
32
  enum: { type: Boolean },
30
33
  required: { type: Boolean, default: !1 },
31
- additional: { type: Boolean }
34
+ additional: { type: Boolean },
35
+ pattern: { type: Boolean }
32
36
  },
33
- setup(z) {
34
- const A = ["oneOf", "anyOf", "allOf", "not"], M = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
37
+ setup(G) {
38
+ const M = ["oneOf", "anyOf", "allOf", "not"], P = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
35
39
  return (e, a) => {
36
- var f, k, g, B, q, I, L, N;
37
- return u(), n("div", C, [
38
- e.$slots.name ? (u(), n("div", D, [
39
- S(e.$slots, "name", {}, void 0, !0)
40
- ])) : t("", !0),
41
- e.additional ? (u(), n("div", $, [
42
- (f = e.value) != null && f["x-additionalPropertiesName"] ? (u(), n(s, { key: 0 }, [
40
+ var g, B, q, I, L, N, O, b;
41
+ return u(), n("div", $, [
42
+ e.$slots.name ? (u(), n("div", C, [
43
+ e.pattern ? (u(), n(m, { key: 1 }, [
44
+ a[0] || (a[0] = l("/")),
45
+ A(e.$slots, "name", {}, void 0, !0),
46
+ a[1] || (a[1] = l("/"))
47
+ ], 64)) : A(e.$slots, "name", { key: 0 }, void 0, !0)
48
+ ])) : r("", !0),
49
+ e.additional ? (u(), n("div", D, [
50
+ (g = e.value) != null && g["x-additionalPropertiesName"] ? (u(), n(m, { key: 0 }, [
43
51
  l(i(e.value["x-additionalPropertiesName"]), 1)
44
- ], 64)) : (u(), n(s, { key: 1 }, [
52
+ ], 64)) : (u(), n(m, { key: 1 }, [
45
53
  l("additional properties")
46
54
  ], 64))
47
- ])) : t("", !0),
48
- (k = e.value) != null && k.deprecated ? (u(), n("div", j, [
49
- v(b(w), null, {
50
- default: r(() => a[0] || (a[0] = [
55
+ ])) : r("", !0),
56
+ e.pattern ? (u(), n("div", j, [
57
+ v(f(k), null, {
58
+ default: t(() => a[2] || (a[2] = [
59
+ l("pattern")
60
+ ])),
61
+ _: 1
62
+ })
63
+ ])) : r("", !0),
64
+ (B = e.value) != null && B.deprecated ? (u(), n("div", E, [
65
+ v(f(k), null, {
66
+ default: t(() => a[3] || (a[3] = [
51
67
  l("deprecated")
52
68
  ])),
53
69
  _: 1
54
70
  })
55
- ])) : t("", !0),
56
- (g = e.value) != null && g.const || (B = e.value) != null && B.enum && e.value.enum.length === 1 ? (u(), n("div", E, [
71
+ ])) : r("", !0),
72
+ (q = e.value) != null && q.const || (I = e.value) != null && I.enum && e.value.enum.length === 1 ? (u(), n("div", F, [
57
73
  v(o, { truncate: "" }, {
58
- prefix: r(() => a[1] || (a[1] = [
74
+ prefix: t(() => a[4] || (a[4] = [
59
75
  l("const:")
60
76
  ])),
61
- default: r(() => [
77
+ default: t(() => [
62
78
  l(" " + i(e.value.const ?? e.value.enum[0]), 1)
63
79
  ]),
64
80
  _: 1
65
81
  })
66
- ])) : (q = e.value) != null && q.type ? (u(), n(s, { key: 4 }, [
82
+ ])) : (L = e.value) != null && L.type ? (u(), n(m, { key: 5 }, [
67
83
  v(o, null, {
68
- default: r(() => {
69
- var m, y, p;
84
+ default: t(() => {
85
+ var s, p, y;
70
86
  return [
71
- (y = (m = e.value) == null ? void 0 : m.items) != null && y.type ? (u(), n(s, { key: 0 }, [
87
+ (p = (s = e.value) == null ? void 0 : s.items) != null && p.type ? (u(), n(m, { key: 0 }, [
72
88
  l(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
73
- ], 64)) : (u(), n(s, { key: 1 }, [
74
- l(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((p = e.value) != null && p.nullable ? " | nullable" : ""), 1)
89
+ ], 64)) : (u(), n(m, { key: 1 }, [
90
+ l(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((y = e.value) != null && y.nullable ? " | nullable" : ""), 1)
75
91
  ], 64)),
76
- e.value.minItems || e.value.maxItems ? (u(), n(s, { key: 2 }, [
92
+ e.value.minItems || e.value.maxItems ? (u(), n(m, { key: 2 }, [
77
93
  l(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
78
- ], 64)) : t("", !0)
94
+ ], 64)) : r("", !0)
79
95
  ];
80
96
  }),
81
97
  _: 1
82
98
  }),
83
99
  e.value.minLength ? (u(), d(o, { key: 0 }, {
84
- prefix: r(() => a[2] || (a[2] = [
100
+ prefix: t(() => a[5] || (a[5] = [
85
101
  l("min:")
86
102
  ])),
87
- default: r(() => [
103
+ default: t(() => [
88
104
  l(" " + i(e.value.minLength), 1)
89
105
  ]),
90
106
  _: 1
91
- })) : t("", !0),
107
+ })) : r("", !0),
92
108
  e.value.maxLength ? (u(), d(o, { key: 1 }, {
93
- prefix: r(() => a[3] || (a[3] = [
109
+ prefix: t(() => a[6] || (a[6] = [
94
110
  l("max:")
95
111
  ])),
96
- default: r(() => [
112
+ default: t(() => [
97
113
  l(" " + i(e.value.maxLength), 1)
98
114
  ]),
99
115
  _: 1
100
- })) : t("", !0),
116
+ })) : r("", !0),
101
117
  e.value.uniqueItems ? (u(), d(o, { key: 2 }, {
102
- default: r(() => a[4] || (a[4] = [
118
+ default: t(() => a[7] || (a[7] = [
103
119
  l(" unique! ")
104
120
  ])),
105
121
  _: 1
106
- })) : t("", !0),
122
+ })) : r("", !0),
107
123
  e.value.format ? (u(), d(o, { key: 3 }, {
108
- default: r(() => [
124
+ default: t(() => [
109
125
  l(i(e.value.format), 1)
110
126
  ]),
111
127
  _: 1
112
- })) : t("", !0),
128
+ })) : r("", !0),
113
129
  e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (u(), d(o, { key: 4 }, {
114
- prefix: r(() => a[5] || (a[5] = [
130
+ prefix: t(() => a[8] || (a[8] = [
115
131
  l("greater than:")
116
132
  ])),
117
- default: r(() => [
133
+ default: t(() => [
118
134
  l(" " + i(e.value.minimum), 1)
119
135
  ]),
120
136
  _: 1
121
- })) : t("", !0),
137
+ })) : r("", !0),
122
138
  e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (u(), d(o, { key: 5 }, {
123
- prefix: r(() => a[6] || (a[6] = [
139
+ prefix: t(() => a[9] || (a[9] = [
124
140
  l("min:")
125
141
  ])),
126
- default: r(() => [
142
+ default: t(() => [
127
143
  l(" " + i(e.value.minimum), 1)
128
144
  ]),
129
145
  _: 1
130
- })) : t("", !0),
146
+ })) : r("", !0),
131
147
  e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (u(), d(o, { key: 6 }, {
132
- prefix: r(() => a[7] || (a[7] = [
148
+ prefix: t(() => a[10] || (a[10] = [
133
149
  l("less than:")
134
150
  ])),
135
- default: r(() => [
151
+ default: t(() => [
136
152
  l(" " + i(e.value.maximum), 1)
137
153
  ]),
138
154
  _: 1
139
- })) : t("", !0),
155
+ })) : r("", !0),
140
156
  e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (u(), d(o, { key: 7 }, {
141
- prefix: r(() => a[8] || (a[8] = [
157
+ prefix: t(() => a[11] || (a[11] = [
142
158
  l("max:")
143
159
  ])),
144
- default: r(() => [
160
+ default: t(() => [
145
161
  l(" " + i(e.value.maximum), 1)
146
162
  ]),
147
163
  _: 1
148
- })) : t("", !0),
164
+ })) : r("", !0),
149
165
  e.value.pattern ? (u(), d(o, {
150
166
  key: 8,
151
167
  code: "",
152
168
  truncate: ""
153
169
  }, {
154
- default: r(() => [
170
+ default: t(() => [
155
171
  l(i(e.value.pattern), 1)
156
172
  ]),
157
173
  _: 1
158
- })) : t("", !0),
174
+ })) : r("", !0),
159
175
  e.$props.enum ? (u(), d(o, { key: 9 }, {
160
- default: r(() => a[9] || (a[9] = [
176
+ default: t(() => a[12] || (a[12] = [
161
177
  l("enum")
162
178
  ])),
163
179
  _: 1
164
- })) : t("", !0),
180
+ })) : r("", !0),
165
181
  e.value.default !== void 0 ? (u(), d(o, {
166
182
  key: 10,
167
183
  truncate: ""
168
184
  }, {
169
- prefix: r(() => a[10] || (a[10] = [
185
+ prefix: t(() => a[13] || (a[13] = [
170
186
  l("default:")
171
187
  ])),
172
- default: r(() => [
173
- l(" " + i(M(e.value)), 1)
188
+ default: t(() => [
189
+ l(" " + i(P(e.value)), 1)
174
190
  ]),
175
191
  _: 1
176
- })) : t("", !0)
177
- ], 64)) : (u(), n(s, { key: 5 }, [
178
- ((I = e.value) == null ? void 0 : I.nullable) === !0 ? (u(), d(o, { key: 0 }, {
179
- default: r(() => a[11] || (a[11] = [
192
+ })) : r("", !0)
193
+ ], 64)) : (u(), n(m, { key: 6 }, [
194
+ ((N = e.value) == null ? void 0 : N.nullable) === !0 ? (u(), d(o, { key: 0 }, {
195
+ default: t(() => a[14] || (a[14] = [
180
196
  l(" nullable ")
181
197
  ])),
182
198
  _: 1
183
- })) : t("", !0)
199
+ })) : r("", !0)
184
200
  ], 64)),
185
- (L = e.value) != null && L.writeOnly ? (u(), n("div", F, " write-only ")) : (N = e.value) != null && N.readOnly ? (u(), n("div", H, " read-only ")) : t("", !0),
186
- (u(!0), n(s, null, V(A.filter(
187
- (m) => {
188
- var y, p, O;
189
- return ((y = e.value) == null ? void 0 : y[m]) || ((O = (p = e.value) == null ? void 0 : p.items) == null ? void 0 : O[m]);
201
+ (O = e.value) != null && O.writeOnly ? (u(), n("div", H, " write-only ")) : (b = e.value) != null && b.readOnly ? (u(), n("div", T, " read-only ")) : r("", !0),
202
+ (u(!0), n(m, null, V(M.filter(
203
+ (s) => {
204
+ var p, y, w;
205
+ return ((p = e.value) == null ? void 0 : p[s]) || ((w = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : w[s]);
190
206
  }
191
- ), (m) => {
192
- var y, p;
193
- return u(), n(s, { key: m }, [
194
- ((p = (y = e.value) == null ? void 0 : y[m]) == null ? void 0 : p.length) > 1 ? (u(), d(b(w), { key: 0 }, {
195
- default: r(() => [
196
- l(i(m), 1)
207
+ ), (s) => {
208
+ var p, y;
209
+ return u(), n(m, { key: s }, [
210
+ ((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (u(), d(f(k), { key: 0 }, {
211
+ default: t(() => [
212
+ l(i(s), 1)
197
213
  ]),
198
214
  _: 2
199
- }, 1024)) : t("", !0)
215
+ }, 1024)) : r("", !0)
200
216
  ], 64);
201
217
  }), 128)),
202
- e.required ? (u(), n("div", T, " required ")) : t("", !0)
218
+ e.required ? (u(), n("div", z, " required ")) : r("", !0)
203
219
  ]);
204
220
  };
205
221
  }
206
222
  });
207
223
  export {
208
- Q as default
224
+ R as default
209
225
  };
@@ -1,5 +1,5 @@
1
1
  function t(r) {
2
- return Array.isArray(r) ? `[${r.map((n) => typeof n == "string" || typeof n == "number" ? `"${n.toString().trim()}"` : typeof n == "object" ? JSON.stringify(n) : n === void 0 ? "undefined" : n === null ? "null" : n).join(", ")}]` : typeof r == "object" ? JSON.stringify(r) : r === null ? "null" : r === void 0 ? "undefined" : typeof r == "string" ? r.trim() : r.toString().trim();
2
+ return Array.isArray(r) ? `[${r.map((n) => typeof n == "string" ? `"${n.toString().trim()}"` : typeof n == "object" ? JSON.stringify(n) : n === void 0 ? "undefined" : n === null ? "null" : n).join(", ")}]` : typeof r == "object" ? JSON.stringify(r) : r === null ? "null" : r === void 0 ? "undefined" : typeof r == "string" ? r.trim() : r.toString().trim();
3
3
  }
4
4
  export {
5
5
  t as formatExample