Skip to content

zenstackhq/v3-doc-zod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZenStack V3 Zod Integration Sample

This project demonstrates how to use the @zenstackhq/zod package to generate Zod validation schemas from a ZenStack model.

The ZenStack schema (zenstack/schema.zmodel) defines two models — User and Post. Using createSchemaFactory, the sample derives Zod schemas for reading, creating, and updating these models, then validates data against them.

Setup

npm install

Run

npm run dev

About

ZenStack v3 Zod integration samples

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors