Feedback on Handling Default Values in Nested Structures with TypeBox #841
anuj-kr-jha
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've been working on a project using the @sinclair/typebox library to define and validate data structures in Node.js. My main goal is to ensure that all objects, including nested ones, are filled with default values and correctly handle type conversions.
Here's the approach I've developed:
i t results in
this is serving the purpose for me.
I just wanted to ask whether this approach is good or I can further optimize it.
thanks
Beta Was this translation helpful? Give feedback.
All reactions