University of Peradeniya crestSCS Documentation
University of Peradeniya crestSCS Documentation
Department website

Start here

Repository handbookRepository overviewDevelopment

System design

ArchitectureAuthentication and authorizationPublic dataAPI contractsSchemas
UI system

Applications

Department Web applicationPeople applicationProjects applicationPortal application

Services

API serviceGitHub App serviceMailer service

Shared packages

Schemas packageUI packageTypeScript configuration packageESLint configuration package
Shared package internals
Schemas package internalsSchema ownership and exportsSchema evolution and verification

Development workflow

Testing and verificationDependency managementDocumentation authoringUI quality assurance

Operations

Continuous integrationEnvironment variablesOperationsSecurityTroubleshooting

Reference

Route referenceGlossary
Shared package internalsSchemas package internals

Maintainer guide to shared schema ownership, package exports, contract evolution, parsing behavior, and verification.

Schemas package internals

packages/schemas is the repository's shared runtime-contract package. Each Zod schema defines executable boundary validation and exports its inferred TypeScript type from the same source.

The schema reference describes the fields and relationships. These pages describe how to own and change the package itself: Ownership and exports and Evolution and verification.

Shared package internals

Ownership, export, evolution, and verification guides for schemas, UI primitives, and repository tooling presets.

Schema ownership and exports

What belongs in the shared schema package, how domains are arranged, and how producers and consumers import its public API.

On this page

Schemas package internals