Skip to content

Commit 2064b45

Browse files
committed
add a default value to maxLegnthValue to improve performances and reduce customization needs
1 parent 247106a commit 2064b45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/schema/custom-schema.class.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ export class CustomSettings {
2121
@IsArray()
2222
@ValidateNested({ each: true })
2323
tablesToFill: string[] = [];
24+
/**
25+
* A default value has been provided to maxLengthValue as this can drastically improve performances. This is a parameter which used to be
26+
* defined a lot by user anyway. The value of 36 has been chosen to allow usage of UID in string generator.
27+
*/
2428
@IsNumber()
2529
@IsOptional()
26-
maxLengthValue?: number;
30+
maxLengthValue?: number = 36;
2731
values: { [key: string]: any[]; } = {};
2832
options: {
2933
generators: Generators[],

0 commit comments

Comments
 (0)