How to add a min chars length for password, username, ... etc
gadelkareem opened this issue · 3 comments
gadelkareem commented
How to add a min chars length for password, username, ... etc
musinit commented
No description provided.
You can add exact chars length by 'faker:"len={your_desired_length}' attribute. Do you really need randomly generated length of fields with min value?
gadelkareem commented
@musinit I am validating some fields like password
based on min and max length so faker fields should pass these validations.
bxcodec commented
For personal features need, mind considering to use the customize faker? You can look the examples here https://pkg.go.dev/github.com/bxcodec/faker/v3?tab=doc#example-package-CustomFaker