Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique values exclusions with wildcards #49

Closed
serpro69 opened this issue Nov 21, 2020 · 0 comments · Fixed by #52
Closed

Unique values exclusions with wildcards #49

serpro69 opened this issue Nov 21, 2020 · 0 comments · Fixed by #52
Labels
core 🧬 Issue related to :core module enhancement 🚀 New feature or request
Milestone

Comments

@serpro69
Copy link
Owner

serpro69 commented Nov 21, 2020

Example usage:

val faker = Faker()
faker.unique.enable(faker::address)

val excludePattern = Regex("^A")
faker.unique.exclude<Address>("country", excludePattern)

// in addition to generating unique values this will not generate any countries who's names begin with "A"
faker.address.country() 
@serpro69 serpro69 added enhancement 🚀 New feature or request core 🧬 Issue related to :core module labels Nov 21, 2020
@serpro69 serpro69 added this to the 1.6.0 milestone Nov 21, 2020
@serpro69 serpro69 linked a pull request Dec 12, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core 🧬 Issue related to :core module enhancement 🚀 New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant