@kubb/plugin-zod 5.8.2 → 5.8.3

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 CHANGED
@@ -140,7 +140,7 @@ function buildOptionsSchema(node, resolver, { pairContentTypes = false } = {}) {
140
140
  properties: [
141
141
  _kubb_kit.ast.factory.createProperty({
142
142
  name: "body",
143
- required: hasBody,
143
+ required: hasBody && node.requestBody?.required === true,
144
144
  schema: body
145
145
  }),
146
146
  ...groups.map(({ name, params, resolve }) => {
@@ -1366,7 +1366,7 @@ function buildScalarNodes(dialect) {
1366
1366
  },
1367
1367
  ipv4: () => "z.ipv4()",
1368
1368
  ipv6: () => "z.ipv6()",
1369
- blob: () => "z.instanceof(File)",
1369
+ blob: () => "z.instanceof(Blob)",
1370
1370
  enum(node) {
1371
1371
  const nonNullValues = (node.namedEnumValues?.map((v) => v.value) ?? node.enumValues ?? []).filter((v) => v !== null);
1372
1372
  if (node.namedEnumValues?.length) {
@@ -2189,7 +2189,7 @@ var compatibility = {
2189
2189
  "node": ">=22.22"
2190
2190
  };
2191
2191
  // package.json
2192
- var version = "5.8.2";
2192
+ var version = "5.8.3";
2193
2193
  // src/resolvers/resolverZod.ts
2194
2194
  /**
2195
2195
  * Default resolver used by `@kubb/plugin-zod`. Decides the names and file