@scalar/api-reference 1.28.19 → 1.28.20

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 (42) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/browser/examples/openapi-3.1/openapi.yaml +18 -0
  3. package/dist/browser/examples/openapi-3.1/pathItems.yaml +12 -0
  4. package/dist/browser/examples/swagger-2.0/openapi.yaml +17 -0
  5. package/dist/browser/examples/swagger-2.0/pathItems.yaml +6 -0
  6. package/dist/browser/standalone.js +5606 -5568
  7. package/dist/browser/webpack-stats.json +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReferenceLayout.vue.js +3 -3
  10. package/dist/components/ApiReferenceLayout.vue2.js +16 -17
  11. package/dist/components/DocumentSelector/DocumentSelector.vue.d.ts.map +1 -1
  12. package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
  13. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  14. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  15. package/dist/components/Layouts/ModernLayout.vue2.js +18 -18
  16. package/dist/examples/openapi-3.1/openapi.yaml +18 -0
  17. package/dist/examples/openapi-3.1/pathItems.yaml +12 -0
  18. package/dist/examples/swagger-2.0/openapi.yaml +17 -0
  19. package/dist/examples/swagger-2.0/pathItems.yaml +6 -0
  20. package/dist/features/ApiClientModal/useApiClient.d.ts +5319 -5325
  21. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  22. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  23. package/dist/features/ExampleRequest/ExampleRequest.vue.js +3 -3
  24. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +145 -133
  25. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  26. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  27. package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -1
  28. package/dist/helpers/get-request.d.ts.map +1 -1
  29. package/dist/helpers/parse.d.ts +2 -1
  30. package/dist/helpers/parse.d.ts.map +1 -1
  31. package/dist/helpers/parse.js +59 -54
  32. package/dist/hooks/useMultipleDocuments.d.ts +1 -1
  33. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  34. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  35. package/dist/hooks/useReactiveSpec.js +27 -25
  36. package/dist/index.js +1 -1
  37. package/dist/style.css +1 -1
  38. package/package.json +9 -9
  39. package/dist/components/Spinner/Spinner.vue.d.ts +0 -3
  40. package/dist/components/Spinner/Spinner.vue.d.ts.map +0 -1
  41. package/dist/components/Spinner/index.d.ts +0 -2
  42. package/dist/components/Spinner/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA8nBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA8BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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
+ {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA6nBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA8BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAsRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAjfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAsf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YApiBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA2iB9D,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,8 +1,8 @@
1
1
  import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import e from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9aedb7d"]]);
4
+ import t from "../_virtual/_plugin-vue_export-helper.js";
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0272698e"]]);
6
6
  export {
7
- m as default
7
+ a as default
8
8
  };
@@ -6,8 +6,8 @@ import { addScalarClassesToHeadless as Re, ScalarErrorBoundary as $e } from "@sc
6
6
  import { defaultStateFactory as N } from "@scalar/oas-utils/helpers";
7
7
  import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
8
8
  import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
9
- import { useToasts as Le, ScalarToasts as Me } from "@scalar/use-toasts";
10
- import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as Fe } from "@vueuse/core";
9
+ import { useToasts as Me, ScalarToasts as Pe } from "@scalar/use-toasts";
10
+ import { useMediaQuery as ke, useResizeObserver as Le, useDebounceFn as Fe } from "@vueuse/core";
11
11
  import Ae from "./GettingStarted.vue.js";
12
12
  import { CONFIGURATION_SYMBOL as Be } from "../hooks/useConfig.js";
13
13
  import { useHttpClientStore as _e } from "../stores/useHttpClientStore.js";
@@ -35,10 +35,10 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
35
35
  setup(H) {
36
36
  const f = H, t = h(
37
37
  () => Ie.parse(f.configuration)
38
- ), { initializeToasts: U, toast: Y } = Le();
38
+ ), { initializeToasts: U, toast: Y } = Me();
39
39
  U((e) => Y(e));
