Validation
Last updated
Was this helpful?
Last updated
Was this helpful?
Novel makes use of 2 validation mechanisms: JSON Schema and Zod. both serve specific purpose, for shaping requests and responses and for verifying input.
Although these are optional, it is recommended that you build your system utilizing these tools as much as possible.
Any active validations that you need during development can be supported by Zod. All database models have an accompanying zod definition that can be reused and extended.
Validations within the client should make use of zod as much as possible.
You can do more on the client side:
For server-side validation. refer to Validation.
2024-12-20 - Initial Documentation