Skip to main content

Overview

Schemas package contains data schemas for the applications, including resource schemas. Data schema — is a Zod schema that defines shape of the entity. It must strictly define all fields. Resource schema is defined in entity.schema file e.x. user.schema.

Validation

Zod schemas simplify form validation in react-hook-form:
Additionally, data can be validated using the saveParse method:
For more details on Zod, check the documentation.