Skip to content

Commit 6531b6b

Browse files
committed
Update cpu types
1 parent c0563ab commit 6531b6b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

tljh/config_schema.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,23 @@
7979
"description": "User CPU and memory limits.",
8080
"type": "object",
8181
"additionalProperties": False,
82-
"properties": {"memory": {"type": "string"}, "cpu": {"type": "integer"}},
82+
"properties": {"memory": {"type": "string"}, "cpu": {
83+
"oneOf": [
84+
{
85+
"type": "integer",
86+
"minimum": 0
87+
},
88+
{
89+
"type": "number",
90+
"minimum": 0
91+
},
92+
{
93+
"type": "string",
94+
"enum": ["None"]
95+
}
96+
]
97+
}
98+
},
8399
},
84100
"UserEnvironment": {
85101
"type": "object",

0 commit comments

Comments
 (0)