Schema
Information about the schema package
The schema package contains Yup validation schemas for the frontends. These validation schemas are used to make sure the user inputs correctly on the client-side.
Authentication Schemas
Most of our schemas are for authentication purposes (like validating username, password, address, phone number, etc.).
There is one base schema, UserSchema, for the most basic information like username, password, and email. Then other schemas such as WorkerSchema, AdminSchema inherit validation requirements from the base schema.
Last updated