@kubb/plugin-zod 4.12.8 → 4.12.10
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/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{types-CslRFTZC.d.cts → types-CiFuSEMA.d.cts} +3 -1
- package/dist/{types-CKRVUO69.d.ts → types-Du2Wf2yz.d.ts} +3 -1
- package/package.json +5 -5
- package/src/generators/__snapshots__/imageNullable.ts +7 -0
package/dist/components.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-
|
|
1
|
+
import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-CiFuSEMA.cjs";
|
|
2
2
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-
|
|
1
|
+
import { i as Schema, n as PluginZod, o as Operation, s as SchemaObject } from "./types-Du2Wf2yz.js";
|
|
2
2
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
3
3
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
4
4
|
|
package/dist/generators.d.cts
CHANGED
package/dist/generators.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-CiFuSEMA.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginZodName = "plugin-zod";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-
|
|
1
|
+
import { a as UserPluginWithLifeCycle, n as PluginZod, t as Options } from "./types-Du2Wf2yz.js";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
declare const pluginZodName = "plugin-zod";
|
|
@@ -41,6 +41,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
41
41
|
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
42
42
|
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
43
43
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
44
|
+
flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
|
|
44
45
|
}
|
|
45
46
|
//#endregion
|
|
46
47
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -719,6 +720,7 @@ type SchemaKeywordMapper = {
|
|
|
719
720
|
[x: string]: Schema[];
|
|
720
721
|
};
|
|
721
722
|
additionalProperties: Schema[];
|
|
723
|
+
patternProperties?: Record<string, Schema[]>;
|
|
722
724
|
strict?: boolean;
|
|
723
725
|
};
|
|
724
726
|
};
|
|
@@ -1294,4 +1296,4 @@ type ResolvedOptions = {
|
|
|
1294
1296
|
type PluginZod = PluginFactoryOptions<'plugin-zod', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1295
1297
|
//#endregion
|
|
1296
1298
|
export { UserPluginWithLifeCycle as a, Schema as i, PluginZod as n, Operation$1 as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
|
|
1297
|
-
//# sourceMappingURL=types-
|
|
1299
|
+
//# sourceMappingURL=types-CiFuSEMA.d.cts.map
|
|
@@ -41,6 +41,7 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
|
|
|
41
41
|
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
42
42
|
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
43
43
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
44
|
+
flattenSchema(schema?: SchemaObject): SchemaObject | undefined;
|
|
44
45
|
}
|
|
45
46
|
//#endregion
|
|
46
47
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -719,6 +720,7 @@ type SchemaKeywordMapper = {
|
|
|
719
720
|
[x: string]: Schema[];
|
|
720
721
|
};
|
|
721
722
|
additionalProperties: Schema[];
|
|
723
|
+
patternProperties?: Record<string, Schema[]>;
|
|
722
724
|
strict?: boolean;
|
|
723
725
|
};
|
|
724
726
|
};
|
|
@@ -1294,4 +1296,4 @@ type ResolvedOptions = {
|
|
|
1294
1296
|
type PluginZod = PluginFactoryOptions<'plugin-zod', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1295
1297
|
//#endregion
|
|
1296
1298
|
export { UserPluginWithLifeCycle as a, Schema as i, PluginZod as n, Operation$1 as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
|
|
1297
|
-
//# sourceMappingURL=types-
|
|
1299
|
+
//# sourceMappingURL=types-Du2Wf2yz.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-zod",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.10",
|
|
4
4
|
"description": "Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.7.4",
|
|
72
|
-
"@kubb/core": "4.12.
|
|
73
|
-
"@kubb/oas": "4.12.
|
|
74
|
-
"@kubb/plugin-oas": "4.12.
|
|
75
|
-
"@kubb/plugin-ts": "4.12.
|
|
72
|
+
"@kubb/core": "4.12.10",
|
|
73
|
+
"@kubb/oas": "4.12.10",
|
|
74
|
+
"@kubb/plugin-oas": "4.12.10",
|
|
75
|
+
"@kubb/plugin-ts": "4.12.10"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@asteasolutions/zod-to-openapi": "^8.2.0",
|