Configurable global default max int value #3338
Labels
c: feature
Request for new feature
has workaround
Workaround provided or linked
m: number
Something is referring to the number module
p: 1-normal
Nothing urgent
s: awaiting more info
Additional information are requested
s: waiting for user interest
Waiting for more users interested in this feature
Milestone
Clear and concise description of the problem
currently
number.int()
upper boundary isNumber.MAX_SAFE_INTEGER
such values don't fit in postgres int (max 2147483647)
in our case it's acceptable to generate values with
{max: 2147483647}
but because a lot of faker data is auto-generated it's not easy to add max value everywhere and where it's possible it leads to repeating same configuration for.int()
Would be great if it would be possible to set global FAKER_MAX_INTEGER value
Suggested solution
add a global configuration option to override
Number.MAX_SAFE_INTEGER
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: