@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.js CHANGED
@@ -136,7 +136,7 @@ function buildOptionsSchema(node, resolver, { pairContentTypes = false } = {}) {
136
136
  properties: [
137
137
  ast.factory.createProperty({
138
138
  name: "body",
139
- required: hasBody,
139
+ required: hasBody && node.requestBody?.required === true,
140
140
  schema: body
141
141
  }),
142
142
  ...groups.map(({ name, params, resolve }) => {
@@ -1362,7 +1362,7 @@ function buildScalarNodes(dialect) {
1362
1362
  },
1363
1363
  ipv4: () => "z.ipv4()",
1364
1364
  ipv6: () => "z.ipv6()",
1365
- blob: () => "z.instanceof(File)",
1365
+ blob: () => "z.instanceof(Blob)",
1366
1366
  enum(node) {
1367
1367
  const nonNullValues = (node.namedEnumValues?.map((v) => v.value) ?? node.enumValues ?? []).filter((v) => v !== null);
1368
1368
  if (node.namedEnumValues?.length) {
@@ -2185,7 +2185,7 @@ var compatibility = {
2185
2185
  "node": ">=22.22"
2186
2186
  };
2187
2187
  // package.json
2188
- var version = "5.8.2";
2188
+ var version = "5.8.3";
2189
2189
  // src/resolvers/resolverZod.ts
2190
2190
  /**
2191
2191
  * Default resolver used by `@kubb/plugin-zod`. Decides the names and file