Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

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

Closed
gadelkareem opened this issue Apr 4, 2020 · 3 comments
Closed

Comments

@gadelkareem
Copy link

No description provided.

@musinit
Copy link
Contributor

musinit commented Apr 11, 2020

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
Copy link
Author

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

@bxcodec
Copy link
Owner

bxcodec commented May 15, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants