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:saveParse
method: