Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cpu and memory config validation in JSON schema #1013

Merged
merged 8 commits into from
Nov 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Also allow None for memory
  • Loading branch information
jrdnbradford committed Nov 15, 2024
commit cd53b41b4983c3f24738c36a1e5ce84e02856ace
7 changes: 6 additions & 1 deletion tljh/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,12 @@
"type": "object",
"additionalProperties": False,
"properties": {
"memory": {"type": "string"},
"memory": {
"anyOf": [
{"type": "string"},
{"type": "null"},
]
},
"cpu": {
"anyOf": [
{"type": "number", "minimum": 0},
Expand Down