Transform initial values (e.g. null → 0) on load in Regle? #313
-
|
Hi, I’m working with data coming from a database where some numeric fields can be null. In Zod, I typically use I’m wondering if there is a similar approach in Regle. What I’m trying to achieve:
without requiring user interaction I noticed Question: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @starredev , no there is nothing in place for this as Regle is only a validation layer not a transformer like Zod |
Beta Was this translation helpful? Give feedback.
Hey @starredev , no there is nothing in place for this as Regle is only a validation layer not a transformer like Zod
You can still use Zod directly https://reglejs.dev/integrations/schemas-libraries