# ZodSharp > Zero-allocation schema validation for C# — a Zod port. A high-performance schema validation library for C#, ported from TypeScript Zod by way of the guinhx/ZodSharp C# port. 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. ## Resources - Repository: https://github.com/purview-dev/zodsharp - Package: https://www.nuget.org/packages/Purview.ZodSharp - Project page: https://purview.dev/projects/zodsharp/ - Documentation: https://purview.dev/docs/zodsharp/ - Full machine-readable content: https://purview.dev/projects/zodsharp/llms-full.txt ## Documentation pages - ZodSharp: https://purview.dev/docs/zodsharp/ - Core Concepts: https://purview.dev/docs/zodsharp/core-concepts/ - Fluent Schema API: https://purview.dev/docs/zodsharp/fluent-schema-api/ - String Validation: https://purview.dev/docs/zodsharp/string-validation/ - Number Validation: https://purview.dev/docs/zodsharp/number-validation/ - Object Validation: https://purview.dev/docs/zodsharp/object-validation/ - Arrays and Other Schemas: https://purview.dev/docs/zodsharp/arrays-and-other-schemas/ - Unions and Discriminated Unions: https://purview.dev/docs/zodsharp/unions-and-discriminated-unions/ - Composition and Transforms: https://purview.dev/docs/zodsharp/composition-and-transforms/ - Custom Rules: https://purview.dev/docs/zodsharp/custom-rules/ - Compiled Validators and Caching: https://purview.dev/docs/zodsharp/compiled-validators-and-caching/ - JSON Schema Export: https://purview.dev/docs/zodsharp/jsonschema-export/ - JSON Schema Import: https://purview.dev/docs/zodsharp/jsonschema-import/ - System.Text.Json Integration: https://purview.dev/docs/zodsharp/systemtextjson-integration/ - Newtonsoft.Json Integration: https://purview.dev/docs/zodsharp/newtonsoftjson-integration/ - ASP.NET Core Integration: https://purview.dev/docs/zodsharp/aspnetcore-integration/ - Dependency Injection: https://purview.dev/docs/zodsharp/dependency-injection/ - Source Generator: https://purview.dev/docs/zodsharp/source-generator/ - Source Generator DataAnnotations: https://purview.dev/docs/zodsharp/source-generator-dataannotations/ - Source Generator Diagnostics: https://purview.dev/docs/zodsharp/source-generator-diagnostics/ - Cross-Platform Interop: https://purview.dev/docs/zodsharp/cross-platform-interop/ - Performance: https://purview.dev/docs/zodsharp/performance/ - Guarantees and Limitations: https://purview.dev/docs/zodsharp/guarantees-and-limitations/ - Release Flow: https://purview.dev/docs/zodsharp/release-flow/ - Contributing: https://purview.dev/docs/zodsharp/contributing/