@kubb/adapter-oas 5.0.0-alpha.6 → 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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/adapter.ts +3 -2
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 {
|
|
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 =
|
|
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 {
|
|
@@ -1879,6 +1879,7 @@ const adapterOas = defineAdapter((options) => {
|
|
|
1879
1879
|
}),
|
|
1880
1880
|
meta: {
|
|
1881
1881
|
title: oas.api.info?.title,
|
|
1882
|
+
description: oas.api.info?.description,
|
|
1882
1883
|
version: oas.api.info?.version,
|
|
1883
1884
|
baseURL
|
|
1884
1885
|
}
|