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
Hi, fluent-json-schema is used for validation, but I want to add a transformer (trim in my case), that I'm thinking it can go hand in hand with validaiton.
// example: How to trim string values here?importSfrom'fluent-json-schema'exportconstsignupSchema=S.object().prop('unique_tab_id',S.string().minLength(36).maxLength(36)).prop('username',S.string().format(S.FORMATS.EMAIL)).prop('password',S.string().minLength(4).maxLength(40)).prop('firstName',S.string().minLength(2).maxLength(40)).prop('secondName',S.string().minLength(2).maxLength(40)).required(['username','password','firstName','secondName'])
If this is not possible, do you think it is useful to add some transform function for fluent-json-schema as an option ?
Kindly
The text was updated successfully, but these errors were encountered:
Hi,
fluent-json-schema is used for validation, but I want to add a transformer (trim in my case), that I'm thinking it can go hand in hand with validaiton.
For reference, I looked for answers, and this relates: https://stackoverflow.com/a/63305773
But I'm using
fluent-json-schema
specifically:If this is not possible, do you think it is useful to add some transform function for
fluent-json-schema
as an option ?Kindly
The text was updated successfully, but these errors were encountered: