What is TypeBox?
mainTypeBox is a JSON Schema Type Builder that provides static type resolution for TypeScript. It allows you to construct JSON Schema compliant schematics using a set of built-in types. These schematics can be used directly with any JSON Schema compliant validator. The library provides two categories of types:
- JSON Schema types: Used to construct standard JSON Schema fragments.
- Extended types: Used to model constructs native to the JavaScript language.
TypeBox types are composable, meaning small schema fragments can be combined into more complex, nested structures.