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
So this works along with plain JSON schemas , For me I'm using "fluent-json-schema". Is there a way to add a transform function on fields ?
like:
exportconstuserLoginSchema=S.object().prop('firstName',S.string().minLength(2).maxLength(40)),// .transform() <-- trim and lowercase for example. or even add a custom transformer .prop('username',S.string().format(S.FORMATS.EMAIL)).prop('password',S.string().minLength(8).maxLength(40)).required(['username','password'])
Thanks a lot for your help
The text was updated successfully, but these errors were encountered:
Hi
I saw there is the option to set transforms as an options like:
So this works along with plain JSON schemas , For me I'm using "fluent-json-schema". Is there a way to add a transform function on fields ?
like:
Thanks a lot for your help
The text was updated successfully, but these errors were encountered: