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.
1 parent 10c4138 commit 5450de7Copy full SHA for 5450de7
packages/evolution/src/core/TSchema.ts
@@ -739,7 +739,7 @@ export const Union = <Members extends ReadonlyArray<Schema.Schema.Any>>(...membe
739
const memberNames = getMemberNames()
740
const actual = issue.actual
741
const actualType = getTypeName(actual)
742
- const actualStr = typeof actual === "object" ? String(actual) : JSON.stringify(actual)
+ const actualStr = String(actual)
743
744
return `Invalid value for Union: received ${actualType} (${actualStr}), expected ${memberNames.join(" or ")}`
745
}
0 commit comments