Morris.Zod
Converts .net assembly classes to TypeScript "Zod" validation files.
NOTE: Alpha version. Currently has a bug where the consuming csproj won't build inside VS so you'll have to use dotnet build
.
- Add a NuGet package reference to Morris.Zod to the project you want to generate Zod TypeScript files for.
- Edit the csproj file and add the following
<PropertyGroup>
<Morris_Zod_OutputDir>..\ZodGeneratedFiles</Morris_Zod_OutputDir>
</PropertyGroup>
Where the value of Morris_Zod_OutputDir
is the path to where you want the generated TS files to be written, this path is relative to your csproj file.
3. Build
Your generated files will be in the folder path you specified within your csproj
file each time that project builds.
You can download the latest release / pre-release NuGet packages from the official Morris.Zod Nuget page
See the Releases page for release history.