Use anyOf

This commit is contained in:
Jordan Bradford
2024-11-14 12:07:35 -05:00
parent 6531b6b7aa
commit 73331f28fd

View File

@@ -79,22 +79,15 @@ config_schema = {
"description": "User CPU and memory limits.",
"type": "object",
"additionalProperties": False,
"properties": {"memory": {"type": "string"}, "cpu": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "number",
"minimum": 0
},
{
"type": "string",
"enum": ["None"]
}
"properties": {
"memory": {"type": "string"},
"cpu": {
"anyOf": [
{"type": "integer", "minimum": 0},
{"type": "number", "minimum": 0},
{"type": "string", "enum": ["None"]},
]
}
},
},
},
"UserEnvironment": {