Closed A5rocks closed 1 year ago
CI is running/has finished running commands for commit 2b4981b134c52bfc53075826478492736fd23fa1. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
Sent with 💌 from NxCloud.
To provide some connection to the opened issues, this is sort of a special case for the inverse of https://github.com/anatine/zod-plugins/issues/70 (this is a special case for a join operation, vs that issue asking about implementing a meet operation)
This is useful especially for integer literals. Here's where I noticed the current behavior:
Debatably, it might be nicer to split cases like
z.union(z.literal(4), z.literal(5), z.literal("h"), z.literal("i"))
into 2 different groups and give those to theoneOf
, which is really not possible the way I went around this. I suspect that case is significantly rarer, however.