8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
console.dir
$ZodDiscriminatedUnion
1 parent 7bfc8af commit a127639Copy full SHA for a127639
packages/zod/src/v4/core/schemas.ts
@@ -1976,7 +1976,6 @@ export const $ZodDiscriminatedUnion: core.$constructor<$ZodDiscriminatedUnion> =
1976
const propValues: util.PropValues = {};
1977
for (const option of def.options) {
1978
const pv = option._zod.propValues;
1979
- console.dir(pv, { depth: null });
1980
if (!pv || Object.keys(pv).length === 0)
1981
throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
1982
for (const [k, v] of Object.entries(pv!)) {
0 commit comments