jayalfredprufrock/nestjs-typebox

Support validation with AJV instead of `TypeBox.Compile`

Closed this issue · 4 comments

Support validation with AJV instead of `TypeBox.Compile`

This is definitely something I have considered. I'm still actively looking to integrate with a more fully-featured typebox-based validation library instead, and finding one that has support for AJV would be appealing. I could also see providing official support directly as well. I've been watching the recent developments in Typebox very closely and have been waiting for things to stabilize a bit on that end before making another pass in this library. I'll leave this open for discussion and to gauge interest. Thanks!

@jayalfredprufrock Can you please explain which developments you have been watching and waiting to stabilize in TypeBox?

I'm going to close this out for now. With the v3 release, I've converged on an approach to defaults/transforms/sanitizing using standard typebox utilities. At this point I don't see introducing official AJV support anytime soon. With some of the recent typebox developments, I'm happy with the current state of things and don't really miss any features from AJV.