@@ -25,26 +25,31 @@ export const getValidationSchema = (): Yup.AnyObjectSchema =>
25
25
Yup . object ( {
26
26
default_ttl_ms : Yup . number ( )
27
27
. integer ( )
28
+ . required ( )
28
29
. min ( 0 , "Default time until autostop must not be less than 0." )
29
30
. max (
30
31
24 * MAX_TTL_DAYS /* 30 days in hours */ ,
31
32
"Please enter a limit that is less than or equal to 720 hours (30 days)." ,
32
33
) ,
33
34
activity_bump_ms : Yup . number ( )
34
35
. integer ( )
36
+ . required ( )
35
37
. min ( 0 , "Activity bump must not be less than 0." )
36
38
. max (
37
39
24 * MAX_TTL_DAYS /* 30 days in hours */ ,
38
40
"Please enter an activity bump duration that is less than or equal to 720 hours (30 days)." ,
39
41
) ,
40
42
max_ttl_ms : Yup . number ( )
41
43
. integer ( )
44
+ . required ( )
42
45
. min ( 0 , "Maximum time until autostop must not be less than 0." )
43
46
. max (
44
47
24 * MAX_TTL_DAYS /* 30 days in hours */ ,
45
48
"Please enter a limit that is less than or equal to 720 hours (30 days)." ,
46
49
) ,
47
50
failure_ttl_ms : Yup . number ( )
51
+ . integer ( )
52
+ . required ( )
48
53
. min ( 0 , "Failure cleanup days must not be less than 0." )
49
54
. test (
50
55
"positive-if-enabled" ,
@@ -59,6 +64,8 @@ export const getValidationSchema = (): Yup.AnyObjectSchema =>
59
64
} ,
60
65
) ,
61
66
time_til_dormant_ms : Yup . number ( )
67
+ . integer ( )
68
+ . required ( )
62
69
. min ( 0 , "Dormancy threshold days must not be less than 0." )
63
70
. test (
64
71
"positive-if-enabled" ,
@@ -73,6 +80,8 @@ export const getValidationSchema = (): Yup.AnyObjectSchema =>
73
80
} ,
74
81
) ,
75
82
time_til_dormant_autodelete_ms : Yup . number ( )
83
+ . integer ( )
84
+ . required ( )
76
85
. min ( 0 , "Dormancy auto-deletion days must not be less than 0." )
77
86
. test (
78
87
"positive-if-enabled" ,
0 commit comments