You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a known issue with Zod's `refine` and `superRefine` not executing whenever some object keys are missing which is common with forms. This is not an issue with vee-validate as it is a design choice in Zod at the moment. Refer to [this issue](https://github.com/logaretm/vee-validate/issues/4338) for explanations and further reading.
280
+
281
+
</DocTip>
282
+
277
283
### Validating with global validators
278
284
279
285
Another option is using `@vee-validate/rules` which have been historically bundled with past versions of vee-validate. It includes rules that can be defined globally and then used anywhere using Laravel-like string expressions.
Copy file name to clipboardExpand all lines: docs/src/pages/guide/composition-api/typed-schema.mdx
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,6 +226,12 @@ handleSubmit(submitted => {
226
226
});
227
227
```
228
228
229
+
<DocTiptitle="refine/superRefine">
230
+
231
+
There is a known issue with Zod's `refine` and `superRefine` not executing whenever some object keys are missing or not filled which is common with forms. This is not an issue with vee-validate as it is a design choice in Zod at the moment. Refer to [this issue](https://github.com/logaretm/vee-validate/issues/4338) for explanations and further reading.
232
+
233
+
</DocTip>
234
+
229
235
### Zod default values
230
236
231
237
You can also define default values on your zod schema directly and it will be picked up by the form:
You can find more information on how typed schemas work in vee-validate [here](/guide/composition-api/typed-schema#zod)
165
165
166
166
</DocTip>
167
+
168
+
<DocTiptitle="refine/superRefine">
169
+
170
+
There is a known issue with Zod's `refine` and `superRefine` not executing whenever some object keys are missing which is common with forms. This is not an issue with vee-validate as it is a design choice in Zod at the moment. Refer to [this issue](https://github.com/logaretm/vee-validate/issues/4338) for explanations and further reading.
0 commit comments