© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Issue with `optionalToRequired` transformation affecting constraints on arbitrary values - Effect Community
EC
Effect Community
•
13mo ago
nicob21
Issue with `optionalToRequired` transformation affecting constraints on arbitrary values
Arbitrary annotation on a field defined with
transformOrFail
transformOrFail
in a
Struct
Struct
is lost when another field using
optionalToRequired
optionalToRequired
is added to the Struct
.
Here is a minimal
repro
.
The generated bigDecimal is in the expected range for the
Ok
Ok
schema but not for the
Bad
Bad
schema
(which has the
optionalToRequired
optionalToRequired
transformation
)
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Debugging Schema Transformation Issue
EC
Effect Community / schema
3y ago
Issue with Type Inference in Schema Transformation
EC
Effect Community / schema
11mo ago
Type Error with `optionalToRequired` and Custom Decoding Logic
EC
Effect Community / schema
15mo ago
Ignoring Arbitrary Override on DateFromString
EC
Effect Community / schema
3y ago