@kubb/plugin-oas 3.17.0 → 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.
@@ -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-OtLcGk2y.d.ts.map
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-CgbXErhW.d.cts.map
921
+ //# sourceMappingURL=OperationGenerator-aKcfGbOt.d.cts.map
@@ -1,6 +1,6 @@
1
- import { Key, KubbNode, SchemaObject } from "./OperationGenerator-CgbXErhW.cjs";
1
+ import { Key, KubbNode, SchemaObject } from "./OperationGenerator-aKcfGbOt.cjs";
2
2
  import { Schema } from "./SchemaMapper-BiagBQN4.cjs";
3
- import * as react0 from "react";
3
+ import * as react1 from "react";
4
4
 
5
5
  //#region src/components/Schema.d.ts
6
6
  type SchemaContextProps = {
@@ -31,8 +31,8 @@ declare function Schema$1({
31
31
  children
32
32
  }: Props): any;
33
33
  declare namespace Schema$1 {
34
- var Context: react0.Context<SchemaContextProps>;
34
+ var Context: react1.Context<SchemaContextProps>;
35
35
  }
36
36
  //#endregion
37
37
  export { Schema$1 as Schema, SchemaContextProps };
38
- //# sourceMappingURL=Schema-DJshqHto.d.cts.map
38
+ //# sourceMappingURL=Schema-D9qn9d7b.d.cts.map
@@ -1,6 +1,6 @@
1
- import { Key, KubbNode, SchemaObject } from "./OperationGenerator-OtLcGk2y.js";
1
+ import { Key, KubbNode, SchemaObject } from "./OperationGenerator-B3oFps4I.js";
2
2
  import { Schema } from "./SchemaMapper-C2J2d3o4.js";
3
- import * as react0 from "react";
3
+ import * as react1 from "react";
4
4
 
5
5
  //#region src/components/Schema.d.ts
6
6
  type SchemaContextProps = {
@@ -31,8 +31,8 @@ declare function Schema$1({
31
31
  children
32
32
  }: Props): any;
33
33
  declare namespace Schema$1 {
34
- var Context: react0.Context<SchemaContextProps>;
34
+ var Context: react1.Context<SchemaContextProps>;
35
35
  }
36
36
  //#endregion
37
37
  export { Schema$1 as Schema, SchemaContextProps };
38
- //# sourceMappingURL=Schema-DOXGUW1m.d.ts.map
38
+ //# sourceMappingURL=Schema-DK1BsENl.d.ts.map
@@ -1,7 +1,7 @@
1
- import { KubbNode, Oas as Oas$1, Operation as Operation$1, OperationGenerator } from "./OperationGenerator-CgbXErhW.cjs";
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-DJshqHto.cjs";
4
- import * as react1 from "react";
3
+ import { Schema } from "./Schema-D9qn9d7b.cjs";
4
+ import * as react0 from "react";
5
5
 
6
6
  //#region src/components/Operation.d.ts
7
7
  type Props$1 = {
@@ -16,7 +16,7 @@ declare function Operation({
16
16
  children
17
17
  }: Props$1): any;
18
18
  declare namespace Operation {
19
- var Context: react1.Context<OperationContextProps>;
19
+ var Context: react0.Context<OperationContextProps>;
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/Oas.d.ts
@@ -44,7 +44,7 @@ declare function Oas({
44
44
  generator
45
45
  }: Props): any;
46
46
  declare namespace Oas {
47
- var Context: react1.Context<OasContextProps>;
47
+ var Context: react0.Context<OasContextProps>;
48
48
  var Operation: typeof Operation;
49
49
  var Schema: typeof Schema;
50
50
  }
@@ -1,7 +1,7 @@
1
- import { KubbNode, Oas as Oas$1, Operation as Operation$1, OperationGenerator } from "./OperationGenerator-OtLcGk2y.js";
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-DOXGUW1m.js";
4
- import * as react1 from "react";
3
+ import { Schema } from "./Schema-DK1BsENl.js";
4
+ import * as react0 from "react";
5
5
 
6
6
  //#region src/components/Operation.d.ts
7
7
  type Props$1 = {
@@ -16,7 +16,7 @@ declare function Operation({
16
16
  children
17
17
  }: Props$1): any;
18
18
  declare namespace Operation {
19
- var Context: react1.Context<OperationContextProps>;
19
+ var Context: react0.Context<OperationContextProps>;
20
20
  }
21
21
  //#endregion
22
22
  //#region src/components/Oas.d.ts
@@ -44,7 +44,7 @@ declare function Oas({
44
44
  generator
45
45
  }: Props): any;
46
46
  declare namespace Oas {
47
- var Context: react1.Context<OasContextProps>;
47
+ var Context: react0.Context<OasContextProps>;
48
48
  var Operation: typeof Operation;
49
49
  var Schema: typeof Schema;
50
50
  }
@@ -1,4 +1,4 @@
1
- import { Generator, PluginOas } from "./OperationGenerator-CgbXErhW.cjs";
1
+ import { Generator, PluginOas } from "./OperationGenerator-aKcfGbOt.cjs";
2
2
  import "./SchemaMapper-BiagBQN4.cjs";
3
3
 
4
4
  //#region src/generators/jsonGenerator.d.ts
@@ -1,4 +1,4 @@
1
- import { Generator, PluginOas } from "./OperationGenerator-OtLcGk2y.js";
1
+ import { Generator, PluginOas } from "./OperationGenerator-B3oFps4I.js";
2
2
  import "./SchemaMapper-C2J2d3o4.js";
3
3
 
4
4
  //#region src/generators/jsonGenerator.d.ts
package/dist/hooks.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { FileMetaBase, HttpMethod, Oas, Operation, OperationSchemas, Plugin, ResolveNameParams } from "./OperationGenerator-CgbXErhW.cjs";
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-DJshqHto.cjs";
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-OtLcGk2y.js";
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-DOXGUW1m.js";
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-CgbXErhW.cjs";
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-OtLcGk2y.js";
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-CgbXErhW.cjs";
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-OtLcGk2y.js";
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.17.0",
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.17.0",
86
- "@kubb/react": "3.17.0",
87
- "@kubb/oas": "3.17.0"
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.17.0"
94
+ "@kubb/config-ts": "3.18.0"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@kubb/react": "^3.0.0"