tsval
tsval is a command-line tool designed for validating JSON or YAML data against a provided TypeScript schema. It leverages the power of TypeScript's type system to ensure that data conforms to a specific structure and set of rules. The tool works by taking a schema file written in TypeScript, compiling it into a JavaScript validation function, and then using this function to check input JSON or YAML data.
The primary use case for tsval is in scenarios where data integrity is critical, such as API
tsval supports various data types and validation rules, including primitives, arrays, objects, unions, intersections, and custom