@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.
Files changed (165) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/browser/standalone.js +9896 -10062
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +14 -11
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +70 -72
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +3 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.d.ts +0 -2
  13. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Content.vue.js +80 -80
  15. package/dist/components/Content/Models/ClassicLayout.vue.d.ts +5 -2
  16. package/dist/components/Content/Models/ClassicLayout.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Models/ClassicLayout.vue.js +2 -2
  18. package/dist/components/Content/Models/ClassicLayout.vue2.js +43 -45
  19. package/dist/components/Content/Models/ClassicLayout.vue3.js +2 -2
  20. package/dist/components/Content/Models/Models.vue.d.ts +2 -2
  21. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Models/Models.vue.js +27 -20
  23. package/dist/components/Content/Models/ModernLayout.vue.d.ts +5 -2
  24. package/dist/components/Content/Models/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Models/ModernLayout.vue.js +2 -2
  26. package/dist/components/Content/Models/ModernLayout.vue2.js +48 -52
  27. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +3 -2
  28. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Operations/TraversedEntry.vue.js +33 -32
  30. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts +2 -2
  31. package/dist/components/Content/Operations/TraversedEntryContainer.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Operations/TraversedEntryContainer.vue.js +1 -1
  33. package/dist/components/Content/Schema/Schema.vue.d.ts +6 -22
  34. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  36. package/dist/components/Content/Schema/Schema.vue2.js +86 -140
  37. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +15 -4
  38. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  39. package/dist/components/Content/Schema/SchemaComposition.vue.js +77 -138
  40. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +2 -13
  41. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  42. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +2 -2
  43. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +66 -92
  44. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
  45. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  47. package/dist/components/Content/Schema/SchemaHeading.vue2.js +19 -17
  48. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +5 -14
  49. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  50. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +47 -68
  51. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +4 -13
  52. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  54. package/dist/components/Content/Schema/SchemaProperty.vue2.js +116 -144
  55. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +1 -1
  56. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -1
  57. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  58. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +9 -4
  59. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  60. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
  61. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +173 -204
  62. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts +11 -0
  63. package/dist/components/Content/Schema/helpers/get-ref-name.d.ts.map +1 -0
  64. package/dist/components/Content/Schema/helpers/get-ref-name.js +11 -0
  65. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +13 -3
  66. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  67. package/dist/components/Content/Schema/helpers/get-schema-type.js +34 -13
  68. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +4 -2
  69. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -1
  70. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -4
  71. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  72. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +130 -84
  73. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +5 -5
  74. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  75. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +40 -31
  76. package/dist/components/Content/Schema/helpers/schema-composition.d.ts +0 -8
  77. package/dist/components/Content/Schema/helpers/schema-composition.d.ts.map +1 -1
  78. package/dist/components/Content/Schema/helpers/schema-composition.js +2 -6
  79. package/dist/components/Content/Schema/helpers/schema-name.d.ts +8 -17
  80. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  81. package/dist/components/Content/Schema/helpers/schema-name.js +24 -33
  82. package/dist/features/Operation/Operation.vue.d.ts +3 -4
  83. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Operation.vue.js +54 -73
  85. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts +10 -11
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +35 -43
  88. package/dist/features/Operation/components/{ParameterHeaders.vue.d.ts → Header.vue.d.ts} +4 -5
  89. package/dist/features/Operation/components/Header.vue.d.ts.map +1 -0
  90. package/dist/features/Operation/components/Header.vue.js +23 -0
  91. package/dist/features/Operation/components/Header.vue2.js +4 -0
  92. package/dist/features/Operation/components/Headers.vue.d.ts +8 -0
  93. package/dist/features/Operation/components/Headers.vue.d.ts.map +1 -0
  94. package/dist/features/Operation/components/Headers.vue.js +7 -0
  95. package/dist/features/Operation/components/Headers.vue2.js +61 -0
  96. package/dist/features/Operation/components/OperationParameters.vue.d.ts +4 -10
  97. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  98. package/dist/features/Operation/components/OperationParameters.vue.js +23 -33
  99. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -6
  100. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/components/OperationResponses.vue.js +22 -19
  102. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -10
  103. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  104. package/dist/features/Operation/components/ParameterList.vue.js +35 -5
  105. package/dist/features/Operation/components/ParameterList.vue2.js +2 -38
  106. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +4 -10
  107. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  108. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  109. package/dist/features/Operation/components/ParameterListItem.vue2.js +77 -74
  110. package/dist/features/Operation/components/RequestBody.vue.d.ts +3 -8
  111. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  112. package/dist/features/Operation/components/RequestBody.vue.js +1 -1
  113. package/dist/features/Operation/components/RequestBody.vue2.js +75 -82
  114. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +0 -4
  115. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  116. package/dist/features/Operation/components/callbacks/Callback.vue.js +3 -3
  117. package/dist/features/Operation/components/callbacks/Callback.vue2.js +35 -36
  118. package/dist/features/Operation/components/callbacks/Callback.vue3.js +2 -2
  119. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +0 -2
  120. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  121. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +13 -15
  122. package/dist/features/Operation/helpers/combine-params.d.ts +1 -1
  123. package/dist/features/Operation/helpers/combine-params.d.ts.map +1 -1
  124. package/dist/features/Operation/helpers/combine-params.js +2 -2
  125. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +1 -9
  126. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  127. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  128. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +75 -82
  129. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -10
  130. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  131. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  132. package/dist/features/Operation/layouts/ModernLayout.vue2.js +96 -103
  133. package/dist/index.js +1 -1
  134. package/dist/libs/openapi.d.ts +1 -13
  135. package/dist/libs/openapi.d.ts.map +1 -1
  136. package/dist/libs/openapi.js +39 -56
  137. package/dist/style.css +1 -1
  138. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +10 -4
  139. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  140. package/dist/v2/ApiReferenceWorkspace.vue.js +22 -18
  141. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +1 -1
  142. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  143. package/package.json +12 -12
  144. package/dist/components/Content/Schema/Schema.preview.d.ts +0 -1078
  145. package/dist/components/Content/Schema/Schema.preview.d.ts.map +0 -1
  146. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +0 -12
  147. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +0 -1
  148. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +0 -49
  149. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +0 -4
  150. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +0 -13
  151. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +0 -1
  152. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +0 -1
  153. package/dist/features/Operation/components/ParameterHeaders.vue.js +0 -7
  154. package/dist/features/Operation/components/ParameterHeaders.vue2.js +0 -64
  155. package/dist/features/Operation/components/ParameterList.vue3.js +0 -4
  156. package/dist/features/Operation/hooks/useResponses.d.ts +0 -17
  157. package/dist/features/Operation/hooks/useResponses.d.ts.map +0 -1
  158. package/dist/features/Operation/hooks/useResponses.js +0 -19
  159. package/dist/hooks/useDiscriminator.d.ts +0 -53
  160. package/dist/hooks/useDiscriminator.d.ts.map +0 -1
  161. package/dist/hooks/useDiscriminator.js +0 -149
  162. package/dist/hooks/useOperationDiscriminator.d.ts +0 -8
  163. package/dist/hooks/useOperationDiscriminator.d.ts.map +0 -1
  164. package/dist/hooks/useOperationDiscriminator.js +0 -57
  165. /package/dist/features/Operation/components/{ParameterHeaders.vue3.js → Headers.vue3.js} +0 -0
