@scalar/api-reference 1.44.11 → 1.44.13

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 (33) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/browser/standalone.js +3353 -3321
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Models/components/ClassicLayout.vue.js +1 -1
  5. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +2 -2
  6. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -3
  7. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Schema/SchemaComposition.vue.js +3 -3
  9. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  10. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +2 -2
  11. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +4 -4
  13. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  15. package/dist/components/Content/Schema/SchemaProperty.vue2.js +3 -3
  16. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  17. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +3 -3
  18. package/dist/components/Content/Schema/helpers/get-compositions-to-render.js +3 -3
  19. package/dist/components/Content/Schema/helpers/get-enum-values.js +2 -2
  20. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +1 -2
  21. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  22. package/dist/components/Content/Schema/helpers/get-schema-type.js +3 -9
  23. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +15 -14
  25. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts +1 -5
  26. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -1
  27. package/dist/components/Content/Schema/helpers/optimize-value-for-display.js +4 -6
  28. package/dist/components/Content/Schema/helpers/schema-name.d.ts +2 -2
  29. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  30. package/dist/components/Content/Schema/helpers/schema-name.js +4 -4
  31. package/dist/components/Content/Schema/helpers/sort-property-names.js +2 -2
  32. package/dist/style.css +76 -76
  33. package/package.json +12 -12
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-161968a4"]]);
4
+ const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e4ca3c0f"]]);
5
5
  export {
6
6
  ClassicLayout as default
7
7
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createVNode } from "vue";
2
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { resolve } from "@scalar/workspace-store/resolve";
3
3
  import SectionAccordion from "../../../Section/SectionAccordion.vue.js";
4
4
  import SchemaProperty from "../../Schema/SchemaProperty.vue.js";
5
5
  import _sfc_main$1 from "../../../Anchor/Anchor.vue.js";
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  name: property,
58
58
  options: __props.options,
59
59
  required: __props.schema.required?.includes(property),
60
- schema: unref(getResolvedRef)(value)
60
+ schema: unref(resolve).schema(value)
61
61
  }, null, 8, ["eventBus", "name", "options", "required", "schema"]);
62
62
  }), 128))
