You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Briant library! Replaced zod in a couple of minutes and greatly reduced bundle size.
The only one moment is missing a little bit - "data masking"
with zod if you declare object with a given shape
then on z.parse you will get only the fields you've requested
lizod just checks that the object matches expectations
so you always operate with the real object
There is not a big problem to do data masking, however information about "selected fields" is hidden inside $object. So step 1 is to provide access to this information.
What do you think about extra helper to extract the configuration from $object, it can be just a property on a return function as well(example), to provide runtime access to fields to be picked for the external tool?
The text was updated successfully, but these errors were encountered:
Briant library! Replaced
zod
in a couple of minutes and greatly reduced bundle size.The only one moment is missing a little bit - "data masking"
zod
if you declare object with a given shapez.parse
you will get only the fields you've requestedlizod
just checks that the object matches expectationsThere is not a big problem to do data masking, however information about "selected fields" is hidden inside
$object
. So step 1 is to provide access to this information.What do you think about extra helper to extract the configuration from
$object
, it can be just a property on a return function as well(example), to provide runtime access to fields to be picked for the external tool?The text was updated successfully, but these errors were encountered: