Open jasonejavier opened 6 months ago
Having the same issue, seems caused by a failure to compile the async function that validates the field
Does that fix the issue when you convert the fields to camelCase
?
https://vinejs.dev/docs/schema_101#converting-the-output-to-camelcase
Not sure I entirely get the issue. So it will be nice to have a reproduction of the same
Not sure I entirely get the issue. So it will be nice to have a reproduction of the same
The code generated by Vine when using kebab-case field is invalid. The issue reside inside the compiler. Maybe we should normalize the casing of the field inside the generated code.
The code generated by Vine when using kebab-case field is invalid
That is what I am trying to figure out. What is invalid?
Package version
^2.0.0
Describe the bug
On our AdonisJS model we have a hyphenated column name like this
And we declare it in our consts file like this:
Vine declaration
We're using the vinejs for checking the body for the CREATE request and when we're passing
"avs-address": "Sample Address",
it is giving us the error:
SyntaxError: Missing initializer in const declaration
Can someone help with this? Thank you!
Reproduction repo
No response