onetyped
onetyped copied to clipboard
one schema to rule them all
onetyped
one schema to rule them all
What is it?
onetyped is a universal way to describe data. I built this to painlessly convert to and from different formats primarily for use in dev tools.
Why not Zod or (insert validation framework here)?
Zod is great, but its primary use case is for validation and that shows. onetyped is not a validation framework, it's a data description framework. It optimizes for traversing your schema's shape and converting it to different formats and back.
Integrations
Usage
Use @onetyped/core
to define your onetyped schema. You can also use an integration to derive a schema from a different format. With this schema, you can use an integration to convert to a different format. You can also traverse the nodes of your onetyped schema and do as you wish with the definition (essentially: you can create your own integrations).