@kubb/plugin-oas 3.17.1 → 3.18.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/{OperationGenerator-OtLcGk2y.d.ts → OperationGenerator-B3oFps4I.d.ts} +22 -1
- package/dist/{OperationGenerator-CgbXErhW.d.cts → OperationGenerator-aKcfGbOt.d.cts} +22 -1
- package/dist/{Schema-BTVrGi5O.d.cts → Schema-D9qn9d7b.d.cts} +2 -2
- package/dist/{Schema-CY2jm9ML.d.ts → Schema-DK1BsENl.d.ts} +2 -2
- package/dist/components.d.cts +2 -2
- package/dist/components.d.ts +2 -2
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/hooks.d.cts +2 -2
- package/dist/hooks.d.ts +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +5 -5
|
@@ -185,6 +185,27 @@ type Config<TInput = Input> = {
|
|
|
185
185
|
* @default true
|
|
186
186
|
*/
|
|
187
187
|
write?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Specifies the formatting tool to be used.
|
|
190
|
+
* @default prettier
|
|
191
|
+
*
|
|
192
|
+
* Possible values:
|
|
193
|
+
* - 'prettier': Uses Prettier for code formatting.
|
|
194
|
+
* - 'biome': Uses Biome for code formatting.
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
format?: 'prettier' | 'biome' | false;
|
|
198
|
+
/**
|
|
199
|
+
* Specifies the linter that should be used to analyze the code.
|
|
200
|
+
* The accepted values indicate different linting tools.
|
|
201
|
+
*
|
|
202
|
+
* Possible values:
|
|
203
|
+
* - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
|
|
204
|
+
* - 'biome': Represents the Biome linter, a modern tool for code scanning.
|
|
205
|
+
* - 'oxlint': Represents the Oxlint tool for linting purposes.
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
lint?: 'eslint' | 'biome' | 'oxlint' | false;
|
|
188
209
|
/**
|
|
189
210
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
190
211
|
* @default { '.ts': '.ts'}
|
|
@@ -897,4 +918,4 @@ declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = P
|
|
|
897
918
|
}
|
|
898
919
|
//#endregion
|
|
899
920
|
export { API, Config, Exclude$1 as Exclude, FileMetaBase, Generator, GeneratorOptions, GetSchemaGeneratorOptions, type HttpMethod, Include, type Key, KubbNode, Oas, type OasTypes, type OpenAPIV3$1 as OpenAPIV3, type OpenAPIV3_1, type Operation$1 as Operation, OperationGenerator, OperationMethodResult, OperationSchema, OperationSchemas, Options$1 as Options, Output, Override, type Params, Plugin, PluginOas, ReactGeneratorOptions, Ref, Refs, ResolveNameParams, ResolvePathOptions, Resolver, SchemaGenerator, SchemaGeneratorBuildOptions, SchemaGeneratorOptions, SchemaMethodResult, SchemaObject$1 as SchemaObject, UserPluginWithLifeCycle, contentType, createGenerator, createReactGenerator };
|
|
900
|
-
//# sourceMappingURL=OperationGenerator-
|
|
921
|
+
//# sourceMappingURL=OperationGenerator-B3oFps4I.d.ts.map
|
|
@@ -185,6 +185,27 @@ type Config<TInput = Input> = {
|
|
|
185
185
|
* @default true
|
|
186
186
|
*/
|
|
187
187
|
write?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Specifies the formatting tool to be used.
|
|
190
|
+
* @default prettier
|
|
191
|
+
*
|
|
192
|
+
* Possible values:
|
|
193
|
+
* - 'prettier': Uses Prettier for code formatting.
|
|
194
|
+
* - 'biome': Uses Biome for code formatting.
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
format?: 'prettier' | 'biome' | false;
|
|
198
|
+
/**
|
|
199
|
+
* Specifies the linter that should be used to analyze the code.
|
|
200
|
+
* The accepted values indicate different linting tools.
|
|
201
|
+
*
|
|
202
|
+
* Possible values:
|
|
203
|
+
* - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
|
|
204
|
+
* - 'biome': Represents the Biome linter, a modern tool for code scanning.
|
|
205
|
+
* - 'oxlint': Represents the Oxlint tool for linting purposes.
|
|
206
|
+
*
|
|
207
|
+
*/
|
|
208
|
+
lint?: 'eslint' | 'biome' | 'oxlint' | false;
|
|
188
209
|
/**
|
|
189
210
|
* Override the extension to the generated imports and exports, by default each plugin will add an extension
|
|
190
211
|
* @default { '.ts': '.ts'}
|
|
@@ -897,4 +918,4 @@ declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = P
|
|
|
897
918
|
}
|
|
898
919
|
//#endregion
|
|
899
920
|
export { API, Config, Exclude$1 as Exclude, FileMetaBase, Generator, GeneratorOptions, GetSchemaGeneratorOptions, type HttpMethod, Include, type Key, KubbNode, Oas, type OasTypes, type OpenAPIV3$1 as OpenAPIV3, type OpenAPIV3_1, type Operation$1 as Operation, OperationGenerator, OperationMethodResult, OperationSchema, OperationSchemas, Options$1 as Options, Output, Override, type Params, Plugin, PluginOas, ReactGeneratorOptions, Ref, Refs, ResolveNameParams, ResolvePathOptions, Resolver, SchemaGenerator, SchemaGeneratorBuildOptions, SchemaGeneratorOptions, SchemaMethodResult, SchemaObject$1 as SchemaObject, UserPluginWithLifeCycle, contentType, createGenerator, createReactGenerator };
|
|
900
|
-
//# sourceMappingURL=OperationGenerator-
|
|
921
|
+
//# sourceMappingURL=OperationGenerator-aKcfGbOt.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Key, KubbNode, SchemaObject } from "./OperationGenerator-
|
|
1
|
+
import { Key, KubbNode, SchemaObject } from "./OperationGenerator-aKcfGbOt.cjs";
|
|
2
2
|
import { Schema } from "./SchemaMapper-BiagBQN4.cjs";
|
|
3
3
|
import * as react1 from "react";
|
|
4
4
|
|
|
@@ -35,4 +35,4 @@ declare namespace Schema$1 {
|
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Schema$1 as Schema, SchemaContextProps };
|
|
38
|
-
//# sourceMappingURL=Schema-
|
|
38
|
+
//# sourceMappingURL=Schema-D9qn9d7b.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Key, KubbNode, SchemaObject } from "./OperationGenerator-
|
|
1
|
+
import { Key, KubbNode, SchemaObject } from "./OperationGenerator-B3oFps4I.js";
|
|
2
2
|
import { Schema } from "./SchemaMapper-C2J2d3o4.js";
|
|
3
3
|
import * as react1 from "react";
|
|
4
4
|
|
|
@@ -35,4 +35,4 @@ declare namespace Schema$1 {
|
|
|
35
35
|
}
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Schema$1 as Schema, SchemaContextProps };
|
|
38
|
-
//# sourceMappingURL=Schema-
|
|
38
|
+
//# sourceMappingURL=Schema-DK1BsENl.d.ts.map
|
package/dist/components.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KubbNode, Oas as Oas$1, Operation as Operation$1, OperationGenerator } from "./OperationGenerator-
|
|
1
|
+
import { KubbNode, Oas as Oas$1, Operation as Operation$1, OperationGenerator } from "./OperationGenerator-aKcfGbOt.cjs";
|
|
2
2
|
import "./SchemaMapper-BiagBQN4.cjs";
|
|
3
|
-
import { Schema } from "./Schema-
|
|
3
|
+
import { Schema } from "./Schema-D9qn9d7b.cjs";
|
|
4
4
|
import * as react0 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Operation.d.ts
|
package/dist/components.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KubbNode, Oas as Oas$1, Operation as Operation$1, OperationGenerator } from "./OperationGenerator-
|
|
1
|
+
import { KubbNode, Oas as Oas$1, Operation as Operation$1, OperationGenerator } from "./OperationGenerator-B3oFps4I.js";
|
|
2
2
|
import "./SchemaMapper-C2J2d3o4.js";
|
|
3
|
-
import { Schema } from "./Schema-
|
|
3
|
+
import { Schema } from "./Schema-DK1BsENl.js";
|
|
4
4
|
import * as react0 from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/Operation.d.ts
|
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/hooks.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FileMetaBase, HttpMethod, Oas, Operation, OperationSchemas, Plugin, ResolveNameParams } from "./OperationGenerator-
|
|
1
|
+
import { FileMetaBase, HttpMethod, Oas, Operation, OperationSchemas, Plugin, ResolveNameParams } from "./OperationGenerator-aKcfGbOt.cjs";
|
|
2
2
|
import { Extname, File, Import, Mode, Schema } from "./SchemaMapper-BiagBQN4.cjs";
|
|
3
|
-
import { SchemaContextProps } from "./Schema-
|
|
3
|
+
import { SchemaContextProps } from "./Schema-D9qn9d7b.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/useOas.d.ts
|
|
6
6
|
declare function useOas(): Oas;
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FileMetaBase, HttpMethod, Oas, Operation, OperationSchemas, Plugin, ResolveNameParams } from "./OperationGenerator-
|
|
1
|
+
import { FileMetaBase, HttpMethod, Oas, Operation, OperationSchemas, Plugin, ResolveNameParams } from "./OperationGenerator-B3oFps4I.js";
|
|
2
2
|
import { Extname, File, Import, Mode, Schema } from "./SchemaMapper-C2J2d3o4.js";
|
|
3
|
-
import { SchemaContextProps } from "./Schema-
|
|
3
|
+
import { SchemaContextProps } from "./Schema-DK1BsENl.js";
|
|
4
4
|
|
|
5
5
|
//#region src/hooks/useOas.d.ts
|
|
6
6
|
declare function useOas(): Oas;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API, Exclude, Generator, GeneratorOptions, GetSchemaGeneratorOptions, Include, OperationGenerator, OperationMethodResult, OperationSchema, OperationSchemas, Options, Override, PluginOas, ReactGeneratorOptions, Ref, Refs, ResolvePathOptions, Resolver, SchemaGenerator, SchemaGeneratorBuildOptions, SchemaGeneratorOptions, SchemaMethodResult, UserPluginWithLifeCycle, createGenerator, createReactGenerator } from "./OperationGenerator-
|
|
1
|
+
import { API, Exclude, Generator, GeneratorOptions, GetSchemaGeneratorOptions, Include, OperationGenerator, OperationMethodResult, OperationSchema, OperationSchemas, Options, Override, PluginOas, ReactGeneratorOptions, Ref, Refs, ResolvePathOptions, Resolver, SchemaGenerator, SchemaGeneratorBuildOptions, SchemaGeneratorOptions, SchemaMethodResult, UserPluginWithLifeCycle, createGenerator, createReactGenerator } from "./OperationGenerator-aKcfGbOt.cjs";
|
|
2
2
|
import { Schema, SchemaKeyword, SchemaKeywordBase, SchemaKeywordMapper, SchemaMapper, SchemaTree, isKeyword, schemaKeywords } from "./SchemaMapper-BiagBQN4.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API, Exclude, Generator, GeneratorOptions, GetSchemaGeneratorOptions, Include, OperationGenerator, OperationMethodResult, OperationSchema, OperationSchemas, Options, Override, PluginOas, ReactGeneratorOptions, Ref, Refs, ResolvePathOptions, Resolver, SchemaGenerator, SchemaGeneratorBuildOptions, SchemaGeneratorOptions, SchemaMethodResult, UserPluginWithLifeCycle, createGenerator, createReactGenerator } from "./OperationGenerator-
|
|
1
|
+
import { API, Exclude, Generator, GeneratorOptions, GetSchemaGeneratorOptions, Include, OperationGenerator, OperationMethodResult, OperationSchema, OperationSchemas, Options, Override, PluginOas, ReactGeneratorOptions, Ref, Refs, ResolvePathOptions, Resolver, SchemaGenerator, SchemaGeneratorBuildOptions, SchemaGeneratorOptions, SchemaMethodResult, UserPluginWithLifeCycle, createGenerator, createReactGenerator } from "./OperationGenerator-B3oFps4I.js";
|
|
2
2
|
import { Schema, SchemaKeyword, SchemaKeywordBase, SchemaKeywordMapper, SchemaMapper, SchemaTree, isKeyword, schemaKeywords } from "./SchemaMapper-C2J2d3o4.js";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin.d.ts
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, Oas, OasTypes, OpenAPIV3 as OpenAPIV3$1, OpenAPIV3_1, Operation, OperationSchema, Output, Params, SchemaObject as SchemaObject$1, contentType } from "./OperationGenerator-
|
|
1
|
+
import { Config, Oas, OasTypes, OpenAPIV3 as OpenAPIV3$1, OpenAPIV3_1, Operation, OperationSchema, Output, Params, SchemaObject as SchemaObject$1, contentType } from "./OperationGenerator-aKcfGbOt.cjs";
|
|
2
2
|
import "./SchemaMapper-BiagBQN4.cjs";
|
|
3
3
|
import { OASDocument, SchemaObject } from "oas/types";
|
|
4
4
|
import { OpenAPIV3 } from "openapi-types";
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Config, Oas, OasTypes, OpenAPIV3 as OpenAPIV3$1, OpenAPIV3_1, Operation, OperationSchema, Output, Params, SchemaObject as SchemaObject$1, contentType } from "./OperationGenerator-
|
|
1
|
+
import { Config, Oas, OasTypes, OpenAPIV3 as OpenAPIV3$1, OpenAPIV3_1, Operation, OperationSchema, Output, Params, SchemaObject as SchemaObject$1, contentType } from "./OperationGenerator-B3oFps4I.js";
|
|
2
2
|
import "./SchemaMapper-C2J2d3o4.js";
|
|
3
3
|
import { OASDocument, SchemaObject } from "oas/types";
|
|
4
4
|
import { OpenAPIV3 } from "openapi-types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-oas",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"description": "OpenAPI Specification (OAS) plugin for Kubb, providing core functionality for parsing and processing OpenAPI/Swagger schemas for code generation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"openapi",
|
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
"@stoplight/yaml": "^4.3.0",
|
|
83
83
|
"p-limit": "^7.0.0",
|
|
84
84
|
"remeda": "^2.30.0",
|
|
85
|
-
"@kubb/core": "3.
|
|
86
|
-
"@kubb/oas": "3.
|
|
87
|
-
"@kubb/react": "3.
|
|
85
|
+
"@kubb/core": "3.18.0",
|
|
86
|
+
"@kubb/oas": "3.18.0",
|
|
87
|
+
"@kubb/react": "3.18.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@types/react": "^18.3.23",
|
|
91
91
|
"react": "^18.3.1",
|
|
92
92
|
"tsdown": "^0.14.1",
|
|
93
93
|
"typescript": "^5.9.2",
|
|
94
|
-
"@kubb/config-ts": "3.
|
|
94
|
+
"@kubb/config-ts": "3.18.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
97
|
"@kubb/react": "^3.0.0"
|