Skip to content

Commit

Permalink
Merge pull request #17 from Prism-Analytic-Technologies/strict-on-zod…
Browse files Browse the repository at this point in the history
…-within-union

strict() on zod objects within union
  • Loading branch information
omar-dulaimi authored Sep 4, 2022
2 parents db5b1e1 + 1a9d86a commit 2de3462
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 2de3462

Please sign in to comment.