Closed tsnobip closed 9 months ago
Hey, thanks a lot for the lib and for the PPX!
I bumped into this issue, let's say you define a variant with inline records like this:
@schema @tag("type") type t = | @as("foo") Foo({@as("Foo") foo: string}) | @as("bar") Bar({@as("Bar") bar: string})
You would get the following error:
The field Foo is not part of the record argument for the t.Foo constructor Hint: Did you mean foo?
I don't know if it's a known issue or if it could be fixed.
Thanks for reporting, it should work. I'll investigate and try to do a fix.
Fixed in https://github.com/DZakh/rescript-schema/releases/tag/v6.4.0
Wow thanks a lot!
Hey, thanks a lot for the lib and for the PPX!
I bumped into this issue, let's say you define a variant with inline records like this:
You would get the following error:
I don't know if it's a known issue or if it could be fixed.