40
- const z = Pe("(min-width: 1150px)"), G = R("100dvh"), S = R(null);
41
- ke(S, (e) => {
40
+ const z = ke("(min-width: 1150px)"), G = R("100dvh"), S = R(null);
41
+ Le(S, (e) => {
42
42
  G.value = e[0].contentRect.height + "px";
43
43
  });
44
44
  const V = h(Ee), {
@@ -56,8 +56,8 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
56
56
  getSectionId: Z,
57
57
  getTagId: x,
58
58
  hash: ee,
59
- isIntersectionEnabled: L,
60
- updateHash: M,
59
+ isIntersectionEnabled: M,
60
+ updateHash: P,
61
61
  replaceUrlState: te
62
62
  } = Ve(t);
63
63
  if (t.value.redirect && typeof window < "u") {
@@ -66,11 +66,11 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
66
66
  );
67
67
  e && history.replaceState({}, "", e);
68
68
  }
69
- B(() => M());
70
- const P = async (e) => {
69
+ B(() => P());
70
+ const k = async (e) => {
71
71
  var a;
72
- L.value = !1, M(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await We(100), L.value = !0;
73
- }, k = R(0);
72
+ M.value = !1, P(), e ? J(e) : (a = S.value) == null || a.scrollTo(0, 0), await We(100), M.value = !0;
73
+ }, L = R(0);
74
74
  B(() => Re()), le(() => {
75
75
  var o, s, r;
76
76
  history.scrollRestoration = "manual", D.on(({ specTitle: n }) => {
@@ -79,11 +79,11 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
79
79
  const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
80
80
  if (e && a) {
81
81
  const n = a.top - e.top;
82
- k.value = n < 2 ? 0 : n;
82
+ L.value = n < 2 ? 0 : n;
83
83
  }
84
84
  window.onhashchange = () => {
85
- P(X());
86
- }, window.onpopstate = () => t.value.pathRouting && P(I(window.location.pathname));
85
+ k(X());
86
+ }, window.onpopstate = () => t.value.pathRouting && k(I(window.location.pathname));
87
87
  });
88
88
  const ae = h(
89
89
  () => z.value || !t.value.isEditable
@@ -124,7 +124,6 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
124
124
  (e) => {
125
125
  var a;
126
126
  return e && T.importSpecFile(e, "default", {
127
- shouldLoad: !1,
128
127
  documentUrl: ((a = t.value.spec) == null ? void 0 : a.url) ?? t.value.url,
129
128
  useCollectionSecurity: !0,
130
129
  ...t.value
@@ -175,7 +174,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
175
174
  e.$attrs.class
176
175
  ]]),
177
176
  style: me({
178
- "--scalar-y-offset": `var(--scalar-custom-header-height, ${k.value}px)`
177
+ "--scalar-y-offset": `var(--scalar-custom-header-height, ${L.value}px)`
179
178
  }),
180
179
  onScrollPassive: a[4] || (a[4] = //@ts-ignore
181
180
  (...n) => i(F) && i(F)(...n))
@@ -257,7 +256,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
257
256
  ], 64)) : E("", !0),
258
257
  m(i(ze), { configuration: t.value }, null, 8, ["configuration"])
259
258
  ], 38),
260
- m(i(Me))
259
+ m(i(Pe))
261
260
  ], 64);
262
261
  };
