We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
anyOf
1 parent 6531b6b commit 73331f2Copy full SHA for 73331f2
tljh/config_schema.py
@@ -79,23 +79,16 @@
79
"description": "User CPU and memory limits.",
80
"type": "object",
81
"additionalProperties": False,
82
- "properties": {"memory": {"type": "string"}, "cpu": {
83
- "oneOf": [
84
- {
85
- "type": "integer",
86
- "minimum": 0
87
- },
88
89
- "type": "number",
90
+ "properties": {
+ "memory": {"type": "string"},
+ "cpu": {
+ "anyOf": [
+ {"type": "integer", "minimum": 0},
+ {"type": "number", "minimum": 0},
+ {"type": "string", "enum": ["None"]},
+ ]
91
},
92
93
- "type": "string",
94
- "enum": ["None"]
95
- }
96
- ]
97
98
+ },
99
100
"UserEnvironment": {
101
0 commit comments