Announcing typebox-validators #471
jtlapp
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
@jtlapp Hey! That's awesome!! (especially the support for custom TypeBox is tracking community packages under the Ecosystem section of the readme. Would you like to include Again, great work! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love TypeBox, but TypeBox limits itself to standard behavior, so I created a package of validators that embellish TypeBox and provide useful convenience methods. The result is the package
typebox-validators
, providing validators with lazy compilation, custom error messages, safe error handling, discriminated and heterogeneous unions.It provides these validator classes:
The "compiling" validators compile TypeBox schemas on their first usage and cache the compilations for subsequent use.
Here is a sample:
Beta Was this translation helpful? Give feedback.
All reactions