263
262
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AAoIF,wBAOG"}
1
+ {"version":3,"file":"DocumentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DocumentSelector/DocumentSelector.vue"],"names":[],"mappings":"AAwEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC;;;;;;AAqIF,wBAOG"}
@@ -4,9 +4,9 @@ const w = {
4
4
  key: 0,
5
5
  class: "document-selector -mb-1 p-3 pb-0"
6
6
  }, S = {
7
- class: "group/dropdown-label hover:bg-b-2 text-c-2 py-1.75 pl-1.75 flex w-full cursor-pointer items-center rounded border pr-1.5",
7
+ class: "group/dropdown-label hover:bg-b-2 text-c-2 py-1.75 pl-1.75 flex w-full cursor-pointer items-center rounded border",
8
8
  tabindex: "0"
9
- }, k = { class: "text-c-1 overflow-hidden text-ellipsis text-sm font-medium" }, N = /* @__PURE__ */ b({
9
+ }, k = { class: "text-c-1 overflow-hidden truncate text-ellipsis text-sm font-medium" }, N = /* @__PURE__ */ b({
10
10
  __name: "DocumentSelector",
11
11
  props: {
12
12
  options: {},
@@ -49,7 +49,7 @@ const w = {
49
49
  }),
50
50
  c("span", k, x(((t = s.value) == null ? void 0 : t.label) || "Select API"), 1),
51
51
  i(a(d), {
52
- class: "group-hover/dropdown-label:text-c-1 ml-auto",
52
+ class: "group-hover/dropdown-label:text-c-1 ml-auto mr-2",
53
53
  icon: "ChevronDown",
54
54
  size: "sm",
55
55
  thickness: "2"
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAsChB,iBAAS,cAAc;WA2JT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/ModernLayout.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAsChB,iBAAS,cAAc;WA6JT,OAAO,IAA6B;;;;EAKjD;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAQnB,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"}
@@ -2,7 +2,7 @@ import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c3203d44"]]);
5
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b89dd3cb"]]);
6
6
  export {
7
- _ as default
7
+ d as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, useSlots as C, watch as c, openBlock as t, createBlock as u, normalizeClass as B, createSlots as w, withCtx as n, unref as l, isRef as D, createCommentVNode as d, createElementBlock as p, renderSlot as f, createVNode as m, renderList as M, normalizeProps as $, guardReactiveProps as V } from "vue";
1
+ import { defineComponent as v, useSlots as C, watch as c, openBlock as t, createBlock as u, normalizeClass as B, createSlots as w, withCtx as n, unref as s, isRef as D, createCommentVNode as d, createElementBlock as p, renderSlot as f, createVNode as m, renderList as M, normalizeProps as $, guardReactiveProps as V } from "vue";
2
2
  import { OpenApiClientButton as H } from "@scalar/api-client/components";
3
3
  import { ScalarSidebarFooter as K, ScalarColorModeToggleButton as L } from "@scalar/components";
4
4
  import { useBreakpoints as N } from "@scalar/use-hooks/useBreakpoints";
@@ -20,16 +20,16 @@ const P = { key: 0 }, T = {
20
20
  },
21
21
  emits: ["toggleDarkMode", "updateContent"],
22
22
  setup(g) {
23
- const a = g, S = C(), { mediaQueries: k } = N(), { isSidebarOpen: i } = A(), h = !1;
23
+ const l = g, S = C(), { mediaQueries: k } = N(), { isSidebarOpen: a } = A(), h = !1;
24
24
  c(k.lg, (e, o) => {
25
- o && !e && (i.value = !1);
25
+ o && !e && (a.value = !1);
26
26
  });
27
27
  const { hash: y } = O();
28
28
  return c(y, (e, o) => {
29
- e && e !== o && (i.value = !1);
29
+ e && e !== o && (a.value = !1);
30
30
  }), (e, o) => (t(), u(R, {
31
31
  class: B({
32
- "scalar-api-references-standalone-mobile": e.configuration.showSidebar
32
+ "scalar-api-references-standalone-mobile": e.configuration.showSidebar ?? !0
33
33
  }),
34
34
  configuration: e.configuration,
35
35
  parsedSpec: e.parsedSpec,
@@ -37,37 +37,37 @@ const P = { key: 0 }, T = {
37
37
  onUpdateContent: o[2] || (o[2] = (r) => e.$emit("updateContent", r))
38
38
  }, w({
39
39
  header: n(() => [
40
- a.configuration.showSidebar ? (t(), u(U, {
40
+ e.configuration.showSidebar ?? !0 ? (t(), u(U, {
41
41
  key: 0,
42
- open: l(i),
43
- "onUpdate:open": o[0] || (o[0] = (r) => D(i) ? i.value = r : null)
42
+ open: s(a),
43
+ "onUpdate:open": o[0] || (o[0] = (r) => D(a) ? a.value = r : null)
44
44
  }, null, 8, ["open"])) : d("", !0)
45
45
  ]),
46
46
  "sidebar-start": n(({ spec: r }) => {
47
- var s;
47
+ var i;
48
48
  return [
49
49
  e.$slots["document-selector"] ? (t(), p("div", P, [
50
50
  f(e.$slots, "document-selector", {}, void 0, !0)
51
51
  ])) : d("", !0),
52
- a.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
53
- m(l(z), {
54
- searchHotKey: (s = a.configuration) == null ? void 0 : s.searchHotKey,
52
+ l.configuration.hideSearch ? d("", !0) : (t(), p("div", T, [
53
+ m(s(z), {
54
+ searchHotKey: (i = l.configuration) == null ? void 0 : i.searchHotKey,
55
55
  spec: r
56
56
  }, null, 8, ["searchHotKey", "spec"])
57
57
  ]))
58
58
  ];
59
59
  }),
60
60
  "sidebar-end": n(() => [
61
- m(l(K), { class: "darklight-reference" }, {
61
+ m(s(K), { class: "darklight-reference" }, {
62
62
  toggle: n(() => [
63
- a.configuration.hideDarkModeToggle ? (t(), p("span", E)) : (t(), u(l(L), {
63
+ l.configuration.hideDarkModeToggle ? (t(), p("span", E)) : (t(), u(s(L), {
64
64
  key: 0,
65
65
  modelValue: e.isDark,
66
66
  "onUpdate:modelValue": o[1] || (o[1] = (r) => e.$emit("toggleDarkMode"))
67
67
  }, null, 8, ["modelValue"]))
68
68
  ]),
69
69
  default: n(() => [
70
- a.configuration.hideClientButton ? d("", !0) : (t(), u(l(H), {
70
+ l.configuration.hideClientButton ? d("", !0) : (t(), u(s(H), {
71
71
  key: 0,
72
72
  buttonSource: "sidebar",
73
73
  integration: e.configuration._integration,
@@ -80,10 +80,10 @@ const P = { key: 0 }, T = {
80
80
  ]),
81
81
  _: 2
82
82
  }, [
83
- M(S, (r, s) => ({
84
- name: s,
83
+ M(S, (r, i) => ({
84
+ name: i,
85
85
  fn: n((b) => [
86
- f(e.$slots, s, $(V(b || {})), void 0, !0)
86
+ f(e.$slots, i, $(V(b || {})), void 0, !0)
87
87
  ])
88
88
  }))
89
89
  ]), 1032, ["class", "configuration", "parsedSpec", "rawSpec"]));
@@ -0,0 +1,18 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: Example with References
4
+ version: 1.0.0
5
+ paths:
6
+ /internal:
7
+ $ref: '#/components/pathItems/internal'
8
+ /external:
9
+ $ref: 'http://localhost:5173/examples/openapi-3.1/pathItems.yaml#/components/pathItems/external'
10
+ /relative:
11
+ $ref: 'pathItems.yaml#/components/pathItems/relative'
12
+ components:
13
+ pathItems:
14
+ internal:
15
+ get:
16
+ responses:
17
+ '200':
18
+ description: A successful response
@@ -0,0 +1,12 @@
1
+ components:
2
+ pathItems:
3
+ external:
4
+ get:
5
+ responses:
6
+ '200':
7
+ description: A successful response
8
+ relative:
9
+ get:
10
+ responses:
11
+ '200':
12
+ description: A successful response
@@ -0,0 +1,17 @@
1
+ swagger: '2.0'
2
+ info:
3
+ title: Example with References
4
+ version: 1.0.0
5
+ paths:
6
+ /internal:
7
+ $ref: '#/definitions/internal'
8
+ /external:
9
+ $ref: 'http://localhost:5173/examples/swagger-2.0/pathItems.yaml#/definitions/external'
10
+ /relative:
11
+ $ref: 'pathItems.yaml#/definitions/external'
12
+ definitions:
13
+ internal:
14
+ get:
15
+ responses:
16
+ '200':
17
+ description: A successful response
@@ -0,0 +1,6 @@
1
+ definitions:
2
+ external:
3
+ post:
4
+ responses:
5
+ '201':
6
+ description: A successful response