mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Use anyOf
This commit is contained in:
@@ -79,23 +79,16 @@ config_schema = {
|
||||
"description": "User CPU and memory limits.",
|
||||
"type": "object",
|
||||
"additionalProperties": False,
|
||||
"properties": {"memory": {"type": "string"}, "cpu": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
"properties": {
|
||||
"memory": {"type": "string"},
|
||||
"cpu": {
|
||||
"anyOf": [
|
||||
{"type": "integer", "minimum": 0},
|
||||
{"type": "number", "minimum": 0},
|
||||
{"type": "string", "enum": ["None"]},
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["None"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
"UserEnvironment": {
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user