@kubb/adapter-oas 5.0.0-beta.31 → 5.0.0-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { t as __name } from "./chunk--u3MIqq1.js";
2
- import * as _$_kubb_core0 from "@kubb/core";
1
+ import { t as __name } from "./chunk-C0LytTxp.js";
3
2
  import { AdapterFactoryOptions, ast } from "@kubb/core";
4
3
  import { DiscriminatorObject as DiscriminatorObject$2, MediaTypeObject as MediaTypeObject$2, OASDocument, ResponseObject as ResponseObject$2, SchemaObject as SchemaObject$2 } from "oas/types";
5
4
  import { Operation as Operation$1 } from "oas/operation";
@@ -553,7 +552,7 @@ declare const adapterOasName = "oas";
553
552
  * })
554
553
  * ```
555
554
  */
556
- declare const adapterOas: (options?: AdapterOasOptions | undefined) => _$_kubb_core0.Adapter<AdapterOas>;
555
+ declare const adapterOas: (options?: AdapterOasOptions | undefined) => import("@kubb/core").Adapter<AdapterOas>;
557
556
  //#endregion
558
557
  //#region src/factory.d.ts
559
558
  type ValidateDocumentOptions = {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk--u3MIqq1.js";
1
+ import "./chunk-C0LytTxp.js";
2
2
  import path from "node:path";
3
3
  import { ast, createAdapter } from "@kubb/core";
4
4
  import BaseOas from "oas";
@@ -1998,9 +1998,8 @@ function createSchemaParser(ctx, dialect = oasDialect) {
1998
1998
  * Builds a map of child schema names → discriminator patch data by scanning the given
1999
1999
  * top-level AST schema nodes for union schemas that carry a `discriminatorPropertyName`.
2000
2000
  *
2001
- * Extracted from `applyDiscriminatorInheritance` so the streaming path can call it on a
2002
- * small pre-parsed subset of schemas (only the discriminator parents) rather than on all
2003
- * schemas at once.
2001
+ * The streaming path calls this on a small pre-parsed subset of schemas (only the
2002
+ * discriminator parents) rather than on all schemas at once.
2004
2003
  */
2005
2004
  function buildDiscriminatorChildMap(schemas) {
2006
2005
  const childMap = /* @__PURE__ */ new Map();