resolvers icon indicating copy to clipboard operation
resolvers copied to clipboard

feat(typeboxResolver): make TypeBox resolver work with compiled schema

Open huynhducduy opened this issue 9 months ago • 0 comments

Description

  • Current implementation only makes use of the dynamic validation (aka ValueCheck) of TypeBox but not its TypeCompiler (a high-performance JIT) which is a killer feature, especially when working with recursive or constrained type validation.

Summary of changes

  • Add options for the user to pass a TypeCheck object (returned from TypeCompiler.Compile()) instead of plain schema.
  • Add tests
  • Add document for using TypeCompiler
  • Fix typo in tests of the ValueCheck mode (it mentioned zod instead of typebox)

huynhducduy avatar Apr 29 '24 18:04 huynhducduy