Skip to content

push-based/zod2nx-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Zod to Nx Schema

Convert Zod schemas to Nx executor/generator schema.json files


license


Overview

zod2nx-schema is a tool that converts Zod schemas into Nx executor/generator schema.json files. This makes it easy to define executor options using Zod's type-safe schema validation and automatically generate the JSON schema files that Nx requires.

Packages

Quick Start

Installation

npm install @push-based/zod2nx-schema

Usage

zod2nx-schema --schemaModulePath ./src/schema.ts --exportName MySchema

This will generate a schema.json file based on your Zod schema export.

Features

  • 🔒 Type-safe - Define schemas using Zod's powerful type system
  • 📦 Zero config - Works out of the box with sensible defaults
  • 🎯 Nx integration - Seamlessly integrates with Nx executors
  • 📝 Metadata support - Add titles, descriptions, and other metadata to your schemas

Contributing

See CONTRIBUTING.md for guidelines on how to contribute to this project.

About

Turns zod schemas into Nx schema.json files

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published