63
63
  ])) : (openBlock(), createElementBlock("div", _hoisted_2, [
@@ -1,6 +1,5 @@
1
1
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
- import type { DiscriminatorObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
- import type { SchemaWithOriginalRef } from '../../../components/Content/Schema/helpers/optimize-value-for-display.js';
2
+ import type { DiscriminatorObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
3
  import type { SchemaOptions } from '../../../components/Content/Schema/types';
5
4
  import { type CompositionKeyword } from './helpers/schema-composition.js';
6
5
  type __VLS_Props = {
@@ -11,7 +10,7 @@ type __VLS_Props = {
11
10
  /** Optional name for the schema */
12
11
  name?: string;
13
12
  /** The schema value containing the composition */
14
- schema: SchemaWithOriginalRef;
13
+ schema: SchemaObject;
15
14
  /** Nesting level for proper indentation */
16
15
  level: number;
17
16
  /** Whether to use compact layout */
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AA0JA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAGvG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AAC3G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,qBAAqB,CAAA;IAC7B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;aATU,OAAO;iBAEH,OAAO;;AAgOzB,wBAOG"}
1
+ {"version":3,"file":"SchemaComposition.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaComposition.vue"],"names":[],"mappings":"AA4JA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAGrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,KAAK,WAAW,GAAG;IACf,oDAAoD;IACpD,WAAW,EAAE,kBAAkB,CAAA;IAC/B,4DAA4D;IAC5D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kDAAkD;IAClD,MAAM,EAAE,YAAY,CAAA;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,iCAAiC;IACjC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,yEAAyE;IACzE,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;aATU,OAAO;iBAEH,OAAO;;AAgOzB,wBAOG"}
@@ -2,7 +2,7 @@ import { defineComponent, computed, ref, createElementBlock, openBlock, createBl
2
2
  import { ScalarListbox } from "@scalar/components";
3
3
  import { isDefined } from "@scalar/helpers/array/is-defined";
4
4
  import { ScalarIconCaretDown } from "@scalar/icons";
5
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
5
+ import { resolve } from "@scalar/workspace-store/resolve";
6
6
  import { getSchemaType } from "./helpers/get-schema-type.js";
7
7
  import { mergeAllOfSchemas } from "./helpers/merge-all-of-schemas.js";
8
8
  import Schema from "./Schema.vue.js";
@@ -34,12 +34,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
34
  setup(__props) {
35
35
  const props = __props;
36
36
  const composition = computed(
37
- () => [props.schema[props.composition]].flat().map((schema) => ({ value: getResolvedRef(schema), original: schema })).filter((it) => isDefined(it.value))
37
+ () => [props.schema[props.composition]].flat().map((schema) => ({ value: resolve.schema(schema), original: schema })).filter((it) => isDefined(it.value))
38
38
  );
39
39
  const listboxOptions = computed(
40
40
  () => composition.value.map((schema, index) => ({
41
41
  id: String(index),
42
- label: getSchemaType(schema.original) || "Schema"
42
+ label: getSchemaType(resolve.schema(schema.original)) || "Schema"
43
43
  }))
44
44
  );
45
45
  const selectedOption = ref(
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaEnumValues.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaEnumValues = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d4946030"]]);
4
+ const SchemaEnumValues = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5367294"]]);
5
5
  export {
6
6
  SchemaEnumValues as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, ref, createElementBlock, createCommentVNode, openBlock, createElementVNode, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode, normalizeClass, toDisplayString } from "vue";
2
2
  import { ScalarButton } from "@scalar/components";
3
3
  import { ScalarIconPlus } from "@scalar/icons";
4
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
4
+ import { resolve } from "@scalar/workspace-store/resolve";
5
5
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
6
6
  import SchemaEnumPropertyItem from "./SchemaEnumPropertyItem.vue.js";
7
7
  const _hoisted_1 = {
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  if (!__props.value) {
24
24
  return [];
25
25
  }
26
- return __props.value.enum || isArraySchema(__props.value) && getResolvedRef(__props.value.items)?.enum || [];
26
+ return __props.value.enum || isArraySchema(__props.value) && resolve.schema(__props.value.items)?.enum || [];
27
27
  });
28
28
  const shouldUseLongListDisplay = computed(
29
29
  () => enumValues.value.length > ENUM_DISPLAY_THRESHOLD
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AA+IA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;AAiMF,wBAMG"}
1
+ {"version":3,"file":"SchemaObjectProperties.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaObjectProperties.vue"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAItE,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,YAAY,CAAA;IACpB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;AAoMF,wBAMG"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, Fragment, createCommentVNode, createBlock, unref, renderList } from "vue";
2
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { resolve } from "@scalar/workspace-store/resolve";
3
3
  import { isTypeObject } from "./helpers/is-type-object.js";
4
4
  import { sortPropertyNames } from "./helpers/sort-property-names.js";
5
5
  import SchemaProperty from "./SchemaProperty.vue.js";
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  () => sortPropertyNames(__props.schema, __props.discriminator, __props.options)
22
22
  );
23
23
  const getAdditionalPropertiesName = (_additionalProperties) => {
24
- const additionalProperties = getResolvedRef(_additionalProperties);
24
+ const additionalProperties = typeof _additionalProperties === "boolean" ? _additionalProperties : resolve.schema(_additionalProperties);
25
25
  if (typeof additionalProperties === "object" && typeof additionalProperties["x-additionalPropertiesName"] === "string" && additionalProperties["x-additionalPropertiesName"].trim().length > 0) {
26
26
  return `${additionalProperties["x-additionalPropertiesName"].trim()}`;
27
27
  }
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
52
  name: property,
53
53
  options: __props.options,
54
54
  required: __props.schema.required?.includes(property),
55
- schema: unref(getResolvedRef)(__props.schema.properties[property])
55
+ schema: unref(resolve).schema(__props.schema.properties[property])
56
56
  }, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "required", "schema"]);
57
57
  }), 128)) : createCommentVNode("", true),
58
58
  unref(isTypeObject)(__props.schema) && __props.schema.patternProperties ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(Object.entries(__props.schema.patternProperties), ([key, property]) => {
@@ -67,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
67
  level: __props.level,
68
68
  name: key,
69
69
  options: __props.options,
70
- schema: unref(getResolvedRef)(property)
70
+ schema: unref(resolve).schema(property)
71
71
  }, null, 8, ["breadcrumb", "compact", "discriminator", "eventBus", "hideHeading", "hideModelNames", "level", "name", "options", "schema"]);
72
72
  }), 128)) : createCommentVNode("", true),
