@kubb/adapter-oas 5.0.0-alpha.7 → 5.0.0-alpha.8

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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk--u3MIqq1.js";
2
2
  import path from "node:path";
3
3
  import { collect, createOperation, createParameter, createProperty, createResponse, createRoot, createSchema, narrowSchema, schemaTypes, transform } from "@kubb/ast";
4
- import { defineAdapter } from "@kubb/core";
4
+ import { createAdapter } from "@kubb/core";
5
5
  import { bundle, loadConfig } from "@redocly/openapi-core";
6
6
  import yaml from "@stoplight/yaml";
7
7
  import { isRef } from "oas/types";
@@ -1826,7 +1826,7 @@ const adapterOasName = "oas";
1826
1826
  * })
1827
1827
  * ```
1828
1828
  */
1829
- const adapterOas = defineAdapter((options) => {
1829
+ const adapterOas = createAdapter((options) => {
1830
1830
  const { validate = true, oasClass, contentType, serverIndex, serverVariables, discriminator = "strict", collisionDetection = false, dateType = "string", integerType = "number", unknownType = "any", emptySchemaType = unknownType } = options;
1831
1831
  const nameMapping = /* @__PURE__ */ new Map();
1832
1832
  return {