bxcodec/faker

How to add a min chars length for password, username, ... etc

gadelkareem opened this issue · 3 comments

How to add a min chars length for password, username, ... etc

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?

@musinit I am validating some fields like password based on min and max length so faker fields should pass these validations.

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