73
73
  unref(isTypeObject)(__props.schema) && __props.schema.additionalProperties ? (openBlock(), createBlock(SchemaProperty, {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAyaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;WAZQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AAsc5B,wBAOG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAyaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAErE,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAI9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AAetE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,sBAAsB,GAAG,mBAAmB,CAAA;IACtD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE,aAAa,CAAA;CACvB,CAAC;;WAZQ,MAAM;cAEH,OAAO;aACR,OAAO;oBAGA,OAAO;;AAuc5B,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8da63347"]]);
4
+ const SchemaProperty = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dfddcb79"]]);
5
5
  export {
6
6
  SchemaProperty as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, withCtx, createCommentVNode, createElementBlock, createVNode, createSlots, unref, createTextVNode, toDisplayString, Fragment, renderList } from "vue";
2
2
  import { ScalarWrappingText, ScalarMarkdown } from "@scalar/components";
3
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { resolve } from "@scalar/workspace-store/resolve";
4
4
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
5
5
  import { isTypeObject } from "./helpers/is-type-object.js";
6
6
  import { getCompositionsToRender } from "./helpers/get-compositions-to-render.js";
@@ -98,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
98
98
  if (!value || !isArraySchema(value) || typeof value.items !== "object") {
99
99
  return void 0;
100
100
  }
101
- return getResolvedRef(value.items);
101
+ return resolve.schema(value.items);
102
102
  });
103
103
  const isDiscriminatorProperty = computed(
104
104
  () => Boolean(props.name && props.discriminator?.propertyName === props.name)
@@ -189,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
189
189
  name: __props.name,
190
190
  noncollapsible: __props.noncollapsible,
191
191
  options: __props.options,
192
- schema: resolvedArrayItems.value
192
+ schema: unref(resolve).schema(resolvedArrayItems.value)
193
193
  }, null, 8, ["compact", "eventBus", "level", "name", "noncollapsible", "options", "schema"])
194
194
  ])) : createCommentVNode("", true),
