Skip to content

Commit

Permalink
Add pattern validation for update vm
Browse files Browse the repository at this point in the history
Signed-off-by: gabriel-farache <[email protected]>
  • Loading branch information
gabriel-farache committed Dec 18, 2024
1 parent ba0c52a commit e69ebe8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"title": "Memory",
"description": "The new guest memory of the VM",
"type": "string",
"examples": ["2Gi"]
"examples": ["2Gi"],
"pattern": "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
},
"vm_new_cpu_cores": {
"title": "CPU Cores",
Expand Down

0 comments on commit e69ebe8

Please sign in to comment.