Skip to content

Commit

Permalink
Merge pull request #6711 from sivareddyuppathi/master
Browse files Browse the repository at this point in the history
Docs: Update ResolversDoc.vue
  • Loading branch information
tugcekucukoglu authored Nov 11, 2024
2 parents 8614dfa + 2a1172a commit 6245496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/showcase/doc/forms/ResolversDoc.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<template>
<DocSectionText v-bind="$attrs">
<p>
Validations are implemented the with <i>resolver</i> property. A custom resolver is responsible for handling the validation and returning an <i>errors</i> object with key-value pairs where key is the form field name and value is an array
Validations are implemented with the <i>resolver</i> property. A custom resolver is responsible for handling the validation and returning an <i>errors</i> object with key-value pairs where key is the form field name and value is an array
of error object data. For productivity, we recommend using a schema validation library instead of building your own custom validation logic. The forms library provide built-in resolvers for popular options including
<a href="https://zod.dev/">Zod</a>, <a href="https://github.com/jquense/yup">Yup</a>, <a href="https://joi.dev/">Joi</a>, <a href="https://valibot.dev/">Valibot</a>, and <a href="https://docs.superstructjs.org/">Superstruct</a> that can
be be imported from <i>@primevue/forms/resolvers/*</i> path.
be imported from <i>@primevue/forms/resolvers</i> path.
</p>
</DocSectionText>
<div class="card flex flex-col items-center gap-5">
Expand Down

0 comments on commit 6245496

Please sign in to comment.