@kubb/adapter-oas 5.0.0-beta.98 → 5.0.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/README.md +10 -8
- package/dist/index.cjs +1217 -934
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1209 -926
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -1060,13 +1060,16 @@ declare namespace OpenAPIV3 {
|
|
|
1060
1060
|
/**
|
|
1061
1061
|
* A single OpenAPI operation: its URL path, HTTP method, and the raw operation object.
|
|
1062
1062
|
*
|
|
1063
|
-
* `schema` is a live reference into the document
|
|
1064
|
-
*
|
|
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.
|
|
1065
1067
|
*/
|
|
1066
1068
|
type Operation = {
|
|
1067
1069
|
path: string;
|
|
1068
1070
|
method: string;
|
|
1069
1071
|
schema: OperationObject$1;
|
|
1072
|
+
pathItem: PathItemObject$1;
|
|
1070
1073
|
};
|
|
1071
1074
|
//#endregion
|
|
1072
1075
|
//#region src/types.d.ts
|
|
@@ -1145,6 +1148,10 @@ type Document = OpenAPIV3_1.Document & Record<string, unknown>;
|
|
|
1145
1148
|
* Single operation object (the `get`/`post`/… entry on a path item) plus any vendor extensions.
|
|
1146
1149
|
*/
|
|
1147
1150
|
type OperationObject$1 = OpenAPIV3_1.OperationObject & Record<string, unknown>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Path item object holding the operations and shared parameters for a single URL path.
|
|
1153
|
+
*/
|
|
1154
|
+
type PathItemObject$1 = OpenAPIV3_1.PathItemObject;
|
|
1148
1155
|
/**
|
|
1149
1156
|
* Discriminator object for `oneOf`/`anyOf` schemas in OpenAPI.
|
|
1150
1157
|
*/
|