Purview ZodSharp
PreviewZero-allocation schema validation for C# — a Zod port.
Overview
A high-performance schema validation library for C#, ported from TypeScript Zod. Struct-based rules, a fluent API, JSON Schema export and import, source-generated validators, and zero-allocation validation on every valid input path. Integrates with System.Text.Json, Newtonsoft.Json, and ASP.NET Core ProblemDetails.
Packages
| Package | Stable | Prerelease | Downloads |
|---|---|---|---|
| Purview.ZodSharp | — | 2.0.0-prerelease.6 | — |
| Purview.ZodSharp.SystemTextJson | — | 2.0.0-prerelease.6 | — |
| Purview.ZodSharp.NewtonsoftJson | — | 2.0.0-prerelease.6 | — |
| Purview.ZodSharp.AspNetCore | — | 2.0.0-prerelease.6 | — |
Install
dotnet add package Purview.ZodSharp