Skip to content

Commit 0fecd9f

Browse files
authored
fix: Add min max validation (#329)
1 parent 79dba71 commit 0fecd9f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

metadata.display.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ spec:
8181
title: Maintenance Policy
8282
level: 1
8383
properties:
84+
description:
85+
name: description
86+
title: Description
8487
day:
8588
name: day
8689
title: Day
@@ -99,6 +102,34 @@ spec:
99102
value: SATURDAY
100103
- label: SUNDAY
101104
value: SUNDAY
105+
start_time:
106+
name: start_time
107+
title: Start Time
108+
properties:
109+
hours:
110+
name: hours
111+
title: Hours
112+
min: 0
113+
max: 23
114+
validation: Hours of day in 24 hour format. Must be from 0 to 23.
115+
minutes:
116+
name: minutes
117+
title: Minutes
118+
min: 0
119+
max: 59
120+
validation: Minutes of hour of day. Must be from 0 to 59.
121+
seconds:
122+
name: seconds
123+
title: Seconds
124+
min: 0
125+
max: 59
126+
validation: Seconds of minutes of the time. Must be from 0 to 59.
127+
nanos:
128+
name: nanos
129+
title: Nanos
130+
min: 0
131+
max: 999999999
132+
validation: Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
102133
memory_size_gb:
103134
name: memory_size_gb
104135
title: Memory Size GiB
@@ -181,6 +212,8 @@ spec:
181212
name: replica_count
182213
title: Replica Count
183214
level: 1
215+
min: 0
216+
max: 5
184217
altDefaults:
185218
- type: ALTERNATE_TYPE_DC
186219
value: 1

0 commit comments

Comments
 (0)