Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
finom authored Feb 24, 2024
1 parent c9b9e9c commit 98e4816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ The library (as well as Vovk.ts itself) is built thanks to fantastic job made by

- When `@vovkZod` is initialised, it converts [Zod](https://zod.dev/) schemas to JSON Schemas with [zod-to-json-schema](https://www.npmjs.com/package/zod-to-json-schema) and makes metadata handler to receive it as client validation object.
- `@vovkZod` performs Zod validation on server-side.
- When clientized controller method gets called `zodValidateOnClient` performs validation on client-side with [Ajv](https://ajv.js.org/).
- When clientized controller method gets called `zodValidateOnClient` performs validation on client-side with [Ajv](https://ajv.js.org/). Since client-side and server-side validation is implemented by different libraries, error messages are going to be different.

0 comments on commit 98e4816

Please sign in to comment.