Skip to content

Commit 649132d

Browse files
author
Alan Christie
committed
fix: Experiment with string/int combination
1 parent d0382e2 commit 649132d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

decoder/job-definition-schema.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,15 @@ definitions:
145145
- working-directory
146146

147147
# A kubernetes CPU (cores) declaration (minimum of 10m).
148-
# Here we allow an up-to 4-digit m value or a 2-digit integer.
148+
# Here we allow an up-to 4-digit 'm' value or a 2-digit integer.
149149
cores:
150-
type: string
151-
pattern: '^([1-9][0-9]{1,3}m|[1-9][0-9]{0,1})$'
150+
type: object
151+
oneOf:
152+
- type: string
153+
pattern: '^([1-9][0-9]{1,3}m$'
154+
- type: integer
155+
minimum: 1
156+
maximum: 99
152157

153158
# A kubernetes memory declaration.
154159
# Here we allow an up-to 4-digit Mi value (minimum of 100Mi)

0 commit comments

Comments
 (0)