@csc3213-2026-group-b/academic-domain-schemas
v4.0.0
Published
Zod schemas for the SCS PDN
Readme
Welcome to the Academic Domain Schemas Package
This package contains shared TypeScript domain schemas and Zod validation models for a single academic department system, covering staff, academic programs, courses, students, and year-dependent relationships.
Usage
This package provides Zod schemas that can be used to validate data structures related to the academic domain. To use these schemas, follow these steps:
Install the package using npm:
# Using npm: npm install @csc3213-2026-group-b/academic-domain-schemas@latest # or using bun: bun add @csc3213-2026-group-b/academic-domain-schemas@latest # or using yarn: yarn add @csc3213-2026-group-b/academic-domain-schemas@latest # or using pnpm: pnpm add @csc3213-2026-group-b/academic-domain-schemasImport and use the schemas in your project as needed.
import { StudentSchema, type Student, } from '@csc3213-2026-group-b/academic-domain-schemas'; const result = StudentSchema.safeParse(data);NOTE: Do not import the schemas from subdirectories within the package, as the destination paths may change in the future. Always import directly from the package root to ensure compatibility with future updates.
Contribution Guidelines
Please follow these guidelines:
- Fork the package and create a new branch for your feature or bug fix.
- Make your changes and ensure that they adhere to the project's coding standards.
- Submit a pull request with a clear description of your changes.
- Participate in the code review process and make any requested changes.
By following these guidelines, you help maintain the quality and integrity of the project. Thank you for your contributions!
