Open lousolverson opened 3 months ago
It could be connected to this issue. If the field name contains dashes the schema won't compile.
v.compile(
v.object({
'g-recaptcha-response': v.string().optional(),
})
);
throws
SyntaxError: Missing initializer in const declaration
at new AsyncFunction (<anonymous>)
Package version
2.1.0
Describe the bug
I am looking to use the following scheme:
and it produces the following error:
Finally if I make the following changes it solves the problem:
Thanks a lot for any solution
Reproduction repo
No response