@@ -1,34 +1,36 @@
1
- import { defineComponent as z, computed as m, inject as Z, createBlock as u, openBlock as a, resolveDynamicComponent as L, normalizeClass as X, withCtx as b, createCommentVNode as l, createElementBlock as o, createVNode as d, createSlots as G, unref as y, toDisplayString as f, Fragment as h, createTextVNode as V, renderList as J } from "vue";
2
- import { ScalarMarkdown as D } from "@scalar/components";
3
- import { isTypeObject as K } from "./helpers/is-type-object.js";
4
- import { DISCRIMINATOR_CONTEXT as Q } from "../../../hooks/useDiscriminator.js";
5
- import { optimizeValueForDisplay as W, compositions as Y } from "./helpers/optimize-value-for-display.js";
6
- import H from "./Schema.vue.js";
7
- import C from "./SchemaComposition.vue.js";
8
- import _ from "./SchemaDiscriminator.vue.js";
9
- import x from "./SchemaEnumValues.vue.js";
10
- import ee from "./SchemaPropertyHeading.vue.js";
11
- import re from "../../Anchor/WithBreadcrumb.vue2.js";
12
- import ie from "../../../features/specification-extension/SpecificationExtension.vue2.js";
13
- const ae = {
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
- }, ne = {
18
+ }, x = {
17
19
  key: 1,
18
20
  class: "property-name-additional-properties"
19
- }, oe = {
21
+ }, ee = {
20
22
  key: 1,
21
23
  class: "property-description"
22
- }, te = {
24
+ }, re = {
23
25
  key: 2,
24
26
  class: "property-description"
25
- }, se = {
26
- key: 3,
27
+ }, ne = {
28
+ key: 4,
27
29
  class: "children"
28
- }, me = {
30
+ }, te = {
29
31
  key: 0,
30
32
  class: "children"
31
- }, Ne = /* @__PURE__ */ z({
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
- emits: ["update:modelValue"],
53
- setup(T, { emit: R }) {
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, r) => r != null && r.properties || r != null && r.additionalProperties || r != null && r.patternProperties || r != null && r.allOf ? null : e || (r == null ? void 0 : r.description) || null, N = (e) => !e || !k[e.type] ? null : k[e.type][e.format || e.contentEncoding || "_default"], E = (e) => {
69
- var r;
70
- return (e == null ? void 0 : e.enum) || ((r = e == null ? void 0 : e.items) == null ? void 0 : r.enum) || [];
71
- }, i = m(() => W(c.value)), t = Z(Q, null), n = m(() => {
72
- var e;
73
- return c.level > 0 ? i.value : (e = t == null ? void 0 : t.value) != null && e.mergedSchema ? t.value.mergedSchema : i.value;
74
- }), I = m(() => {
75
- var e;
76
- return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.selectedType) || (c.discriminatorMapping ? Object.keys(c.discriminatorMapping)[0] : "");
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 r = e.items;
84
- return "type" in r && ["object"].includes(r.type) || "$ref" in r || "discriminator" in r || "allOf" in r || "oneOf" in r || "anyOf" in r;
85
- }), $ = (e) => {
86
- const r = i.value;
87
- return !(r != null && r.items) || typeof r.items != "object" || !(e in r.items) ? !1 : !P.value;
88
- }, q = m(() => P.value), F = m(() => {
89
- if (!i.value)
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 = i.value, r = K(e), p = e.properties || e.additionalProperties;
92
- return r && p;
93
- }), A = m(() => c.level <= 1);
94
- return (e, r) => {
95
- var p;
96
- return a(), u(L(e.is ?? "li"), {
97
- class: X(["property", [
98
- (g(e.description, i.value), ""),
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": (p = i.value) == null ? void 0 : p.deprecated
102
+ "property--deprecated": (i = r.value) == null ? void 0 : i.deprecated
103
103
  }
104
104
  ]])
105
105
  }, {
106
- default: b(() => {
107
- var M, S;
106
+ default: f(() => {
107
+ var d, O, C, j;
108
108
  return [
109
- U(i.value, e.name, e.required) ? (a(), u(ee, {
109
+ w(r.value, e.name, e.required) ? (t(), u(W, {
110
110
  key: 0,
111
- enum: E(i.value).length > 0,
112
- required: e.required,
113
- value: i.value,
114
- schemas: e.schemas,
111
+ class: "group",
112
+ enum: V(r.value).length > 0,
115
113
  hideModelNames: e.hideModelNames,
116
- class: "group"
117
- }, G({ _: 2 }, [
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: b(() => [
121
- d(y(re), {
122
- breadcrumb: A.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
120
+ fn: f(() => [
121
+ m(a(X), {
122
+ breadcrumb: E.value && e.breadcrumb ? [...e.breadcrumb, e.name] : void 0
123
123
  }, {
124
- default: b(() => [
125
- e.variant === "patternProperties" ? (a(), o("span", ae, f(e.name), 1)) : e.variant === "additionalProperties" ? (a(), o("span", ne, f(e.name), 1)) : (a(), o(h, { key: 2 }, [
126
- V(f(e.name), 1)
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
- (M = i.value) != null && M.example ? {
134
+ (d = r.value) != null && d.example ? {
135
135
  name: "example",
136
- fn: b(() => [
137
- V(" Example: " + f(i.value.example), 1)
136
+ fn: f(() => [
137
+ S(" Example: " + y(r.value.example), 1)
138
138
  ]),
139
139
  key: "1"
140
140
  } : void 0
141
- ]), 1032, ["enum", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
142
- g(e.description, i.value) ? (a(), o("div", oe, [
143
- d(y(D), {
144
- value: g(e.description, i.value)
145
- }, null, 8, ["value"])
146
- ])) : N(i.value) ? (a(), o("div", te, [
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
- ])) : l("", !0),
151
- d(x, { value: i.value }, null, 8, ["value"]),
152
- F.value ? (a(), o("div", se, [
153
- d(H, {
154
- compact: e.compact,
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
- value: n.value,
160
- resolvedSchema: n.value,
161
- discriminatorMapping: e.discriminatorMapping,
162
- discriminatorPropertyName: e.discriminatorPropertyName,
163
- schemas: e.schemas,
164
- "onUpdate:modelValue": v
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
- value: n.value && typeof n.value == "object" && "items" in n.value ? n.value.items : i.value.items,
175
- resolvedSchema: n.value && typeof n.value == "object" && "items" in n.value ? n.value.items : i.value.items,
176
- discriminatorMapping: e.discriminatorMapping,
177
- discriminatorPropertyName: e.discriminatorPropertyName,
178
- schemas: e.schemas,
179
- "onUpdate:modelValue": v
180
- }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
181
- ])) : l("", !0)
182
- ], 64)) : l("", !0),
183
- (a(!0), o(h, null, J(y(Y), (s) => {
184
- var O, j, B;
185
- return a(), o(h, { key: s }, [
186
- (O = i.value) != null && O[s] && !((j = i.value) != null && j.items && typeof s == "string" && typeof i.value.items == "object" && s in i.value.items) ? (a(), u(C, {
187
- key: 0,
188
- breadcrumb: e.breadcrumb,
189
- compact: e.compact,
190
- composition: s,
191
- hideHeading: e.hideHeading,
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
- e.isDiscriminator && e.discriminatorMapping && e.compact ? (a(), u(_, {
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
- Ne as default
198
+ ve as default
227
199
  };
@@ -1,5 +1,5 @@
1
1
  type __VLS_Props = {
2
- examples?: Record<string, unknown>;
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,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;AAgKF,wBAMG"}
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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f177f42"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-64e15694"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,18 +1,23 @@
1
- import type { Schemas } from '../../../features/Operation/types/schemas';
1
+ import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  type __VLS_Props = {
3
- value?: Record<string, any>;
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<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
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":"AA8SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AASjE,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;AA8aF,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;AA6B5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,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":"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 f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-fe194f0c"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bfc3b782"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };