Effect CommunityEC
Effect Community3y ago
5 replies
Gibbs

Overriding Arbitrary in Transformed Schema

How do I override the arbitrary of a transformed schema ?
Reading the source code, it looks like the arbitrary is taken from the ast.to, but when I do
SchemaWithTransformation.pipe(
   S.annotations({[Arbitrary.ArbitraryHookId]: customArb })
)

then the annotation is added at the root of SchemaWithTransformation.ast, but not at SchemaWithTransformation.ast.to which is used by Arbitrary.to ...
Was this page helpful?