Feature: define validation messages in component
See original GitHub issueFirst of all, thank you for sharing this great library!
As far as I can tell, you have to define error messages globally at the top level of your application. Is it possible to define them within the component? It doesn’t seem like they would be allowed to live within data.validations
since vuelidate would produce errors. Could they somehow be defined alongside, maybe as data.validation_messages
with keys matching data.validations
?
Does this seem like a good idea? It would allow us to reuse field names in different components. Is there already someway to do this?
I see that there is a table of Component Props in the documentation with one of the fields being messages. Is this what I’m looking for? I’m not sure where these props are supposed to be used.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (9 by maintainers)
Top GitHub Comments
OK so maybe I have to make this more clear: To init you usually have this:
Now when ever you use the error extractor, all your messages will be used.
If you want to overwrite one of them you can do
Is This {min} still working? It was working for me in past but stopped working for some time. {attribute} is still working.