@@ -23,23 +23,23 @@ const MAX_TTL_DAYS = 30;
23
23
export const getValidationSchema = ( ) : Yup . AnyObjectSchema =>
24
24
Yup . object ( {
25
25
default_ttl_ms : Yup . number ( )
26
- . integer ( )
26
+ . integer ( "Default time until autostop must be an integer." )
27
27
. required ( )
28
28
. min ( 0 , "Default time until autostop must not be less than 0." )
29
29
. max (
30
30
24 * MAX_TTL_DAYS /* 30 days in hours */ ,
31
31
"Please enter a limit that is less than or equal to 720 hours (30 days)." ,
32
32
) ,
33
33
activity_bump_ms : Yup . number ( )
34
- . integer ( )
34
+ . integer ( "Activity bump must be an integer." )
35
35
. required ( )
36
36
. min ( 0 , "Activity bump must not be less than 0." )
37
37
. max (
38
38
24 * MAX_TTL_DAYS /* 30 days in hours */ ,
39
39
"Please enter an activity bump duration that is less than or equal to 720 hours (30 days)." ,
40
40
) ,
41
41
failure_ttl_ms : Yup . number ( )
42
- . integer ( )
42
+ . integer ( "Failure cleanup days must be an integer." )
43
43
. required ( )
44
44
. min ( 0 , "Failure cleanup days must not be less than 0." )
45
45
. test (
@@ -54,7 +54,7 @@ export const getValidationSchema = (): Yup.AnyObjectSchema =>
54
54
} ,
55
55
) ,
56
56
time_til_dormant_ms : Yup . number ( )
57
- . integer ( )
57
+ . integer ( "Dormancy threshold must be an integer." )
58
58
. required ( )
59
59
. min ( 0 , "Dormancy threshold must not be less than 0." )
60
60
. test (
@@ -69,7 +69,7 @@ export const getValidationSchema = (): Yup.AnyObjectSchema =>
69
69
} ,
70
70
) ,
71
71
time_til_dormant_autodelete_ms : Yup . number ( )
72
- . integer ( )
72
+ . integer ( "Dormancy auto-deletion days must be an integer." )
73
73
. required ( )
74
74
. min ( 0 , "Dormancy auto-deletion days must not be less than 0." )
75
75
. test (
0 commit comments