Skip to content

Commit

Permalink
16: strict on zod objects within union
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinlindquist committed Sep 1, 2022
1 parent db5b1e1 commit 1a9d86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default class Transformer {
return this.wrapWithZodObject(fields) + '.strict()';
}

const wrapped = fields.map((field) => this.wrapWithZodObject(field));
const wrapped = fields.map((field) => this.wrapWithZodObject(field) + '.strict()');

return this.wrapWithZodOUnion(wrapped);
}
Expand Down

0 comments on commit 1a9d86a

Please sign in to comment.