@kubb/adapter-oas 5.5.6 → 5.6.0
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 +465 -823
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -18
- package/dist/index.js +415 -751
- package/dist/index.js.map +1 -1
- package/package.json +4 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-C0LytTxp.js";
|
|
2
|
-
import { ast } from "@kubb/
|
|
3
|
-
import { AdapterFactoryOptions } from "@kubb/core";
|
|
2
|
+
import { AdapterFactoryOptions, ast } from "@kubb/kit";
|
|
4
3
|
//#region ../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
|
|
5
4
|
// ==================================================================================================
|
|
6
5
|
// JSON Schema Draft 04
|
|
@@ -1056,22 +1055,6 @@ declare namespace OpenAPIV3 {
|
|
|
1056
1055
|
}
|
|
1057
1056
|
}
|
|
1058
1057
|
//#endregion
|
|
1059
|
-
//#region src/operation.d.ts
|
|
1060
|
-
/**
|
|
1061
|
-
* A single OpenAPI operation: its URL path, HTTP method, and the raw operation object.
|
|
1062
|
-
*
|
|
1063
|
-
* `schema` is a live reference into the document. Unlike earlier versions of this adapter, nothing
|
|
1064
|
-
* resolves a `$ref` in place here anymore — every accessor below resolves through `refs` instead.
|
|
1065
|
-
* `pathItem` is the already-resolved path item this operation was read from, so a caller that
|
|
1066
|
-
* also needs path-level data (parameters, summary, description) doesn't re-resolve it.
|
|
1067
|
-
*/
|
|
1068
|
-
type Operation = {
|
|
1069
|
-
path: string;
|
|
1070
|
-
method: string;
|
|
1071
|
-
schema: OperationObject$1;
|
|
1072
|
-
pathItem: PathItemObject$1;
|
|
1073
|
-
};
|
|
1074
|
-
//#endregion
|
|
1075
1058
|
//#region src/types.d.ts
|
|
1076
1059
|
/**
|
|
1077
1060
|
* Media type used to pick a schema from an operation's request or response.
|
|
@@ -1303,5 +1286,16 @@ export declare const adapterOasName = "oas";
|
|
|
1303
1286
|
*/
|
|
1304
1287
|
export declare const adapterOas: (options?: AdapterOasOptions | undefined) => import("@kubb/core").Adapter<AdapterOas>;
|
|
1305
1288
|
//#endregion
|
|
1289
|
+
//#region src/operation.d.ts
|
|
1290
|
+
/**
|
|
1291
|
+
* A single OpenAPI operation: its path, method, raw operation object and resolved path item.
|
|
1292
|
+
*/
|
|
1293
|
+
type Operation = {
|
|
1294
|
+
path: string;
|
|
1295
|
+
method: string;
|
|
1296
|
+
schema: OperationObject$1;
|
|
1297
|
+
pathItem: PathItemObject$1;
|
|
1298
|
+
};
|
|
1299
|
+
//#endregion
|
|
1306
1300
|
export type { AdapterOas, AdapterOasOptions, AdapterOasResolvedOptions, ContentType, DiscriminatorObject$1 as DiscriminatorObject, Document, MediaTypeObject$1 as MediaTypeObject, Operation, ReferenceObject$1 as ReferenceObject, ResponseObject$1 as ResponseObject, SchemaObject$1 as SchemaObject };
|
|
1307
1301
|
//# sourceMappingURL=index.d.ts.map
|