logaretm / vee-validate

✅ Painless Vue forms
https://vee-validate.logaretm.com/v4
MIT License
10.79k stars 1.26k forks source link

"warn" in ValidationOptions interface #4826

Closed jakecodev closed 3 days ago

jakecodev commented 2 months ago

Hi, may I ask what does the warn parameter do in validate specifically? I could not find any hint in the docs or online. Thank you very much @logaretm

interface ValidationOptions$1 {
    mode: SchemaValidationMode;
    warn: boolean;
}
logaretm commented 3 days ago

This is for internal use, we use it to avoid triggering a validation warn for non existent fields:

https://github.com/logaretm/vee-validate/blob/f8a82fc4f84a98f7881cb73a023f59a8051d69ab/packages/vee-validate/src/useForm.ts#L938-L943