schema2typebox

Generate TypeBox validation code from JSON schema files

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Creates typebox code from JSON schemas

Commands

schema2typebox

Examples

convert JSON schema to TypeBox code$ schema2typebox schema.json
generate TypeBox validators from schema and save to file$ schema2typebox schema.json -o validators.ts
convert schema with custom type definitions$ schema2typebox schema.json --namespace MyTypes
generate TypeBox code from stdin$ cat schema.json | schema2typebox
pretty print TypeBox output for readability$ schema2typebox schema.json -o output.ts --format