195
195
  (openBlock(true), createElementBlock(Fragment, null, renderList(compositionsToRender.value, (compositionData) => {
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5d03e993"]]);
4
+ const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e94a52f3"]]);
5
5
  export {
6
6
  SchemaPropertyHeading as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toRef, computed, createElementBlock, openBlock, createCommentVNode, createBlock, normalizeClass, renderSlot, Fragment, withCtx, createVNode, createTextVNode, toDisplayString, renderList, createSlots, unref } from "vue";
2
2
  import { isDefined } from "@scalar/helpers/array/is-defined";
3
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { resolve } from "@scalar/workspace-store/resolve";
4
4
  import { isArraySchema, isStringSchema, isNumberSchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
5
5
  import ScreenReader from "../../ScreenReader.vue.js";
6
6
  import { getSchemaType } from "./helpers/get-schema-type.js";
@@ -64,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  return schema.enum[0];
65
65
  }
66
66
  if (isArraySchema(schema) && schema.items) {
67
- const items = getResolvedRef(schema.items);
67
+ const items = resolve.schema(schema.items);
68
68
  if (isDefined(items.const)) {
69
69
  return items.const;
70
70
  }
@@ -318,7 +318,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
318
318
  props.required ? (openBlock(), createElementBlock("div", _hoisted_8, " required ")) : createCommentVNode("", true),
319
319
  props.withExamples ? (openBlock(), createBlock(SchemaPropertyExamples, {
320
320
  key: 10,
321
- example: props.value?.example || props.value && unref(isArraySchema)(props.value) && unref(getResolvedRef)(props.value?.items)?.example,
321
+ example: props.value?.example || props.value && unref(isArraySchema)(props.value) && unref(resolve).schema(props.value?.items)?.example,
322
322
  examples: props.value?.examples
323
323
  }, null, 8, ["example", "examples"])) : createCommentVNode("", true)
324
324
  ]);
@@ -1,5 +1,5 @@
1
1
  import { isDefined } from "@scalar/helpers/array/is-defined";
2
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { resolve } from "@scalar/workspace-store/resolve";
3
3
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
4
4
  import { compositions } from "./schema-composition.js";
5
5
  import { shouldRenderArrayItemComposition } from "./should-render-array-item-composition.js";
@@ -11,7 +11,7 @@ const getCompositionsToRender = (value) => {
11
11
  if (shouldRenderArrayItemComposition(value, composition) && isArraySchema(value) && value.items) {
12
12
  return {
13
13
  composition,
14
- value: getResolvedRef(value.items)
14
+ value: resolve.schema(value.items)
15
15
  };
16
16
  }
17
17
  if (value[composition]) {
@@ -19,7 +19,7 @@ const getCompositionsToRender = (value) => {
19
19
  if (!hasArrayItemComposition) {
20
20
  return {
21
21
  composition,
22
- value: getResolvedRef(value)
22
+ value: resolve.schema(value)
23
23
  };
24
24
  }
25
25
  }
@@ -1,4 +1,4 @@
1
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { resolve } from "@scalar/workspace-store/resolve";
2
2
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
3
  const getEnumValues = (value) => {
4
4
  if (!value) {
@@ -8,7 +8,7 @@ const getEnumValues = (value) => {
8
8
  return value.enum;
9
9
  }
10
10
  if (isArraySchema(value) && typeof value.items === "object") {
11
- const resolvedItems = getResolvedRef(value.items);
11
+ const resolvedItems = resolve.schema(value.items);
12
12
  if (resolvedItems && "enum" in resolvedItems && resolvedItems.enum) {
13
13
  return resolvedItems.enum;
14
14
  }
@@ -1,5 +1,4 @@
1
1
  import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
- import type { SchemaWithOriginalRef } from '../../../../components/Content/Schema/helpers/optimize-value-for-display.js';
3
2
  /**
4
3
  * Computes the human-readable type for a schema.
5
4
  *
@@ -12,5 +11,5 @@ import type { SchemaWithOriginalRef } from '../../../../components/Content/Schem
12
11
  * 6. $ref names
13
12
  * 7. raw type
14
13
  */
15
- export declare const getSchemaType: (valueOrRef: SchemaWithOriginalRef | ReferenceType<SchemaObject>) => string;
14
+ export declare const getSchemaType: (valueOrRef: SchemaObject | ReferenceType<SchemaObject>) => string;
16
15
  //# sourceMappingURL=get-schema-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-schema-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAI/G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gEAAgE,CAAA;AAiC3G;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,YAAY,qBAAqB,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAkE/F,CAAA"}
1
+ {"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-schema-type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAoC/G;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,YAAY,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MA0DtF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { resolve } from "@scalar/workspace-store/resolve";
2
2
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
3
  import { getRefName } from "./get-ref-name.js";
4
4
  const formatArrayType = (itemType) => {
@@ -12,7 +12,7 @@ const processArrayType = (value, isUnionType = false) => {
12
12
  if (!value.items) {
13
13
  return isUnionType ? "array" : value.title || value.xml?.name || "array";
14
14
  }
15
- const itemType = getSchemaType(value.items);
15
+ const itemType = getSchemaType(resolve.schema(value.items));
16
16
  const baseType = formatArrayType(itemType);
17
17
  if (isUnionType) {
18
18
  return baseType;
@@ -23,7 +23,7 @@ const getSchemaType = (valueOrRef) => {
23
23
  if (!valueOrRef) {
24
24
  return "";
25
25
  }
26
- const value = getResolvedRef(valueOrRef);
26
+ const value = resolve.schema(valueOrRef);
27
27
  if (value.const !== void 0) {
28
28
  return "const";
29
29
  }
@@ -47,12 +47,6 @@ const getSchemaType = (valueOrRef) => {
47
47
  if ("type" in value && value.type && value.contentEncoding) {
48
48
  return `${value.type} • ${value.contentEncoding}`;
49
49
  }
50
- if ("originalRef" in valueOrRef && valueOrRef.originalRef) {
51
- const refName = getRefName(valueOrRef.originalRef);
52
- if (refName) {
53
- return refName;
54
- }
55
- }
56
50
  if ("$ref" in valueOrRef) {
57
51
  const refName = getRefName(valueOrRef.$ref);
58
52
  if (refName) {
@@ -1 +1 @@
1
- {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,YAAY,GAAG,SAAS,EAAE,aAAa,YAAY,KAAG,YA+ChG,CAAA"}
1
+ {"version":3,"file":"merge-all-of-schemas.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/merge-all-of-schemas.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,YAAY,GAAG,SAAS,EAAE,aAAa,YAAY,KAAG,YA+ChG,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { objectKeys } from "@scalar/helpers/object/object-keys";
2
2
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
+ import { resolve } from "@scalar/workspace-store/resolve";
3
4
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
4
5
  const mergeAllOfSchemas = (schemas, rootSchema) => {
5
6
  if (!schemas?.allOf?.length || !Array.isArray(schemas.allOf)) {
@@ -11,7 +12,7 @@ const mergeAllOfSchemas = (schemas, rootSchema) => {
11
12
  if (!_schema || typeof _schema !== "object") {
12
13
  continue;
13
14
  }
14
- const schema = getResolvedRef(_schema);
15
+ const schema = resolve.schema(_schema);
15
16
  if (schema.allOf) {
16
17
  const nestedMerged = mergeAllOfSchemas(schema);
17
18
  mergeSchemaIntoResult(result, nestedMerged);
@@ -58,7 +59,7 @@ const mergeSchemaIntoResult = (result, schema, override = false) => {
58
59
  mergePropertiesIntoResult(result.properties, value);
59
60
  }
60
61
  } else if (key === "items") {
61
- const items = getResolvedRef(value);
62
+ const items = resolve.schema(value);
62
63
  if (items) {
63
64
  if (isArraySchema(schema)) {
64
65
  if (!result.items) {
@@ -92,8 +93,8 @@ const mergeSchemaIntoResult = (result, schema, override = false) => {
92
93
  result.properties = {};
93
94
  }
94
95
  for (const _option of value) {
95
- const option = getResolvedRef(_option);
96
- if (option.properties && "properties" in result) {
96
+ const option = resolve.schema(_option);
97
+ if (option && "properties" in option && "properties" in result) {
97
98
  mergePropertiesIntoResult(result.properties, option.properties);
98
99
  }
99
100
  }
@@ -113,7 +114,7 @@ const mergePropertiesIntoResult = (result, properties) => {
113
114
  return;
114
115
  }
115
116
  for (const key of propertyKeys) {
116
- const schema = getResolvedRef(properties[key]);
117
+ const schema = resolve.schema(properties[key]);
117
118
  if (!schema) {
118
119
  delete result[key];
119
120
  continue;
@@ -125,25 +126,25 @@ const mergePropertiesIntoResult = (result, properties) => {
125
126
  if (!result[key]) {
126
127
  if (schema.allOf) {
127
128
  result[key] = mergeAllOfSchemas(schema);
128
- } else if (isArraySchema(schema) && getResolvedRef(schema.items)?.allOf) {
129
+ } else if (isArraySchema(schema) && resolve.schema(schema.items)?.allOf) {
129
130
  result[key] = {
130
131
  ...schema,
131
- items: mergeAllOfSchemas(getResolvedRef(schema.items))
132
+ items: mergeAllOfSchemas(resolve.schema(schema.items))
132
133
  };
133
134
  } else if (properties[key]) {
134
135
  result[key] = properties[key];
135
136
  }
136
137
  continue;
137
138
  }
138
- const existing = getResolvedRef(result[key]);
139
+ const existing = resolve.schema(result[key]);
139
140
  if (schema.allOf) {
140
141
  result[key] = mergeAllOfSchemas({ allOf: [existing, ...schema.allOf] });
141
142
  } else if (isArraySchema(schema) && isArraySchema(existing) && schema.items) {
142
- const existingItems = getResolvedRef(existing.items);
143
+ const existingItems = resolve.schema(existing.items);
143
144
  result[key] = {
144
145
  ...existing,
145
146
  type: "array",
146
- items: existingItems ? mergeItems(existingItems, getResolvedRef(schema.items)) : getResolvedRef(schema.items)
147
+ items: existingItems ? mergeItems(existingItems, resolve.schema(schema.items)) : resolve.schema(schema.items)
147
148
  };
148
149
  } else {
149
150
  if ("properties" in existing && "properties" in schema) {
@@ -162,14 +163,14 @@ const mergeItemsIntoResult = (result, items) => {
162
163
  const allOfSchemas = [];
163
164
  if (result.allOf) {
164
165
  for (const schema of result.allOf) {
165
- allOfSchemas.push(getResolvedRef(schema));
166
+ allOfSchemas.push(resolve.schema(schema));
166
167
  }
167
168
  } else {
168
169
  allOfSchemas.push(result);
169
170
  }
170
171
  if (items.allOf) {
171
172
  for (const schema of items.allOf) {
172
- allOfSchemas.push(getResolvedRef(schema));
173
+ allOfSchemas.push(resolve.schema(schema));
173
174
  }
174
175
  } else {
175
176
  allOfSchemas.push(items);
@@ -188,14 +189,14 @@ const mergeItems = (existing, incoming) => {
188
189
  const allOfSchemas = [];
189
190
  if (existing.allOf) {
190
191
  for (const schema of existing.allOf) {
191
- allOfSchemas.push(getResolvedRef(schema));
192
+ allOfSchemas.push(resolve.schema(schema));
192
193
  }
193
194
  } else {
194
195
  allOfSchemas.push(existing);
195
196
  }
196
197
  if (incoming.allOf) {
197
198
  for (const schema of incoming.allOf) {
198
- allOfSchemas.push(getResolvedRef(schema));
199
+ allOfSchemas.push(resolve.schema(schema));
199
200
  }
200
201
  } else {
201
202
  allOfSchemas.push(incoming);
@@ -1,12 +1,8 @@
1
1
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
- /** We need to keep the original ref after we resolve for display purposes */
3
- export type SchemaWithOriginalRef = SchemaObject & {
4
- originalRef?: string;
5
- };
6
2
  /**
7
3
  * Optimize the value by removing nulls from compositions and merging root properties.
8
4
  *
9
5
  * TODO: figure out what this does
10
6
  */
11
- export declare function optimizeValueForDisplay(value: SchemaObject | undefined): SchemaWithOriginalRef | undefined;
7
+ export declare function optimizeValueForDisplay(value: SchemaObject | undefined): SchemaObject | undefined;
12
8
  //# sourceMappingURL=optimize-value-for-display.d.ts.map
@@ -1 +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":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG,6EAA6E;AAC7E,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3E;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,qBAAqB,GAAG,SAAS,CA0F1G"}
1
+ {"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAIhG;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAsFjG"}
@@ -1,4 +1,4 @@
1
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { resolve } from "@scalar/workspace-store/resolve";
2
2
  import { compositions } from "./schema-composition.js";
3
3
  function optimizeValueForDisplay(value) {
4
4
  if (!value || typeof value !== "object") {
@@ -16,11 +16,9 @@ function optimizeValueForDisplay(value) {
16
16
  const hasRootProperties = Object.keys(rootProperties).length > 0;
17
17
  const { filteredSchemas, hasNullSchema } = schemas.reduce(
18
18
  (acc, _schema) => {
19
- const schema = getResolvedRef(_schema);
19
+ const schema = resolve.schema(_schema);
20
20
  if ("type" in schema && schema.type === "null") {
21
21
  acc.hasNullSchema = true;
22
- } else if ("$ref" in _schema && _schema.$ref) {
23
- acc.filteredSchemas.push({ ...schema, originalRef: _schema.$ref });
24
22
  } else {
25
23
  acc.filteredSchemas.push(schema);
26
24
  }
@@ -39,10 +37,10 @@ function optimizeValueForDisplay(value) {
39
37
  const shouldMergeRootProperties = (composition === "oneOf" || composition === "anyOf") && (hasRootProperties || filteredSchemas.some((schema) => schema.allOf));
40
38
  if (shouldMergeRootProperties) {
41
39
  const mergedSchemas = filteredSchemas.map((_schema) => {
42
- const schema = getResolvedRef(_schema);
40
+ const schema = resolve.schema(_schema);
43
41
  if (schema.allOf?.length === 1) {
44
42
  const { allOf, ...otherProps } = schema;
45
- return { ...rootProperties, ...otherProps, ...getResolvedRef(allOf[0]) };
43
+ return { ...rootProperties, ...otherProps, ...resolve.schema(allOf[0]) };
46
44
  }
47
45
  return { ...rootProperties, ...schema };
48
46
  });
@@ -1,10 +1,10 @@
1
- import type { ReferenceType, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
1
+ import type { SchemaObject, SchemaReferenceType } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
2
  /**
3
3
  * Extract schema name from various schema formats
4
4
  *
5
5
  * Handles $ref, title, name, type, and schema dictionary lookup
6
6
  */
7
- export declare const getModelNameFromSchema: (schemaOrRef: SchemaObject | ReferenceType<SchemaObject>) => string | null;
7
+ export declare const getModelNameFromSchema: (schemaOrRef: SchemaObject | SchemaReferenceType<SchemaObject>) => string | null;
8
8
  /**
9
9
  * Get the model name for a schema property
10
10
  * e.g. User | Admin | array of User | array of Admin
@@ -1 +1 @@
1
- {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAK/G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,aAAa,YAAY,GAAG,aAAa,CAAC,YAAY,CAAC,KAAG,MAAM,GAAG,IAyBzG,CAAA;AAQD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
1
+ {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,8DAA8D,CAAA;AAKrH;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,aAAa,YAAY,GAAG,mBAAmB,CAAC,YAAY,CAAC,KAC5D,MAAM,GAAG,IAyBX,CAAA;AAQD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,YAAY,EAAE,wBAAsB,KAAG,MAAM,GAAG,IA+CnF,CAAA"}
@@ -1,4 +1,4 @@
1
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { resolve } from "@scalar/workspace-store/resolve";
2
2
  import { isArraySchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
3
3
  import { getRefName } from "./get-ref-name.js";
4
4
  const getModelNameFromSchema = (schemaOrRef) => {
@@ -11,7 +11,7 @@ const getModelNameFromSchema = (schemaOrRef) => {
11
11
  return refName;
12
12
  }
13
13
  }
14
- const schema = getResolvedRef(schemaOrRef);
14
+ const schema = resolve.schema(schemaOrRef);
15
15
  if (schema.title) {
16
16
  return schema.title;
17
17
  }
@@ -31,12 +31,12 @@ const getModelName = (value, hideModelNames = false) => {
31
31
  return valueType === "array" ? `array ${modelName}[]` : modelName;
32
32
  }
33
33
  if (isArraySchema(value) && value.items) {
34
- const items = getResolvedRef(value.items);
34
+ const items = resolve.schema(value.items);
35
35
  const itemName = items.title;
36
36
  if (itemName) {
37
37
  return formatTypeWithModel(valueType, itemName);
38
38
  }
39
- const itemModelName = getModelNameFromSchema(value.items);
39
+ const itemModelName = getModelNameFromSchema(items);
40
40
  if (itemModelName && "type" in items && itemModelName !== items.type) {
41
41
  return formatTypeWithModel(valueType, itemModelName);
42
42
  }
@@ -1,4 +1,4 @@
1
- import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
1
+ import { resolve } from "@scalar/workspace-store/resolve";
2
2
  import { isTypeObject } from "./is-type-object.js";
3
3
  const reduceNamesToObject = (names, properties) => names.reduce((acc, name) => {
4
4
  const prop = properties?.[name];
@@ -42,7 +42,7 @@ const sortPropertyNames = (schema, discriminator, {
42
42
  }
43
43
  return 0;
44
44
  }).filter((property) => {
45
- const resolved = schema.properties && getResolvedRef(schema.properties[property]);
45
+ const resolved = schema.properties && resolve.schema(schema.properties[property]);
46
46
  if (hideReadOnly && resolved?.readOnly === true) {
47
47
  return false;
48
48
  }