logaretm / vee-validate

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

field-level schema not using `default` values from schema provider #4681

Open megaarmos opened 6 months ago

megaarmos commented 6 months ago

What happened?

I was trying to make optional schema to work, but i coudn't. Also i tried with withDefault from documentation of vee-validate (which is depricated) and it is also ot working. Expecting: optional value to show on load;

Reproduction steps

  1. Page loads
  2. Empty field

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

Relevant log output

no errors

Demo link

https://stackblitz.com/edit/czkc4v?file=src%2FApp.vue&startScript=dev

Code of Conduct

logaretm commented 3 months ago

Typed schemas doesn't support field-level schemas at the moment. It should work with form-level schemas.